New Zenner
- Join Date:
- Apr 2014
- Location:
- Murfreesboro, TN
- Posts:
- 3
- Plugin Contributions:
- 0
Updating products displays a blank page
I'm not really sure what has changed. It had been a week since we had accessed that admin side of the site. Now when adding/updating a product the page is blank.
/storeadmin/product.php?cPath=18_19&product_type=1&pID=55&action=update_product&page=1
The products do update, however this is a giant waste of time.
The debug is: [16-May-2014 13:35:02 America/Los_Angeles] PHP Warning: Cannot modify header information - headers already sent by (output started at //storeadmin/includes/modules/update_product.php:1) in //storeadmin/includes/functions/general.php on line 21
Line 21 of general.php is:
21 header('Location: ' . $url);
Surrounding code
15 // clean up URL before executing it
16 while (strstr($url, '&&')) $url = str_replace('&&', '&', $url);
17 while (strstr($url, '&&')) $url = str_replace('&&', '&', $url);
18 // header locates should not have the & in the address it breaks things
19 while (strstr($url, '&')) $url = str_replace('&', '&', $url);
20
21 header('Location: ' . $url);
22 session_write_close();
23 if (STORE_PAGE_PARSE_TIME == 'true') {
24 if (!is_object($logger)) $logger = new logger;
25 $logger->timer_stop();
26 }
27 exit;
28 }