Forums / Installing on a Linux/Unix Server / Thousand of notices after moving site

Thousand of notices after moving site

Locked

Started by hubert on 19 Dec 2008, 11:46 PM · Views: 1,608

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
19 Dec 2008, 11:46 PM
#1
hubert avatar

hubert

Zen Follower

Join Date:
Mar 2005
Posts:
229
Plugin Contributions:
0

Thousand of notices after moving site

I've exactly followed the method told in https://www.zen-cart.com/tutorials/index.php?article=100 to move to a new server on Hostgator.

I'm getting a ton of notices :

Notice: Constant SHOW_PRODUCT_MUSIC_INFO_ARTIST already defined in /home/hubertbe/public_html/catalog/includes/init_includes/init_db_config_read.php on line 35
Notice: Constant FOOTER_TEXT_BODY already defined in /home/hubertbe/public_html/catalog/includes/languages/english.php on line 16
Notice: Constant DATE_FORMAT_SHORT already defined in /home/hubertbe/public_html/catalog/includes/languages/english.php on line 23
Notice: Constant DATE_FORMAT_LONG already defined in /home/hubertbe/public_html/catalog/includes/languages/english.php on line 24
Notice: Constant DATE_FORMAT already defined in /home/hubertbe/public_html/catalog/includes/languages/english.php on line 25
Notice: Constant DATE_TIME_FORMAT already defined in /home/hubertbe/public_html/catalog/includes/languages/english.php on line 26
Notice: Constant LANGUAGE_CURRENCY already defined in /home/hubertbe/public_html/catalog/includes/languages/english.php on line 43
Notice: Constant HTML_PARAMS already defined in /home/hubertbe/public_html/catalog/includes/languages/english.php on line 46
Notice: Constant CHARSET already defined in /home/hubertbe/public_html/catalog/includes/languages/english.php on line 49
Notice: Constant FOOTER_TEXT_REQUESTS_SINCE already defined in /home/hubertbe/public_html/catalog/includes/languages/english.php on line 52

I can paste about a thousand other lines like that.

The configure php encoding cannot be the cause as it has been made on the same server, and edited on the server as us-ascii file.

I'm running a ZC 1.3.7.

former server is OS X
PHP Version 5.2.4
Database: MySQL 5.0.51a

On the new server versions are :
OS is Linux CentOS
PHP Version 5.2.8
Database: MySQL 5.0.51a-community

To transfer files I've made a tar.gz, dowloaded the file and untared it.

How to get rid of these notices.

Thanks for help.

20 Dec 2008, 12:08 AM
#2
drbyte avatar

drbyte

Sensei

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

Re: Thousand of notices after moving site

NOTICE messages on english.php can be safely ignored. The code is actually intentionally written that way ... the reasons for it have been explained many times elsewhere on the forum (basically to add a catchall for folks who don't do upgrades properly).

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

20 Dec 2008, 12:13 AM
#3
hubert avatar

hubert

Zen Follower

Join Date:
Mar 2005
Posts:
229
Plugin Contributions:
0

Re: Thousand of notices after moving site

Sure !
They can be ignored if you don't see them on the site home page :-).

I found the way to get rid of them, I had /includes/local/configure.php strict error reporting ON, so I switched off, on both site and admin sides.

But I still don't understand why I had not these on my former server, and get them on the new one...

Could it be because the site is in /public_html/catalog ? Would it be better to put it in /public_html ?

Thanks for your help

Regards

Hubert

20 Dec 2008, 12:17 AM
#4
drbyte avatar

drbyte

Sensei

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

Re: Thousand of notices after moving site

hubert:

But I still don't understand why I had not these on my former server, and get them on the new one...It would only be because of your PHP error-reporting settings (which is enabled when you flip on the strict-error-reporting).
hubert:

Could it be because the site is in /public_html/catalog ? Would it be better to put it in /public_html ?
The folder has nothing to do with it.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

20 Dec 2008, 12:57 AM
#5
hubert avatar

hubert

Zen Follower

Join Date:
Mar 2005
Posts:
229
Plugin Contributions:
0

Re: Thousand of notices after moving site

It would only be because of your PHP error-reporting settings (which is enabled when you flip on the strict-error-reporting).

I understand that setting strict error reporting ON produce these messages, but the question was, why these errors are on the new server and not on the former one as on both servers the settings in ON ?

20 Dec 2008, 1:18 AM
#6
drbyte avatar

drbyte

Sensei

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

Re: Thousand of notices after moving site

hubert:

I understand that setting strict error reporting ON produce these messages, but the question was, why these errors are on the new server and not on the former one as on both servers the settings in ON ?

Hard to guess without seeing exactly what all of each server's configuration settings are and exactly what all the PHP files on your server contain, etc.
If it's showing messages on one but not on the other, then either you have errors on one that weren't on the other, or you have error-display settings set differently on one than on the other.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

20 Dec 2008, 1:39 AM
#7
hubert avatar

hubert

Zen Follower

Join Date:
Mar 2005
Posts:
229
Plugin Contributions:
0

Re: Thousand of notices after moving site

It was ON on both, and not showing any errors on the former one. Can it be that error reporting is OFF elsewhere than in /includes/local ? I mean in the server PHP config files ?

20 Dec 2008, 2:33 AM
#8
drbyte avatar

drbyte

Sensei

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

Re: Thousand of notices after moving site

Yes, that's what I was suggesting: you must have an error reporting level set differently in the files on the other server.
Either that or your server's configuration has it set differently on a global level.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

20 Dec 2008, 3:03 PM
#9
hubert avatar

hubert

Zen Follower

Join Date:
Mar 2005
Posts:
229
Plugin Contributions:
0

Re: Thousand of notices after moving site

Thanks for your quick answers.

Regards