Zidalgo Wordpress Forums | Catchable fatal error: Object of class WP_Error could not be converted to string in...

You must be logged in to post Login Register

Search Forums:


 






Catchable fatal error: Object of class WP_Error could not be converted to string in…

UserPost

1:07 pm
February 17, 2009


mistercyril

Member

posts 7

1

Hi there,

When I click on any of the key words in the tag cloud, I get the following error :

Catchable fatal error: Object of class WP_Error could not be converted to string in

I searched around on the web and most the time it was suggested it might be a problem with the theme… Does anybody have any idea how to solve this issue?

This theme is fantastic and its the only bug i've run into. It would be great if I could get rid of this little downturn.

Thanks,

C.

6:19 pm
February 17, 2009


Christopher Anderton

Member

posts 13

2

What file is the error refering to?

3:37 am
February 18, 2009


admin

Admin

posts 172

3

You might have an outdated version of the archive page for your theme. Go ahead and send your blog info to numethod [-at] gmail.com and I'll login and update it, or I can send you the latest version of your theme.

12:32 am
March 16, 2009


mistercyril

Member

posts 7

4

Thanks for that updated file. It solved the problem right away.

However there is a new problem now… the search function doesn't work anymore. Here is what I get :

Catchable fatal error: Object of class WP_Error could not be converted to string in …/wp-content/themes/NewsPlus/search.php on line 6

It was working fine before the previous fix (I think).

Any ideas?

Thanks again for your help and great theme.

Best,

C.

5:20 am
March 17, 2009


admin

Admin

posts 172

5

This is due to another file in your theme being outdated, if you e-mail me the search.php file I can update for you if you like. It simply requires the removal of the <?php category_description() ?> line

6:00 pm
April 14, 2009


mistercyril

Member

posts 7

6

Post edited 2:01 pm – April 14, 2009 by mistercyril


Hi again,

I have an other question that is probably a very easy fix…

When I use the search bar for a word that can't be found on the site, I get the following error message:

No articles match or contain "xxxxx".

Catchable fatal error: Object of class WP_Error could not be converted to string in… wp-content/themes/NewsPlus/search.php

on line 16

How do I get it to show the no results found page?

Thanks again,

C.

6:06 pm
April 14, 2009


mistercyril

Member

posts 7

7

Never mind,

I figured it out. It was the same problem as the one on line 6.

All good now.

;-)

C.