Friday, January 27, 2012

vbulletin error after upgrading php "includes/init.php Line: 49"

If you are getting the below errors with vBulletin after upgrading php.



Deprecated: Assigning the return value of new by reference is deprecated in E:\websites\dynamic\DOMAIN\a2hosting_forum\includes\init.php on line 383

Deprecated: Assigning the return value of new by reference is deprecated in E:\websites\dynamic\DOMAIN\a2hosting_forum\includes\class_core.php on line 2529

Unable to add cookies, header already sent.
File: E:\websites\dynamic\DOMAIN\a2hosting_forum\includes\init.php
Line: 49


To fix
Try replacing

error_reporting(E_ALL & ~E_NOTICE);

with

error_reporting(E_ALL & ~E_NOTICE & ~8192);


Then replace all occurances of '=&' with '='


Stumble Upon CodePyro

5 comments:

Anonymous said...

in which files .

please help

Josh Tischer :: CodePyro said...

do a site wide search and replace

Anonymous said...

wow! in every file?

Josh Tischer :: CodePyro said...

yep, it worked for me and was easier to replace them all than to find the specific ones. Make a backup first.

Unknown said...

I just spent 3 days trying to fix this. You are my hero.

Post a Comment