Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 02-09-2009, 06:25 PM
odln018's Avatar
odln018 odln018 is offline
 
Join Date: Mar 2006
Posts: 210
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Php 5.3

Has anyone been able to get Vbulletin 3.8.1 to work under PHP 5.3?
Reply With Quote
  #2  
Old 02-09-2009, 06:47 PM
nexialys
Guest
 
Posts: n/a
Default

sure, why?
Reply With Quote
  #3  
Old 02-09-2009, 06:53 PM
odln018's Avatar
odln018 odln018 is offline
 
Join Date: Mar 2006
Posts: 210
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Drat. I seem to be having a bear of a problem then. I'm running IIS 7, MySQL 5.1.30.

The site works just great under PHP 5.2.8, but when I try to run 5.3, I'm having no luck.

PHPInfo will come up fine, but anything else that is running will not.



These are the errors I'm getting:

Code:
PHP Deprecated:  Assigning the return value of new by reference is deprecated in D:\Websites\ToE\Forum\includes\init.php on line 49
PHP Deprecated:  Assigning the return value of new by reference is deprecated in D:\Websites\ToE\Forum\includes\init.php on line 101
PHP Deprecated:  Assigning the return value of new by reference is deprecated in D:\Websites\ToE\Forum\includes\init.php on line 105
PHP Deprecated:  Assigning the return value of new by reference is deprecated in D:\Websites\ToE\Forum\includes\init.php on line 113
PHP Deprecated:  Assigning the return value of new by reference is deprecated in D:\Websites\ToE\Forum\includes\init.php on line 124
PHP Deprecated:  Assigning the return value of new by reference is deprecated in D:\Websites\ToE\Forum\includes\init.php on line 128
PHP Deprecated:  Assigning the return value of new by reference is deprecated in D:\Websites\ToE\Forum\includes\init.php on line 136
PHP Deprecated:  Assigning the return value of new by reference is deprecated in D:\Websites\ToE\Forum\includes\init.php on line 205
PHP Deprecated:  Assigning the return value of new by reference is deprecated in D:\Websites\ToE\Forum\includes\init.php on line 383
PHP Deprecated:  Assigning the return value of new by reference is deprecated in D:\Websites\ToE\Forum\includes\class_core.php on line 2529
PHP Fatal error:  Maximum execution time of 60 seconds exceeded in D:\Websites\ToE\Forum\includes\class_core.php on line 3204
Reply With Quote
  #4  
Old 02-09-2009, 07:10 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

What error reporting level do you have set ?

The Deprected messages are just warnings afaik.

See http://uk3.php.net/manual/en/errorfunc.constants.php
Reply With Quote
  #5  
Old 02-09-2009, 07:15 PM
odln018's Avatar
odln018 odln018 is offline
 
Join Date: Mar 2006
Posts: 210
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I moved it to E_ERROR, but am still getting deprecated errors.

Would it help if I posted my PHP.INI?
Reply With Quote
  #6  
Old 02-10-2009, 05:30 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by odln018 View Post
I moved it to E_ERROR, but am still getting deprecated errors.
That's because vBulletin "messes" with the error reporting level in every file. Add this to the end of your config.php:
PHP Code:
error_reporting(E_ERROR); 
Reply With Quote
  #7  
Old 02-10-2009, 12:28 PM
odln018's Avatar
odln018 odln018 is offline
 
Join Date: Mar 2006
Posts: 210
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Made the change, and am getting this:

Quote:
PHP Deprecated: Assigning the return value of new by reference is deprecated in D:\Websites\ToE\Forum\includes\init.php on line 49
PHP Deprecated: Assigning the return value of new by reference is deprecated in D:\Websites\ToE\Forum\includes\init.php on line 101
PHP Deprecated: Assigning the return value of new by reference is deprecated in D:\Websites\ToE\Forum\includes\init.php on line 105
PHP Deprecated: Assigning the return value of new by reference is deprecated in D:\Websites\ToE\Forum\includes\init.php on line 113
PHP Deprecated: Assigning the return value of new by reference is deprecated in D:\Websites\ToE\Forum\includes\init.php on line 124
PHP Deprecated: Assigning the return value of new by reference is deprecated in D:\Websites\ToE\Forum\includes\init.php on line 128
PHP Deprecated: Assigning the return value of new by reference is deprecated in D:\Websites\ToE\Forum\includes\init.php on line 136
PHP Deprecated: Assigning the return value of new by reference is deprecated in D:\Websites\ToE\Forum\includes\init.php on line 205
PHP Deprecated: Assigning the return value of new by reference is deprecated in D:\Websites\ToE\Forum\includes\init.php on line 383
PHP Deprecated: Assigning the return value of new by reference is deprecated in D:\Websites\ToE\Forum\includes\class_core.php on line 2529
PHP Fatal error: Maximum execution time of 60 seconds exceeded in D:\Websites\ToE\Forum\includes\class_core.php on line 3204
It's only when I'm using PHP 5.3 that I get any kind of timeouts.
Reply With Quote
  #8  
Old 02-10-2009, 12:30 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Then don't use beta software.
Reply With Quote
  #9  
Old 02-10-2009, 12:32 PM
odln018's Avatar
odln018 odln018 is offline
 
Join Date: Mar 2006
Posts: 210
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That's very helpful, thank you.
Reply With Quote
  #10  
Old 02-10-2009, 03:21 PM
Voltar Voltar is offline
 
Join Date: Mar 2006
Location: Bakersfield, California
Posts: 77
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, Marco does have a point. PHP 5.3.0 is still in the beta stage, beta 1 to be exact. It hasn't even made it to a RC yet. That's not to say that it isn't stable or usable though.

Unless you really have a need for namespaces or any of the other new features, you would be better off with 5.2.8.

As far as your 'error' is concern, using a reference, =&,to assign a variable to a new class/object? seems to throw up E_DEPRECATED (which was added in 5.3).
Reply With Quote
Reply

Thread Tools
Display Modes

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 09:04 PM.


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.04062 seconds
  • Memory Usage 2,243KB
  • Queries Executed 13 (?)
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
  • (1)bbcode_code
  • (1)bbcode_php
  • (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
  • (1)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
  • (9)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_postinfo_query
  • fetch_postinfo
  • 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