Zen Cart Logo
Forums / General Questions / Constant already defined

Constant already defined

Locked

Views: 2,448

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
15 Apr 2008, 3:35 PM
#1
david_allen avatar

david_allen

Zen Follower

Join Date:
Feb 2008
Location:
Amersham, Buckinghamshire, United Kingdom
Posts:
141
Plugin Contributions:
1

Constant already defined

I was having a problem with a blank page showing after checkout confirmation - so I searched the forum and found a suggestion to add a local/configure.php file to set strict error reporting on. Did this but now every page has a 'million' errors - of the type:
Notice: Constant FOOTER_TEXT_BODY already defined in /home/davidanu/public_html/includes/languages/english.php on line **16

**appears to be all the defines in english.php that are generating errors like this.

Anyone got any ideas?

Forgot to mention - it's a 1.38a site. Also tried it on an existing 1.37 site and got exactly the same problem

15 Apr 2008, 8:11 PM
#2
drbyte avatar

drbyte

Sensei

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

Re: Constant already defined

Those are "notice" messages, and are not critical. They can be safely ignored.

You need to look for "error" or "fatal error" messages.

15 Apr 2008, 9:28 PM
#3
david_allen avatar

david_allen

Zen Follower

Join Date:
Feb 2008
Location:
Amersham, Buckinghamshire, United Kingdom
Posts:
141
Plugin Contributions:
1

Re: Constant already defined

DrByte:

Those are "notice" messages, and are not critical. They can be safely ignored.

You need to look for "error" or "fatal error" messages.

I guessed that they weren't critical as my 1.37 site works perfectly - but I am a bit worried as to why Zen Cart tries to define all these constants more than once. Surely that's very inefficient.

16 Apr 2008, 2:56 AM
#4
drbyte avatar

drbyte

Sensei

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

Re: Constant already defined

Inefficient in some ways, yes. But it's sure stopped a lot of upgraders from shooting themselves in the foot when they refuse to follow the upgrade instructions because they think it's too laborious.

There will be changes in a future release; but for now, the duplication is actually a safety.