Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Help with error messages please v1.3.8a

Help with error messages please v1.3.8a

Locked

Views: 2,264

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
22 Jul 2009, 12:55 AM
#1
whale avatar

whale

New Zenner

Join Date:
Jul 2009
Posts:
8
Plugin Contributions:
0

Help with error messages please v1.3.8a

Hi all. I've just added a new template and am now receiving error messages in both the zen cart template and the new template. There is a red bar at the top of the page saying strict error reporting is on. I have managed to clear some error messages from advice in forum posts but still have 3 left that I can't find fixes for. Could someone please point me in the right direction?

Notice: Undefined index: customer_id in /usr/local/pem/vhosts/domain_ path/cart/includes/templates/generic_template/common/tpl_header.php on line 49

Notice: Undefined variable: show_search_header in /usr/local/pem/vhosts/domain_ path/cart/includes/modules/sideboxes/search_header.php on line 19

Notice: Undefined variable: var_linksList in /usr/local/pem/vhosts/domain_ path/cart/includes/templates/generic_template/templates/tpl_ezpages_bar_header.php on line 19

Any help much appreciated.

22 Jul 2009, 1:06 AM
#2
whale avatar

whale

New Zenner

Join Date:
Jul 2009
Posts:
8
Plugin Contributions:
0

Re: Help with error messages please v1.3.8a

Whale:

Hi all. I've just added a new template and am now receiving error messages in both the zen cart template and the new template. There is a red bar at the top of the page saying strict error reporting is on. I have managed to clear some error messages from advice in forum posts but still have 3 left that I can't find fixes for. Could someone please point me in the right direction?

Notice: Undefined index: customer_id in /usr/local/pem/vhosts/domain_ path/cart/includes/templates/generic_template/common/tpl_header.php on line 49

Notice: Undefined variable: show_search_header in /usr/local/pem/vhosts/domain_ path/cart/includes/modules/sideboxes/search_header.php on line 19

Notice: Undefined variable: var_linksList in /usr/local/pem/vhosts/domain_ path/cart/includes/templates/generic_template/templates/tpl_ezpages_bar_header.php on line 19

Any help much appreciated.

Just found more errors...sorry. There are also these errors appearing when I select a category. The page is blank except for the error message.

Notice: Constant TABLE_HEADING_PRODUCTS already defined in /usr/local/pem/vhosts/domain_ path/cart/includes/languages/english/index.php on line 35

Notice: Constant TABLE_HEADING_QUANTITY already defined in /usr/local/pem/vhosts/domain_ path/cart/includes/languages/english/index.php on line 37

Warning: Cannot modify header information - headers already sent by (output started at /usr/local/pem/vhosts/domain_ path/cart/includes/languages/english/index.php:35) in /usr/local/pem/vhosts/domain_ path/cart/includes/functions/functions_general.php on line 44

Any help much appreciated.

22 Jul 2009, 6:39 PM
#3
mteipe avatar

mteipe

New Zenner

Join Date:
Apr 2009
Location:
Portland, Oregon
Posts:
29
Plugin Contributions:
0

Re: Help with error messages please v1.3.8a

I'm also getting a lot of "Undefined variable:" errors with sideboxes. Completely out of the blue for me.... wasn't even touching the code when these errors started appearing. I'm thinking something was either 'upgraded' or switched in the server environment.

22 Jul 2009, 9:23 PM
#4
whale avatar

whale

New Zenner

Join Date:
Jul 2009
Posts:
8
Plugin Contributions:
0

Re: Help with error messages please v1.3.8a

They don't seem to be major. I have asked my ISP why they were showing and they had altered an .htaccess file they had set up for error tracking. They have disabled strict error messaging now.

22 Jul 2009, 9:49 PM
#5
mteipe avatar

mteipe

New Zenner

Join Date:
Apr 2009
Location:
Portland, Oregon
Posts:
29
Plugin Contributions:
0

Re: Help with error messages please v1.3.8a

:clap: Bingo. We discovered we had something similar going on with error messaging that was having a cascading effect on the Zen Cart. We're developing a php class for our Zen Cart that had ```
ini_set('display_errors',1);

and in order to close off this cascading effect we put

ini_set('display_errors',0);

The strict error reporting was the tip off.
22 Jul 2009, 9:58 PM
#6
whale avatar

whale

New Zenner

Join Date:
Jul 2009
Posts:
8
Plugin Contributions:
0

Re: Help with error messages please v1.3.8a

mteipe:

:clap: Bingo. We discovered we had something similar going on with error messaging that was having a cascading effect on the Zen Cart. We're developing a php class for our Zen Cart that had ```
ini_set('display_errors',1);

> and in order to close off this cascading effect we put
> ```
ini_set('display_errors',0);
``` at the end of the class file. 
> The strict error reporting was the tip off.

You're a legend. :clap:Thanks
13 Nov 2009, 8:56 AM
#7
deeve avatar

deeve

New Zenner

Join Date:
Oct 2005
Posts:
7
Plugin Contributions:
0

Re: Help with error messages please v1.3.8a

Hi mteipe,

I'm experiencing very similar errors to yours on a client's site which was hacked recently. A colleague has been in and removed tons of malicious code from numerous php files but we're still getting these errors along with intermittent, blank portions of pages. I've looked through pretty much all of the files on the site & can't seem to locate any differences now to a backup created around the time of the intrusion.

I have a hunch these errors are being created by an add-on and wondered if you could suggest where I should look for third-party classes to see if there's a syntax error similar to the one above? The other possibility could be some kind of false/incorrect entry in the db..

Thanks for any advise in advance.

13 Nov 2009, 5:54 PM
#8
mteipe avatar

mteipe

New Zenner

Join Date:
Apr 2009
Location:
Portland, Oregon
Posts:
29
Plugin Contributions:
0

Re: Help with error messages please v1.3.8a

deeve:

I'm experiencing very similar errors to yours on a client's site which was hacked recently. A colleague has been in and removed tons of malicious code from numerous php files but we're still getting these errors along with intermittent, blank portions of pages.

Can you paste there errors to the forum? Also rather than removing all that malicious code can you try rebuilding that site with a fresh Zen install? Just a suggestion if it's corrupt.

13 Nov 2009, 5:55 PM
#9
mteipe avatar

mteipe

New Zenner

Join Date:
Apr 2009
Location:
Portland, Oregon
Posts:
29
Plugin Contributions:
0

Re: Help with error messages please v1.3.8a

mteipe:

Can you paste there errors to the forum? Also rather than removing all that malicious code can you try rebuilding that site with a fresh Zen install? Just a suggestion if it's corrupt.

Also might be a good idea to list the plugins you're using when posting the error.