0

Error in this line

return $_config[0] =& $config;

when I changed this to

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

then it gives me http error 500

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

It give like that error and also my server php version is updated 7.1

RiggsFolly
  • 93,638
  • 21
  • 103
  • 149
  • 1
    I think you need to downgrade your PHP version or need to upgrade you CI version – M.Hemant Nov 02 '19 at 08:01
  • A PHP Error was encountered Severity: Notice Message: Only variable references should be returned by reference Filename: core/Common.php Line Number: 257 It give like that error and also my server php version is updated 7.1 – MD Sarfaraj Nov 02 '19 at 08:07
  • There are few answers to this question already in stackoverflow (One among them : https://stackoverflow.com/questions/28348879/only-variable-references-should-be-returned-by-reference-codeigniter). But yes, it's a true fact as @M.Hemant said, consider downgrading your PHP to 5.x or upgrading your CI. – Akshit Arora Nov 02 '19 at 08:26

0 Answers0