Jump to content

6.0.11 upgrade — "Notice: Use of undefined constant"...


jvbh

Recommended Posts

Hi — I just upgraded from 6.0.10 to 6.0.11, and now I'm getting the message "Notice: Use of undefined constant E_DEPRECATED - assumed 'E_DEPRECATED' "  on all my pages, admin and public site. (The website: http://www.heyday-mo.com/catalog/) If I try to reinstall via force upgrade, I just get a blank page with the same error message. What do I need to do to resolve this?

Link to comment
Share on other sites

Make sure you are running PHP 5.3.0 or higher. If you are OR if you are not but are unable to change PHP versions due to hosting limitations (in which case you should change hosts), you can manually remove the references to E_DEPRECATED in your version of the files.

See all affected locations here.

Link to comment
Share on other sites

If you have access to cPanel, you can go to 'Select PHP Version' under 'Software' and change it there; if not, I'm not sure.

Btw, the issue is that E_DEPRECATED is a constant introduced in PHP 5.3, which is why 5.2.17 gives you an error saying it is undefined.

Link to comment
Share on other sites

Yes, it should be with your hosting provider. Many hosting providers allow each individual website to select a PHP version, so the version running on your site vs. the version used by your host (i.e. as the default for sites hosted with them) are not necessarily the same.

Do you have access to an admin panel for your site via your hosting provider? You should be able to select a PHP version there.

To find out what PHP version your site is currently using, you can create a separate .php file in your main directory that simply has 'phpinfo()' in it, then navigate to it in your browser and it will output tons of info about your PHP version.

Make sure to delete the file when you're done, as that file gives anyone access to lots of sensitive information.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...