Message: Only variable references should be returned by reference In Codeigniter



Last line is causing the issue. return $_config[0] =& $config;


Here is the github reference link which mention the above issue. To fix this you have use latest version of codeigniter CI3.0 or you have to manually fix this issue. Just replace below code with return statement. It will solve the issue.

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

Leave A Reply

Your email address will not be published.