CodeIgniter Error in core/Common.php line 257

How to fix > CodeIgniter Error in core/Common.php line 257

If you see this error code on your website page :

A PHP Error was encountered
Severity: Notice
Message: Only variable references should be returned by reference
Filename: core/Common.php
Line Number: 257

 

Here is the fix :

Open this file:

/system/core/Common.php

 

on line 257 you should see :

return $_config[0] =& $config;

 

Now that you have located this line, Completely replace this line so that you get this:

$_config[0] =& $config;
return $_config[0];

Save This File!

Refresh your website and the error should be gone !   Enjoy !

 

Was this article helpful?

Related Articles

Leave A Comment?

You must be logged in to post a comment.