Zen Cart Logo
Forums / Basic Configuration / how to remove webpage error?

how to remove webpage error?

Locked

Views: 1,448

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
6 Mar 2010, 6:51 PM
#1
hxkknba avatar

hxkknba

New Zenner

Join Date:
Oct 2009
Posts:
23
Plugin Contributions:
0

how to remove webpage error?

hello, i don't know why when i open my website, i find there is a warning in the left corner of status bar, "webpage errors" togewith a yellow mark. Maybe that happened after i added some products, i'm not sure.

i search in some threads, and the answer is these errors can be igored. but the yellow mark is really annoying on the mainpage and i do want to remove that "error" mark. anyone can help me on this?

i turn on the error reporting by define('STRICT_ERROR_REPORTING', true); and i resolved some of them. these errors are:

1.Notice: Constant ENTRY_EMAIL_ADDRESS already defined in /mywebsite/public_html/includes/languages/english.php on line 208

I marked the defined sentence so it has been resolved

2.Warning: Cannot modify header information - headers already sent by (output started at /mywebsite/public_html/includes/languages/english.php:208) in /mywebsite/public_html/includes/init_includes/init_templates.php on line 78

I removed all spaces after '?>', by instruction in another thread.

but how to resolve the below two:
Notice: Undefined variable: robotsNoIndex in /mywebsite/public_html/includes/templates/template_default/common/html_header.php on line 31

Notice: Undefined index: customer_id in /mywebsite/public_html/includes/templates/MYTEMPLATE/common/tpl_header.php on line 50

the interesting thing is i have another website which also has these errors, but there is no "error" warning on lower left in IE.
the difference is that website doesn't have SSL?

please give some solution to these error or how to remove the error mark in status bar

thanks a lot:smile:

6 Mar 2010, 7:29 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: how to remove webpage error?

Have you removed error reporting?

7 Mar 2010, 5:33 AM
#3
hxkknba avatar

hxkknba

New Zenner

Join Date:
Oct 2009
Posts:
23
Plugin Contributions:
0

Re: how to remove webpage error?

yes, i have removed it. and i click that yellow mark, the message is
line:2
character:27
error:invalid character
code:0

i search relative topic. it seems that there are error in a js file. but i do not know which js the error in and how to fix it?

7 Mar 2010, 5:48 AM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: how to remove webpage error?

If you have removed it, where are you seeing the error?

Providing a link and some explanation of how to view the error will speed up someone providing a solution