Ashes Posted May 24, 2014 Share Posted May 24, 2014 I recently switched hosts to DreamHost, and even after a completely clean install of Codesort I'm getting these errors: The top of the Codesort admin panel: Deprecated: Assigning the return value of new by reference is deprecated in /home/fatedus/fatedus/loved/codesort/functions.php on line 35 WARNING: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/fatedus/fatedus/loved/codesort/functions.php:35) WARNING: Cannot modify header information - headers already sent by (output started at /home/fatedus/fatedus/loved/codesort/functions.php:35) And displayed on the codes page of my fanlistings is this, too: Deprecated: Assigning the return value of new by reference is deprecated in /home/fatedus/fatedus/loved/codesort/functions.php on line 35 This is line 35 of the functions.php file: $instance =& new $object; Here is a link to the script for those unfamiliar with it: http://fanupdate.net/codesort.php Here's a link to one of my fanlisting pages where the error shows up: http://odin.fated.us/codes.php Also here is a screenshot of what the error looks like inside the Codesort admin panel: http://i.imgur.com/yDlT8d9.png Help would be really appreciated, this host move has been such a pain. ;c Quote Link to comment https://forums.phpfreaks.com/topic/288730-codesort-script-errors-after-host-transfer/ Share on other sites More sharing options...
QuickOldCar Posted May 27, 2014 Share Posted May 27, 2014 Old code made for an old version of php, You would need to rewrite the script. Change this $instance =& new $object; To this $instance =new $object; The other warning messages: should go away, can not output anything before headers, which in this case was the warning message. Quote Link to comment https://forums.phpfreaks.com/topic/288730-codesort-script-errors-after-host-transfer/#findComment-1481042 Share on other sites More sharing options...
Ashes Posted May 27, 2014 Author Share Posted May 27, 2014 It worked!! Thank you soooooo much. Quote Link to comment https://forums.phpfreaks.com/topic/288730-codesort-script-errors-after-host-transfer/#findComment-1481062 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.