Error in WP: Deprecated

I have three blogs installed on my hosting.

The blog i’m having problems width has it’s files in the root.
And i get these errors on dashboard

Deprecated: Assigning the return value of new by reference is deprecated in */public_html/wp-includes/class-simplepie.php on line [...]

I get these errors in incoming links tabs and wordpress development blog.

The other two blogsi have installed don’t show these errors. Everything is normal. How is that possible?

And btw, host provider uses PHP 5.3.3

Hi Agent001, welcome to SitePoint! :slight_smile:

Are you using a custom theme for this site? If you google that error message, you will probably find a fix for it, especially if it’s associated with a theme of some kind. The author may have provided a fix.

Check this out:

Actually, the theme i’m using is causing problems.
But i cannot seem to figure out how, because the error reported is found at w’s wp-includes (class-simplepie.php) folder.

No luck with google.

SpacePhoenix’s post from the topic you mentioned may be useful, but as i said, i get this only when i’m using a certain theme.

How can that be possible?

The theme uses simplepie which causes the issue.

How can i throw out the simplepie part of the theme, cause i don’t really use it.

Find where in the theme it’s used and remove all references.

It’s me again, after a while.

Is it possible that the theme itself has the error reporting function turned on somewhere?

I mean, all works great. When i put the rss feed in my sidebar, it shows and works correctly, just that i get a bunch o deprecated warnings. Is there any way that i can turn them off, inside the theme itself (what should i look for to see if it’s there)

If it did it would use the [fphp]error_reporting[/fphp] function, so you try searching that in the code. Alternatively the errors can be turned on/off by using ini_set in runtime:

ini_set('display_errors', 1);

I found this bit of code

error_reporting(E_ALL ^ E_NOTICE);

With the error reporting turned off, it should look like



ini_set(‘display_errors’, ‘0’); would be enough as it turns off everything.

Ok, i solved the problem.
Hard time was that that bit of code was implemented into 6 different files, so had to replace it in all of them (but first had to find them :D).

Anyhow, thank you very much for your help.