vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Problem with patch 3? (https://vborg.vbsupport.ru/showthread.php?t=285695)

Parker123 07-18-2012 04:45 PM

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!

kh99 07-18-2012 04:59 PM

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.

Parker123 07-18-2012 06:14 PM

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.

WHN 09-21-2012 02:07 PM

<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!

kh99 09-21-2012 02:38 PM

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");

WHN 09-21-2012 02:45 PM

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


kh99 09-21-2012 02:54 PM

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.

WHN 09-21-2012 03:02 PM

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

kh99 09-21-2012 03:08 PM

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.

WHN 09-21-2012 03:19 PM

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


All times are GMT. The time now is 09:56 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.01131 seconds
  • Memory Usage 1,750KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (8)bbcode_code_printable
  • (1)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete