Jump to content

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.