PDA

View Full Version : The Infamous Depreciated Errors


Sal Collaziano
05-26-2010, 10:15 PM
I'm using vBulletin 3.8.5 and I'm also running the latest safe version of PHP. Is there any way to get rid of these errors without downgrading PHP or upgrading to vBulletin 4.0? They're only happening with modifications but there's a lot of stuff I'd like to use but cannot...

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

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

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

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

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

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

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

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

Deprecated: Assigning the return value of new by reference is deprecated in /home/clubfree/public_html/includes/class_core.php on line 2552

Lynne
05-26-2010, 10:29 PM
If they are only happening with modifications, then it sounds like you need to upgrade the modifications.

Sal Collaziano
05-26-2010, 10:42 PM
If they are only happening with modifications, then it sounds like you need to upgrade the modifications.

I didn't think of that but all the modifications have just been installed on a fresh 3.85 vb install.

Lynne
05-26-2010, 10:50 PM
There is a thread over on vb.com regarding the blog having these errors and some users have posted what you would need to do to the files to get rid of some of these errors. Most of it can be found through google. I would almost think it would be easier to upgrade.

(3.8.5 itself is supposed to be fine with php5.3 - did you not upgrade some of the files?)

Sal Collaziano
05-27-2010, 01:18 AM
(3.8.5 itself is supposed to be fine with php5.3 - did you not upgrade some of the files?)

This is what has me so surprised because I - actually, it was not a fresh install. I just remember that I acquired the site with an older version of vBulletin and upgraded to 3.8.5. There were no plugins installed to begin with. So I really expected everything to work...

Sal Collaziano
09-04-2013, 03:09 AM
In case it ever comes up for anyone else (and I know this is a very old thread, but it just happened to me again), change:

$vbulletin =& new vB_Registry();

to

$vbulletin = new vB_Registry();

Note the =& and =...

...for each line, and you're all set...