Zen Cart Logo
Forums / General Questions / Pls Help Urgent...thanks in advance.

Pls Help Urgent...thanks in advance.

Locked

Views: 1,985

Results 1 to 12 of 12
This thread is locked. New replies are disabled.
29 Oct 2009, 10:08 PM
#1
mr_xerox avatar

mr_xerox

New Zenner

Join Date:
May 2009
Posts:
12
Plugin Contributions:
0

Pls Help Urgent...thanks in advance.

Greetings...

I am the lead webmaster for a project i have been working on for one of my clients. Over the past month or so i have made NUMEROUS modification to the site. Mostly configuring side boxes and editing min and max values. As of recently I also have been messing around with some of the CSS style sheet files...i dont EVER edit the core zen cart code if anything i use overrides religiously. I am running Zen Cart 1.3.8a.

This is what is happening. I am unable to add any new products.
Let me further elaborate. I can add new categories ie.."Test" via admin console and it inserts fine. If i then pick that category "test" while navigating the site...it will load fine and just say there are NO products in this category. Now heres the issue...if i now go add a new product..ie.."test prod" within the formally created category "Test" and then try and navigate to category "Test" on the web site the page hangs. It wont load AT ALL.

Let me share some of the things I have done to try and figure out what is going on.

I have tried putting products into a New Category ie.."Test" and leaving out various combination's of information..ie i wont add a product description or product quantity or ill leave out a product image and so forth. Suffice to say, this issue has nothing to do with any corruption in the action of product description, prices, sales, images and so forth

I then noticed that if i disable (not delete) "test prod" in Category "Test." The page will load...and tell me "There are no products to list in this category." and then right below it say "New Products For October - MENS FOOTWEAR" and then it actually shows the products (remember the product is disabled so this should not even happen). If you then click on this product it then loads and says "Sorry, the product was not found."

:frusty: This issue has me absolutely stumped. :frusty:

I have created a series of test categories and products to provide a link for each instance of what is going on.

Example 1
http://360urbanwear.com/index.php?main_page=index&cPath=24_72_197

As you can see here in category "Test 3" within Category Jordan within Mens Footwear....there is no product active or disabled in here and it loads fine as an empty category with no products to display

Example 2
http://360urbanwear.com/index.php?main_page=index&cPath=24_72_196

In this Example i have one active test product inside this Category "Test..." within Category Jordan within Mens Footwear....As you can see you are looking at a page that has failed to load and there are no error messages.

Example 3
http://360urbanwear.com/index.php?main_page=index&cPath=24_72_195

In this Example i have two DISABLED test products inside Category "Test 2..." within Category Jordan within Mens Footwear....And as you can see. It loads. Then states there are no products in this category (which it should being that they are disabled)...but then below goes on to show new products for October and then displays the two disabled products. (side note. I have never seen this "new products for "insert Month" so i dont even know what this is about)

I initially thought this was only affecting NEW CATEGORIES i tried to add...but it turns out some other random OLDER categories are also suffering from this problem.
i.e..

http://360urbanwear.com/index.php?main_page=index&cPath=24_72_58

This is Category Air Jordan 7 within Category Jordan within Mens Footwear...This category is OLD very old.

So on top of the fact this issue is affecting about 3 old categories, as i stand i cannot add anything to the site. Well i can...but it wont work so thats as good as not being able to.

If any one has any clues please help..

the most recent back up is about 1 week old..so i really dont want to have to lose all i have done. in that time frame. And being that i don't really remember every single file i have modified it would be a supper pain to manually back up all folders and then use my back up and then try and figure out wat changes were lost.

Do you guys think this problem is being caused by a css file? i doubt it...because then it wldnt be only limited to New categories and some old ones.

Thanks guys....

29 Oct 2009, 10:20 PM
#2
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,811
Plugin Contributions:
15

Re: Pls Help Urgent...thanks in advance.

I would suspect a mod.

What happens when you change to classic?

29 Oct 2009, 10:34 PM
#3
mr_xerox avatar

mr_xerox

New Zenner

Join Date:
May 2009
Posts:
12
Plugin Contributions:
0

Re: Pls Help Urgent...thanks in advance.

dbltoe:

I would suspect a mod.

What happens when you change to classic?

So i put on the default template....and the problem stopped. So that def narrows down my suspicions as to it being caused by an override file.

Interesting...when i changed to the default template...and i clicked on one of the categories that wont load at all...and it worked. I then changed back to my custom template..refreshed the page and when it came back with my custom template the category loaded...but the second i backed out and tried to come back in the problem was still there...

hmmm

anyone have any ideas of what FILE cld be the culprit..it would be so much easier for me to isolate the file and figure out what i screwed up in it.

30 Oct 2009, 12:28 AM
#4
mr_xerox avatar

mr_xerox

New Zenner

Join Date:
May 2009
Posts:
12
Plugin Contributions:
0

Re: Pls Help Urgent...thanks in advance.

thank to those that have sent me PM messages trying to help...its better you comment here so others may get some insight from what you think the problem is....

I am currently manually replacing original template files...but nothing seems to fix this issue....

other than reverting to the deafult template..so i this def means the issue is in an override file.

31 Oct 2009, 12:11 AM
#5
mr_xerox avatar

mr_xerox

New Zenner

Join Date:
May 2009
Posts:
12
Plugin Contributions:
0

Re: Pls Help Urgent...thanks in advance.

Hi...does any one have any ideas? i am still having issues with this problem.

31 Oct 2009, 12:15 AM
#6
drbyte avatar

drbyte

Sensei

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

Re: Pls Help Urgent...thanks in advance.

mr.xerox:

I then noticed that if i disable (not delete) "test prod" in Category "Test." The page will load...and tell me "There are no products to list in this category." and then right below it say "New Products For October - MENS FOOTWEAR" and then it actually shows the products (remember the product is disabled so this should not even happen).
With respect to the New Products center-box showing disabled items, there's a small bug which can be fixed as described here: http://www.zen-cart.com/forum/showpost.php?p=483788&postcount=3
It shouldn't have any direct bearing on your other problems though.

31 Oct 2009, 12:18 AM
#7
drbyte avatar

drbyte

Sensei

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

Re: Pls Help Urgent...thanks in advance.

mr.xerox:

(side note. I have never seen this "new products for "insert Month" so i dont even know what this is about)
You can control what timeframe is included in the selection of products which show when that box appears: https://www.zen-cart.com/tutorials/index.php?article=3

31 Oct 2009, 12:20 AM
#8
mr_xerox avatar

mr_xerox

New Zenner

Join Date:
May 2009
Posts:
12
Plugin Contributions:
0

Re: Pls Help Urgent...thanks in advance.

DrByte:

With respect to the New Products center-box showing disabled items, there's a small bug which can be fixed as described here: http://www.zen-cart.com/forum/showpost.php?p=483788&postcount=3
It shouldn't have any direct bearing on your other problems though.

thank you for that note...i will surely do this once i get this major issue resolved.

31 Oct 2009, 12:21 AM
#9
drbyte avatar

drbyte

Sensei

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

Re: Pls Help Urgent...thanks in advance.

mr.xerox:

Now heres the issue...if i now go add a new product..ie.."test prod" within the formally created category "Test" and then try and navigate to category "Test" on the web site the page hangs. It wont load AT ALL.
There's an FAQ on the topic of "blank pages", which includes a link to a Debug Logging utility which will show you the PHP errors that are occurring in the background. Fatal errors will cause the page to stop drawing. The error message is not sent to the screen because it's safer to NOT show internal error messages to your customers or to search engines. Instead, you can turn on the debug logging to see what problems may exist.
See here: https://www.zen-cart.com/tutorials/index.php?article=82

31 Oct 2009, 6:58 AM
#10
mr_xerox avatar

mr_xerox

New Zenner

Join Date:
May 2009
Posts:
12
Plugin Contributions:
0

Re: Pls Help Urgent...thanks in advance.

DrByte:

There's an FAQ on the topic of "blank pages", which includes a link to a Debug Logging utility which will show you the PHP errors that are occurring in the background. Fatal errors will cause the page to stop drawing. The error message is not sent to the screen because it's safer to NOT show internal error messages to your customers or to search engines. Instead, you can turn on the debug logging to see what problems may exist.
See here: https://www.zen-cart.com/tutorials/index.php?article=82

After installing the debug utility (thanks to the advice of DrByte) I was able to isolate what internal error message zen cart was generating in reference to my issue...
i hope some one can tell me wat edits i need to make in this logo side box file to fix this issue...

here is the debugger error message...

[30-Oct-2009 20:37:01] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/craverep/public_html/includes/languages/english/extra_definitions/theme198/logo_sidebox_defines.php:49) in /home/craverep/public_html/includes/functions/functions_general.php on line 44

here is my code in logo_sidebox_defines.php :

<?php // //Contribution: Logo Sidebox //Author: Clyde Jones (<http://mysticmountainnaturals.com/testsite>) //Version: 1.1 //Updated: 8/21/2008 //License: under the GPL - See attached License for info. //Based on: Blank Sidebox by Judi Cox - <https://www.MommaMuse.com> //Support: Only given via the forums, please. (<http://www.zen-cart.com/forum/showthread.php?t=57694>) // -------------------------------------------------- // zen-cart Open Source E-commerce // Copyright (c) 2003-2006 The zen-cart developers // <http://www.zen-cart.com/index.php> // Portions Copyright (c) 2003 osCommerce // -------------------------------------------------- // $Id: logo_sidebox_defines.php,v 1.1 8/21/2008 define('BOX_HEADING_LOGO_SIDEBOX', ''); define('LOGO_SIDEBOX_IMAGE_WIDTH', '212'); define('LOGO_SIDEBOX_IMAGE_HEIGHT', '80'); define('LOGO_SIDEBOX_IMAGE', 'test_logo.jpg'); define('LOGO_SIDEBOX_IMAGE_TEXT', 'Shop Our Jordan Collection'); //this is optional if you want to use the logo as a link //replace your_link.com with the link you choose define('LOGO_SIDEBOX_LINK', 'http://360urbanwear.com/index.php?main_page=index&cPath=24_72'); define('LOGO_SIDEBOX2_IMAGE_WIDTH', '212'); define('LOGO_SIDEBOX2_IMAGE_HEIGHT', '80'); define('LOGO_SIDEBOX2_IMAGE', 'test_logo2.jpg'); define('LOGO_SIDEBOX2_IMAGE_TEXT', 'Shop Our Nike Collection'); //this is optional if you want to use the logo as a link //replace your_link.com with the link you choose define('LOGO_SIDEBOX2_LINK', 'http://360urbanwear.com/index.php?main_page=index&cPath=24_73'); define('LOGO_SIDEBOX3_IMAGE_WIDTH', '212'); define('LOGO_SIDEBOX3_IMAGE_HEIGHT', '80'); define('LOGO_SIDEBOX3_IMAGE', 'test_logo3.jpg'); define('LOGO_SIDEBOX3_IMAGE_TEXT', 'Shop Our Nike SB Dunk High / Low Collection'); //this is optional if you want to use the logo as a link //replace your_link.com with the link you choose define('LOGO_SIDEBOX3_LINK', 'http://360urbanwear.com/index.php?main_page=index&cPath=24_73_181'); ?>

Here is the Zen Cart code from " in /home/craverep/public_html/includes/functions/functions_general.php on line 44"

line 38-Line 47 of code:

// clean up URL before executing it
while (strstr($url, '&&')) $url = str_replace('&&', '&', $url);
while (strstr($url, '&&')) $url = str_replace('&&', '&', $url);
// header locates should not have the & in the address it breaks things
while (strstr($url, '&')) $url = str_replace('&', '&', $url);

header('Location: ' . $url);

zen_exit();
}

there is something about the code in logo_sidebox_defines.php that line 44 "header('Location: ' . $url);" does not like...

i would appreciate any help. thanks.

31 Oct 2009, 7:51 AM
#11
mr_xerox avatar

mr_xerox

New Zenner

Join Date:
May 2009
Posts:
12
Plugin Contributions:
0

Re: Pls Help Urgent...thanks in advance.

i got it guys...thanks for every one that chimed in.
The error was being cased by two extra lines at the end of one of my side box files....

man talk about sensitive stuff here....