Forums / General Questions / Error message on the top of my homepage

Error message on the top of my homepage

Started by andreas1211 on 26 May 2014, 7:40 PM · Views: 475

Results 1 to 6 of 6
26 May 2014, 7:40 PM
#1
andreas1211 avatar

andreas1211

New Zenner

Join Date:
Sep 2012
Posts:
27
Plugin Contributions:
0

Error message on the top of my homepage

Hi all,

I got this error message on the top of my store page:

Notice: Undefined index: lang in /var/www/clients/client2/web16/web/includes/application_top.php on line 18.

It has a problem with this line: preg_replace("/[email]/e",$_REQUEST['lang'],"error");

What could be the problem? I did not change anything, it just appeard.

Thanks for the help in advance!

26 May 2014, 10:22 PM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Error message on the top of my homepage

Has your host upgraded the PHP version on your account ?

27 May 2014, 12:28 AM
#3
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Error message on the top of my homepage

Also, howw did you endup with version 1.5.1, was it through an upgrade or a fresh install/rebuild?

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

27 May 2014, 9:08 AM
#4
andreas1211 avatar

andreas1211

New Zenner

Join Date:
Sep 2012
Posts:
27
Plugin Contributions:
0

Re: Error message on the top of my homepage

Hello,

Thank you for your reply!

These are my server informations:

Server OS: Linux 3.2.0-31-generic
PHP Version: 5.3.10-1ubuntu3.11 (Zend: 2.3.0)
nginx/1.1.19

I don't know if it has been upgraded or not. I have more zen-cart stores, and the error appeared only at this one.

The store was upgraded to 1.5.1.

27 May 2014, 12:13 PM
#5
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,120
Plugin Contributions:
56

Re: Error message on the top of my homepage

Andreas1211:

Hi all,

I got this error message on the top of my store page:

Notice: Undefined index: lang in /var/www/clients/client2/web16/web/includes/application_top.php on line 18.

It has a problem with this line: preg_replace("/[email]/e",$_REQUEST['lang'],"error");

What could be the problem? I did not change anything, it just appeard.

Thanks for the help in advance!
Zen Cart's default error-handling disables the issuance of "Notice" type errors. Make sure that your file /includes/extra_configures/enable_error_logging.php (and a similar file in /YOUR_ADMIN/includes/extra_configures/enable_error_logging.php) are (1) there and (2) not corrupted.

27 May 2014, 9:30 PM
#6
andreas1211 avatar

andreas1211

New Zenner

Join Date:
Sep 2012
Posts:
27
Plugin Contributions:
0

Re: Error message on the top of my homepage

What does this line change if I turn it off?
preg_replace("/[email]/e",$_REQUEST['lang'],"error");