Support Forums

Notice: Use of undefined constant E_DEPRECATED - assumed 'E_DEPRECATED'

This is a discussion on Notice: Use of undefined constant E_DEPRECATED - assumed 'E_DEPRECATED' within the Installation Problems forums, part of the Technical Support Forums category; Hi, I just upgraded from 4.16 to 4.18, i went though the change log and changed each file manually. I ...


Go Back   68 Classifieds Forums > Technical Support Forums > Installation Problems

Reply
 
Thread Tools Display Modes
Old 01-15-2010, 09:26 AM   #1
Genius At Work
 
bowers01's Avatar
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 1,089
Rep Power: 36
bowers01 is on a distinguished road
Default Notice: Use of undefined constant E_DEPRECATED - assumed 'E_DEPRECATED'

Hi,
I just upgraded from 4.16 to 4.18, i went though the change log and changed each file manually.
I now get this error at the top of the page
Quote:
Notice: Use of undefined constant E_DEPRECATED - assumed 'E_DEPRECATED' in E:\wamp\www\includes\init.php on line 16
which is
Code:
	error_reporting(E_ALL & ~E_NOTICE & ~E_WARNING & ~E_DEPRECATED);
Any ideas on how to fix this?

Also if i use the old init.php from v4.16 it works fine.
Cheers,
Nick

EDIT: If i remove & ~E_DEPRECATED from line 16 of the v4.18 init.php it works without a issue.
__________________
Nick Bowers
68c v4.1.10 Developer Custom Template

Last edited by bowers01; 01-15-2010 at 09:29 AM.
bowers01 is offline   Reply With Quote
Old 01-15-2010, 09:37 AM   #2
curmudgeon
 
Join Date: Mar 2006
Posts: 5,416
Rep Power: 139
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

Quote:
Originally Posted by bowers01
EDIT: If i remove & ~E_DEPRECATED from line 16 of the v4.18 init.php it works without a issue.
I believe the the constant E_DEPRECATED is only for php 5.3 and up so if you are running a php version lower than that it wont be recognized. You should be fine just removing it as you did.
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline   Reply With Quote
Old 01-15-2010, 09:56 AM   #3
Genius At Work
 
bowers01's Avatar
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 1,089
Rep Power: 36
bowers01 is on a distinguished road
Default

Quote:
Originally Posted by Lhotch
I believe the the constant E_DEPRECATED is only for php 5.3 and up so if you are running a php version lower than that it wont be recognized. You should be fine just removing it as you did.
Ah excellent thanks.
It is also in www\administration\includes\params.php on line 20
__________________
Nick Bowers
68c v4.1.10 Developer Custom Template
bowers01 is offline   Reply With Quote
Old 01-15-2010, 10:17 AM   #4
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,489
Rep Power: 136
Eric Barnes is just really nice Eric Barnes is just really nice
Default

Yea I screwed up with this change. I was trying to bring in better 5.3 support and added this tag. Didn't notice it was for 5.3 and higher.
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline   Reply With Quote
Old 01-15-2010, 09:01 PM   #5
Genius At Work
 
bowers01's Avatar
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 1,089
Rep Power: 36
bowers01 is on a distinguished road
Default

Quote:
Originally Posted by Eric Barnes
Yea I screwed up with this change. I was trying to bring in better 5.3 support and added this tag. Didn't notice it was for 5.3 and higher.
Hi Eric,
Is it worth upgrading the server and leave this code in or just remove the code and stay on 5.2.9?
Was there any 68c functionality improved because of 5.3?
Cheers,
Nick
__________________
Nick Bowers
68c v4.1.10 Developer Custom Template
bowers01 is offline   Reply With Quote
Old 01-15-2010, 09:14 PM   #6
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,433
Rep Power: 87
seymourjames is a jewel in the rough
Default

Not sure whether this is a PM Nick.

In general it is going to depend upon what your hosting provider supports and good ones are not lazy - they upgrade fairly quickly. Generally speaking it is always better to upgrade and follow what they do. For example, you would tend to develop for php5 rather than 4 as it has better support and functionality (even if php4 does run in php5 because it is backward compatible). If its no hassle I would do it. However its not a huge jump so it is not going to make too much difference either way. The issue tends to be more prominent when you get a big upgrade like from php4 to php5. Like we could not do many of the things we offer without php5.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C
seymourjames is offline   Reply With Quote
Old 01-16-2010, 08:54 PM   #7
Genius At Work
 
bowers01's Avatar
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 1,089
Rep Power: 36
bowers01 is on a distinguished road
Default

Quote:
Originally Posted by seymourjames
Not sure whether this is a PM Nick.
haha nah it wasn't.
I am running my site on a WHM/cPanel VPS so its nice and easy for me to upgrade, might do it in the near future.
Thanks for the reply.
Nick
__________________
Nick Bowers
68c v4.1.10 Developer Custom Template
bowers01 is offline   Reply With Quote
Old 01-17-2010, 11:19 AM   #8
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,489
Rep Power: 136
Eric Barnes is just really nice Eric Barnes is just really nice
Default

I would keep what are you are running. The only changes for 5.3 is to hide the error messages. No functional changes have been made for it.
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline   Reply With Quote
Old 02-01-2010, 02:27 PM   #9
Junior Member
 
Join Date: Feb 2010
Posts: 1
Rep Power: 0
dragonfly7 is on a distinguished road
Default

I am having the same problem and was able to remove it from the administration directory (www\administration\includes\params.php on line 20)

but cannot see the code (I purchased the designer edition) to fix this error in the includes directory (www\includes\init.php on line 16 )

How do I fix this?
dragonfly7 is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Constant IN_ADMIN hel68c Technical Support 2 10-02-2009 01:46 AM
Seo Mod Issue - Undefined Constant SEO_String Offshoreboat Technical Support 4 04-28-2009 03:21 PM
Help needed: Notice: Undefined index error Grebogreen Technical Support 0 04-21-2007 04:16 AM


All times are GMT -4. The time now is 12:11 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2011, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0