PDA

View Full Version : Odd Error at the top of my pages.


Bulldog Stang
10-22-2011, 09:52 AM
Here is what is displaying:

Deprecated: Assigning the return value of new by reference is deprecated in /home/ustangs/public_html/forums/includes/init.php on line 55

Deprecated: Assigning the return value of new by reference is deprecated in /home/ustangs/public_html/forums/includes/init.php on line 107

Deprecated: Assigning the return value of new by reference is deprecated in /home/ustangs/public_html/forums/includes/init.php on line 111

Deprecated: Assigning the return value of new by reference is deprecated in /home/ustangs/public_html/forums/includes/init.php on line 119

Deprecated: Assigning the return value of new by reference is deprecated in /home/ustangs/public_html/forums/includes/init.php on line 130

Deprecated: Assigning the return value of new by reference is deprecated in /home/ustangs/public_html/forums/includes/init.php on line 134

Deprecated: Assigning the return value of new by reference is deprecated in /home/ustangs/public_html/forums/includes/init.php on line 142

Deprecated: Assigning the return value of new by reference is deprecated in /home/ustangs/public_html/forums/includes/init.php on line 211

Deprecated: Assigning the return value of new by reference is deprecated in /home/ustangs/public_html/forums/includes/init.php on line 389

Deprecated: Assigning the return value of new by reference is deprecated in /home/ustangs/public_html/forums/includes/class_core.php on line 2552

Warning: Cannot modify header information - headers already sent by (output started at [path]/includes/init.php:55) in [path]/arcade.php on line 97

I am open to suggestions on how to fix this. I have tried everything that I know how to do and I have had no luck.

Bulldog

nerbert
10-22-2011, 12:00 PM
Some months ago my web hosting service upgraded to a newer version of php but then quickly installed some work around that allowed the older version to be used. While the process was underway I got strange error messages warning that this or that had been deprecated. I would check out your host's web page and see if there's any news on that matter and talk with them about the problem.

kh99
10-22-2011, 12:32 PM
Yeah, it looks like a php version thing. You should really upgrade to the latest vbulletin release that's compatible with the php you have. But if you don't want to do that you can edit the vb files and replace all these:

error_reporting(E_ALL & ~E_NOTICE);


with this:

error_reporting(E_ALL & ~E_NOTICE & ~8192);


(hopefully using a program with a search and replace function, because there's a lot of those lines).

Lynne
10-22-2011, 04:25 PM
What version php is your server running and was this recently changed? What version of vbulletin are you running?

Bulldog Stang
10-23-2011, 02:57 AM
I am running vb 3.8.6 Patch Level 1.

Myphp is version 3.4.5. I am not sure if this was recently changed or not.

kh99
10-23-2011, 01:07 PM
Myphp is version 3.4.5. I am not sure if this was recently changed or not.

I don't think that can be your php version - the latest version of php is 5.3.8, and you probably couldn't be using any version that doesn't start with at least 4.