Jump to content

Codesort - Script Errors After Host Transfer


Ashes

Recommended Posts

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

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.