Deprecated: Assigning the return value of new by reference is deprecated


I have received the following error message on my website

Deprecated: Assigning the return value of new by reference is deprecated

The reason is that my host has upgraded php version in the server and the function I have used in my site has been depreciated.

You can fix this by simply doing some edits. if you go to the files and the line numbers indicated in the error messages, you’ll see something like this:
$object =& new MyObject();

You can just remove the “&” from the above line

Advertisements

Author: vishnulinux

Linux admin

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s