View Full Version : PHP upgrade problem
Sownman
07-10-2012, 10:32 PM
My web host upgraded PHP versions. My VB 3.6 does now not function. When trying to sign on the the forum page I get this error message.....
Deprecated: Function set_magic_quotes_runtime() is deprecated in /home/mozartf/public_html/VB_forum/includes/class_core.php on line 1530
Unable to add cookies, header already sent.
File: /home/mozartf/public_html/VB_forum/includes/class_core.php
Line: 1530
Can anyone help with a simple fix. I imagine if I had money or time to upgrade to VB4 it would fix it but neither is workable for me. Thanks for any help you can offer.
Steve
You could try changing
error_reporting(E_ALL & ~E_NOTICE);
to
error_reporting(E_ALL & ~E_NOTICE & ~8192);
everywhere it appears (you'll need some kind of search and replace program because it appears in a lot of places.
I've also seen people suggest just putting
error_reporting(E_ALL & ~E_NOTICE & ~8192);
at the beginning of global.php. I haven't tried that myself, but you might want to try that first since it obviously involves a lot fewer changes.
This solved a lot of the problems for me using vb3 with a newer php a couple years ago, but to be honest I don't know what problems you might run it to with the latest version of php.
Sownman
07-11-2012, 03:30 PM
Thanks for the response I'll happily try it. Is global.php a fiie within my VBulletin or a file on the server which I could only alter with the help of the host company ?
Steve
Simon Lloyd
07-11-2012, 03:39 PM
If using whm you can enter that directly in to php.ini
--------------- Added 1342024775 at 1342024775 ---------------
Wont your host roll back for you?
Thanks for the response I'll happily try it. Is global.php a fiie within my VBulletin or a file on the server which I could only alter with the help of the host company ?
Steve
It's a vbulletin file which should be in the main forum folder. You should be able to change it on your local computer (download it via ftp first if you don't have a copy already), then upload it and overwrite the existing one.
What Simon mentioned above is a good thought - if it's your server, you might be able to ask if they could go back to the previous version. If it's a shared server then probably they won't, but you could ask about it, maybe they keep some servers running older versions or something, I don't know.
Simon Lloyd
07-11-2012, 04:35 PM
If they are on a vps you can roll back per account :)
Sownman
07-11-2012, 05:47 PM
A roll back was my first thought. They said they would move me to a server running older PHP but eventually it will be updated as the older version is not supported. I found a suggestion elsewhere about a change in php.ini setting which might work. I'll try them all soon. Thanks for the help.
Sownman
07-14-2012, 02:16 PM
Hey KH....
Thanks that was genius it worked. I inserted that line into the global.php for the main folder and the admincp folder and the modcp folder. Back in business makes me and my members very happy. Thanks to you and all for the time you spend here helping us the only slightly computer literate.
Steve
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.