Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / Updating products displays a blank page

Updating products displays a blank page

Views: 907

Results 1 to 5 of 5
16 May 2014, 8:52 PM
#1
ba_guy avatar

ba_guy

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  }
16 May 2014, 10:26 PM
#2
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: Updating products displays a blank page

19 May 2014, 7:08 PM
#3
ba_guy avatar

ba_guy

New Zenner

Join Date:
Apr 2014
Location:
Murfreesboro, TN
Posts:
3
Plugin Contributions:
0

Re: Updating products displays a blank page

frank18:

Here is a start:

http://www.zen-cart.com/content.php?129

I have given that a view and still no luck.

27 May 2014, 3:03 PM
#4
ba_guy avatar

ba_guy

New Zenner

Join Date:
Apr 2014
Location:
Murfreesboro, TN
Posts:
3
Plugin Contributions:
0

Re: Updating products displays a blank page

Any one have any information? This is a huge time waste for us since we deal in fish and corals and our products change often

27 May 2014, 5:18 PM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Updating products displays a blank page

You said "I've given that a view and no luck". But that gives us NOTHING with which to help you.

To say you've looked at "that" and "no luck" gives no indication of anything you actually did with the information you looked at.

And, indeed, the link given was exactly the correct advice.

And since you didn't explain what you did with it, all we can do is assume that you did nothing with it or used it incorrectly.

You said the error is "output started at /********/storeadmin/includes/modules/update_product.php:1".
So, just like the article at the link above says, your problem is on line 1 of the update_product.php file.

The article specifically tells you that functions/general.php on line 21 is only the "messenger" and is NOT the actual error. The "output started at" info is where the problem is.

We can only help you when you participate equally.