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 04-01-2011, 04:02 PM
NeXuM NeXuM is offline
 
Join Date: Mar 2003
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default PHP 5.3 and vBulletin 3.6.4

My webhost just upgrader PHP to version 5.3 and now i am getting errors on three vbulletin forums (version 3.6.4)

Quote:
Deprecated: Assigning the return value of new by reference is deprecated in /var/alternc/html/a/anarchoi/includes/init.php on line 45

Deprecated: Assigning the return value of new by reference is deprecated in /var/alternc/html/a/anarchoi/includes/init.php on line 93

Deprecated: Assigning the return value of new by reference is deprecated in /var/alternc/html/a/anarchoi/includes/init.php on line 97

Deprecated: Assigning the return value of new by reference is deprecated in /var/alternc/html/a/anarchoi/includes/init.php on line 105

Deprecated: Assigning the return value of new by reference is deprecated in /var/alternc/html/a/anarchoi/includes/init.php on line 116

Deprecated: Assigning the return value of new by reference is deprecated in /var/alternc/html/a/anarchoi/includes/init.php on line 120

Deprecated: Assigning the return value of new by reference is deprecated in /var/alternc/html/a/anarchoi/includes/init.php on line 128

Deprecated: Assigning the return value of new by reference is deprecated in /var/alternc/html/a/anarchoi/includes/init.php on line 197

Deprecated: Assigning the return value of new by reference is deprecated in /var/alternc/html/a/anarchoi/includes/init.php on line 404

Deprecated: Assigning the return value of new by reference is deprecated in /var/alternc/html/a/anarchoi/includes/class_core.php on line 2345

Deprecated: Function set_magic_quotes_runtime() is deprecated in class_core.php on line 1514

is there a way to fix those errors ? i really cant upgrade to a newer version of vbulletin, i have spent hundreds of hours customizing my forums.... half of my forum is based on mods that doesnt exist in newer versions, and if i upgrade i will loose my custom scripts, custom mods, custom template, etc....

If it is impossible to fix the errors without upgrading, could someone please tell me how the errors can affect my forum ?? If i just turn off error display, will it affect my forum somehow ? are the deprecated functions very important for the basic functionement of the forum?
Reply With Quote
  #2  
Old 04-01-2011, 04:22 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

vB3.6 (and 3.7 and most of 3.8) will not work with PHP 5.3.
Reply With Quote
  #3  
Old 04-01-2011, 04:38 PM
NeXuM NeXuM is offline
 
Join Date: Mar 2003
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

one of my forums under 3.6.4 is still working but displaying a couple of errors...

if i turn off the error displaying, can i know how these errors will affect my forums ?

thanks
Reply With Quote
  #4  
Old 04-01-2011, 05:10 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I do not know what they will do. Running 3.6.4 is not supported under PHP 5.3. It's not been tested at all.
Reply With Quote
  #5  
Old 06-17-2011, 02:48 PM
FudgeBalls2002 FudgeBalls2002 is offline
 
Join Date: Feb 2006
Location: NJ
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just happened to me this morning...I have a heavily modded forum and didn't really want to pay money to upgrade there's really no option for this problem?
Reply With Quote
  #6  
Old 06-17-2011, 02:54 PM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The errors are mostly just warnings of deprecated functionality, so the forum should work, except you will need to disable the error messages somehow. However, the functionality is likely to be removed from php at some point, then you will have problems.
Reply With Quote
  #7  
Old 06-17-2011, 03:15 PM
Frosty Frosty is offline
 
Join Date: Apr 2011
Posts: 166
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just decrease the version, I did the same. It should work without any problems or whatsoever on PHP 5.1.6.
Reply With Quote
  #8  
Old 06-17-2011, 03:40 PM
Adrian Schneider's Avatar
Adrian Schneider Adrian Schneider is offline
 
Join Date: Jul 2004
Posts: 2,528
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You could probably do a mass find replace...

"=&" with "="

This should take care of the majority of them, but I'd definitely back up first or try it locally first.
Reply With Quote
  #9  
Old 06-17-2011, 04:00 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try
ini_set(display_errors, 0);

In your config.php file.
Reply With Quote
  #10  
Old 02-04-2012, 11:29 AM
Eslob Eslob is offline
 
Join Date: May 2010
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Adrian Schneider View Post
You could probably do a mass find replace...

"=&" with "="

This should take care of the majority of them, but I'd definitely back up first or try it locally first.
This fixes the problem.

As i have dedicated server and my forum on it.

I got this error and now i'm downgrading my php version to 5.2.X.

And keep the php as it is without upgrades, unless if i plan to go for 4.X.
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 12:48 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07974 seconds
  • Memory Usage 2,252KB
  • 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
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete