Vbulletin Fix – Deprecated Assigning the return value in PHP 5.3

I recently moved my vbulletin forum to new site to PHP 5.3 and site was showing this errors.

Deprecated: Assigning the return value of new by reference is deprecated
Deprecated: Function set_magic_quotes_runtime() is deprecated

Dont worry! Here is an easy way to fix this error.

To fix:

Open global.php and add this line

error_reporting(E_ALL & ~E_NOTICE & ~8192);

Refresh your browser and your site will load normal.

Note: This is not a 100% fix solution. To fully fix deprecated warnings, you have to open the php file responsible for warnings, go to the error line no, remove the ‘&’ symbol. This will work 100%.

Similar Posts:

Prabhu Balakrishnan

Mr. Balakrishnan is a leading expert in Global citizenship and residency programs for high net worth immigrant investor clients. He is also entrepreneur with background in Computer science engineering. His other interests are Linux servers, Machine learning, Parallel computing, Computer vision, Wordpress, etc. He is born in India currently living in Budapest, Hungary.

  • http://www.itprofis.de WDZaphod

    Thanks for this fix, this problem blew my error.log to 450MB per day :-O
    Now it’s fine :-)

  • Paris

    Thank you! This not only fixed vbulletin but also OSC errors. I would imagine zencart would have no problem with this either.