Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Fatal error: Call-time pass-by-reference has been removed

Just installed and trying to go to the admin panel I receive the error

Fatal error: Call-time pass-by-reference has been removed in /home/xxxxxxx/public_html/admin/pages/home.php on line 97
What PHP version are you using? 5.3 or 5.4? AFAIK THT hasn't been tested on a 5.4 setup yet.
Remote Servers - Shared, Reseller & KVM Hosting Services
PHP is now primarily tested on 5.3 but I'm pretty certain it'll work just fine on 5.2 too. 5.4 brought about some code-breaking changes.

To fix this specific issue you can replace
PHP Code:
preg_match_all('/(<(?:a|img) (?:href|src)=(?:"|\'))([-A-Z0-9+&@#\/%?=~_|!:,.;]*[A-Z0-9+&@#\/%=~_|])((?:"|\')[a-z0-9]*[^<>]*\/?>)/si'$item['summary'], &$matchesPREG_SET_ORDER); 
PHP Code:
preg_match_all('/(<(?:a|img) (?:href|src)=(?:"|\'))([-A-Z0-9+&@#\/%?=~_|!:,.;]*[A-Z0-9+&@#\/%=~_|])((?:"|\')[a-z0-9]*[^<>]*\/?>)/si'$item['summary'], $matchesPREG_SET_ORDER); 
Kevin Mark - TheHostingTool Lead Developer

Forum Jump:

Users browsing this thread: 1 Guest(s)