jvbh Posted April 6, 2016 Share Posted April 6, 2016 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? Quote Link to comment Share on other sites More sharing options...
bsandall Posted April 6, 2016 Share Posted April 6, 2016 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. Quote Link to comment Share on other sites More sharing options...
bsmither Posted April 6, 2016 Share Posted April 6, 2016 You seem to be running PHP 5.2.17. While that is still supported, we do recommend upgrading PHP to at least 5.4. Quote Link to comment Share on other sites More sharing options...
jvbh Posted April 6, 2016 Author Share Posted April 6, 2016 Thanks — do I upgrade PHP with my web host? Not sure I follow...? Quote Link to comment Share on other sites More sharing options...
bsandall Posted April 6, 2016 Share Posted April 6, 2016 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. Quote Link to comment Share on other sites More sharing options...
jvbh Posted April 6, 2016 Author Share Posted April 6, 2016 That's with the hosting provider, correct? Checked host (bluehost) and it says I'm running PHP 5.4.24 ... is there somewhere else I should check? Quote Link to comment Share on other sites More sharing options...
bsandall Posted April 6, 2016 Share Posted April 6, 2016 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. Quote Link to comment Share on other sites More sharing options...
bsmither Posted April 6, 2016 Share Posted April 6, 2016 The Response Headers sent with your web page says: Server: nginx/1.8.1X-Powered-By: PHP/5.2.17 Quote Link to comment Share on other sites More sharing options...
jvbh Posted April 6, 2016 Author Share Posted April 6, 2016 Thanks, that worked! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.