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

Reply
 
Thread Tools Display Modes
  #1  
Old 07-18-2012, 04:45 PM
Parker123 Parker123 is offline
 
Join Date: Feb 2012
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Problem with patch 3?

Ok since i installed PL3 I have been getting the following error on some of the mods that are used on my forum. Im wanting to know if its just me or if its happening to other people as well and hopefully someone will be able to help me fix the issue.

Quote:
Deprecated: Assigning the return value of new by reference is deprecated in /home/starthab/public_html/forum/includes/init.php on line 55

Deprecated: Assigning the return value of new by reference is deprecated in /home/starthab/public_html/forum/includes/init.php on line 107

Deprecated: Assigning the return value of new by reference is deprecated in /home/starthab/public_html/forum/includes/init.php on line 111

Deprecated: Assigning the return value of new by reference is deprecated in /home/starthab/public_html/forum/includes/init.php on line 119

Deprecated: Assigning the return value of new by reference is deprecated in /home/starthab/public_html/forum/includes/init.php on line 130

Deprecated: Assigning the return value of new by reference is deprecated in /home/starthab/public_html/forum/includes/init.php on line 134

Deprecated: Assigning the return value of new by reference is deprecated in /home/starthab/public_html/forum/includes/init.php on line 142

Deprecated: Assigning the return value of new by reference is deprecated in /home/starthab/public_html/forum/includes/init.php on line 211

Deprecated: Assigning the return value of new by reference is deprecated in /home/starthab/public_html/forum/includes/init.php on line 389

Deprecated: Assigning the return value of new by reference is deprecated in /home/starthab/public_html/forum/includes/class_core.php on line 2552
I have actually seen one other person with this issue. Could someone please help asap?

Thanks in advance!
Reply With Quote
  #2  
Old 07-18-2012, 04:59 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It has to do with your version of php, which is a higher version than was intended for vb3. But you should be able to get rid of the errors by editing global.php and putting this near the top (after the block of comments):

Code:
error_reporting(E_ALL & ~E_NOTICE & ~8192);

then do the same for admincp/global.php and modcp/global.php.
Reply With Quote
2 благодарности(ей) от:
Pakblogger, WHN
  #3  
Old 07-18-2012, 06:14 PM
Parker123 Parker123 is offline
 
Join Date: Feb 2012
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks a lot. From what I can see it has fixed it. If I have any more probs with this I will let you know. Thanks again!

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

After using the piece of code you sent me the errors did disappeared but some of the mods are still unusable. Im really not sure what is wrong with it.
Reply With Quote
  #4  
Old 09-21-2012, 02:07 PM
WHN WHN is offline
 
Join Date: Sep 2012
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<a href="http://whiteseonet.com/install/install.php" target="_blank">http://whiteseonet.com/install/install.php</a>

can someone check that error i put that code in global also in admincp and modcp and i still have that error in install file...
that file install.php is now with error_reporting(E_ALL & ~E_NOTICE & ~8192); am still getting thet error Help!
Reply With Quote
  #5  
Old 09-21-2012, 02:38 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What version of php do you have? That code used to work but lately a few people have said it doesn't, and I'm not sure why. Maybe try this instead:
Code:
error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT);

You could also try turning off error messages altogether, like:
Code:
ini_set("display_errors", "0");
Reply With Quote
  #6  
Old 09-21-2012, 02:45 PM
WHN WHN is offline
 
Join Date: Sep 2012
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

with that code
Code:
ini_set("display_errors", "0");
solved this errors
Code:
Deprecated: Assigning the return value of new by reference is deprecated in /home/usainsur/public_html/whiteseonet.com/install/init.php on line 44

Deprecated: Assigning the return value of new by reference is deprecated in /home/usainsur/public_html/whiteseonet.com/install/init.php on line 83

Deprecated: Assigning the return value of new by reference is deprecated in /home/usainsur/public_html/whiteseonet.com/install/init.php on line 91

Deprecated: Assigning the return value of new by reference is deprecated in /home/usainsur/public_html/whiteseonet.com/install/init.php on line 171

Deprecated: Assigning the return value of new by reference is deprecated in /home/usainsur/public_html/whiteseonet.com/install/init.php on line 183
but i still have that errorrs

Code:
Deprecated: Assigning the return value of new by reference is deprecated in /home/usainsur/public_html/whiteseonet.com/includes/class_core.php on line 2518

Deprecated: Function set_magic_quotes_runtime() is deprecated in /home/usainsur/public_html/whiteseonet.com/includes/class_core.php on line 1637

Deprecated: Assigning the return value of new by reference is deprecated in /home/usainsur/public_html/whiteseonet.com/includes/functions.php on line 875

Deprecated: Assigning the return value of new by reference is deprecated in /home/usainsur/public_html/whiteseonet.com/includes/functions.php on line 879
Reply With Quote
  #7  
Old 09-21-2012, 02:54 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think that's because some of the other install files have their own error_reporting() and ini_set() calls which are overriding yours. Here's what I'd do - since those are actually just warnings, ignore them while you are doing the install. Then if they still show up on the forum once it's installed, we can figure out which other files you need to change.
Reply With Quote
  #8  
Old 09-21-2012, 03:02 PM
WHN WHN is offline
 
Join Date: Sep 2012
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

but i cant go ahead with install because of this errors am put costumer number

HTML Code:
Customer number entered successfully.
Redirecting...
and am redirected again to install.php costumer number colum
Reply With Quote
  #9  
Old 09-21-2012, 03:08 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK, well, I'm not sure the errors are your problem but I suppose they could be. What you could do then is to try looking at files init.php and installcore.php (in the intstall directory) and change the ini_set('display_errors', true) to false.
Reply With Quote
  #10  
Old 09-21-2012, 03:19 PM
WHN WHN is offline
 
Join Date: Sep 2012
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Code:
Deprecated: Assigning the return value of new by reference is deprecated in /home/usainsur/public_html/whiteseonet.com/includes/class_core.php on line 2518

Deprecated: Function set_magic_quotes_runtime() is deprecated in /home/usainsur/public_html/whiteseonet.com/includes/class_core.php on line 1637
that errors solved with @ini_set('display_errors', false);

but there are still 2 errors

Code:
Deprecated: Assigning the return value of new by reference is deprecated in /home/usainsur/public_html/whiteseonet.com/includes/functions.php on line 875

Deprecated: Assigning the return value of new by reference is deprecated in /home/usainsur/public_html/whiteseonet.com/includes/functions.php on line 879
i still can't go ahead with instalation
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 07:37 PM.


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.08312 seconds
  • Memory Usage 2,266KB
  • 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
  • (8)bbcode_code
  • (1)bbcode_html
  • (1)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
  • (2)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (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_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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete