Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 07-10-2012, 10:32 PM
Sownman Sownman is offline
 
Join Date: Aug 2004
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default PHP upgrade problem

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
Reply With Quote
  #2  
Old 07-10-2012, 10:42 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You could try changing
Code:
error_reporting(E_ALL & ~E_NOTICE);
to
Code:
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
Code:
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.
Reply With Quote
  #3  
Old 07-11-2012, 03:30 PM
Sownman Sownman is offline
 
Join Date: Aug 2004
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #4  
Old 07-11-2012, 03:39 PM
Simon Lloyd's Avatar
Simon Lloyd Simon Lloyd is offline
 
Join Date: Aug 2008
Location: Manchester
Posts: 3,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If using whm you can enter that directly in to php.ini

--------------- Added [DATE]1342024775[/DATE] at [TIME]1342024775[/TIME] ---------------

Wont your host roll back for you?
Reply With Quote
  #5  
Old 07-11-2012, 04:16 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Sownman View Post
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.
Reply With Quote
  #6  
Old 07-11-2012, 04:35 PM
Simon Lloyd's Avatar
Simon Lloyd Simon Lloyd is offline
 
Join Date: Aug 2008
Location: Manchester
Posts: 3,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If they are on a vps you can roll back per account
Reply With Quote
  #7  
Old 07-11-2012, 05:47 PM
Sownman Sownman is offline
 
Join Date: Aug 2004
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #8  
Old 07-14-2012, 02:16 PM
Sownman Sownman is offline
 
Join Date: Aug 2004
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:52 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.10204 seconds
  • Memory Usage 2,227KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete