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


error_reporting(E_ALL & ~E_NOTICE & ~8192);

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

Stumble Upon CodePyro


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.

Unknown said...

I will express my opinion solemnly with watch two sonorous and rolex replica sale forceful words. Really, I can think what I watch is more suitable than a man, the woman he would not let him wait, punctual man definitely needs a good watch replica watches sale man will take a stroll around the clock. To urge his men to grow up as a good man, send him a watch replica watches uk is better. Men appearance and internal from different angles to show male charm, complement each other, indispensable. Therefore, a good man is rolex replica sale always used to constantly improve their appearance at the hublot replica watches same time, do not stop their deep inner world.

Post a Comment