Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme »

Catchable fatal error: Object of class stdClass could not be converted to string !?


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Dec 13, 2008, 06:53 AM
neocratus
 
9 posts · Dec 2008
Exclamation Catchable fatal error: Object of class stdClass could not be converted to string !?

i get this error:

Catchable fatal error: Object of class stdClass could not be converted to string in /home/wp-content/themes/atahualpa3/functions/bfa_postinfo.php on line 161

- some guys say
The issue has to do with PHP 5.2+ breaking certain backward-compatibility of converting a PHP 'object' to a text string. You either need to downgrade below 5.2, or the code where the error occurs needs to be 'properly fixed' to address the change (the fixes should then work on any version...)
  #2  
Old Dec 13, 2008, 12:56 PM
Flynn's Avatar
Flynn
 
3,765 posts · Oct 2008
Munich, Germany
Thanks I know about it but need to get access to webspace with PHP 5.2 first
  #3  
Old Dec 13, 2008, 03:51 PM
neocratus
 
9 posts · Dec 2008
can we help anyhow?
  #4  
Old Dec 13, 2008, 04:09 PM
Flynn's Avatar
Flynn
 
3,765 posts · Oct 2008
Munich, Germany
Can you comment out line 161 in functions/bfa_postinfo.php by adding a hash sign # at the beginning of the line?

PHP Code:
#$postinfo = str_replace("%category%", $category, $postinfo); 
and see if the error goes away?

If not, add a hash to line 160 as well so you get

PHP Code:
#$postinfo = preg_replace("/(.*)%date\((.*?)\)%(.*)/i", "\\1" .$date. "\\3", $postinfo);
#$postinfo = str_replace("%category%", $category, $postinfo); 
If it goes away now, can you try to remove the hash from line 161 again and see if the error is still gone.

I am trying to find out if its line 161 or 160. Even though it says 161 it could be 160 as well.
  #5  
Old Dec 13, 2008, 04:25 PM
campi
 
6 posts · Dec 2008
Quote:
Originally Posted by Flynn
Can you comment out line 161 in functions/bfa_postinfo.php by adding a hash sign # at the beginning of the line?

PHP Code:
#$postinfo = str_replace("%category%", $category, $postinfo); 
and see if the error goes away?

If not, add a hash to line 160 as well so you get

PHP Code:
#$postinfo = preg_replace("/(.*)%date\((.*?)\)%(.*)/i", "\\1" .$date. "\\3", $postinfo);
#$postinfo = str_replace("%category%", $category, $postinfo); 
If it goes away now, can you try to remove the hash from line 161 again and see if the error is still gone.

I am trying to find out if its line 161 or 160. Even though it says 161 it could be 160 as well.

Sorry for my english



Test 1
I've comment the line 161 in bfa_postinfo.php. The error disappears

Test 2
I've comment the line 160 in bfa_postinfo.php. I get the same error

Test 3
I've comment the line 160 and 161 in bfa_postinfo.php. The error disappears

Last edited by campi; Dec 13, 2008 at 04:59 PM.
  #6  
Old Dec 13, 2008, 04:33 PM
neocratus
 
9 posts · Dec 2008
yes,

it worked like a charm,

thanks Flynn


First HASH was ok. Problem SOLVED!
  #7  
Old Dec 13, 2008, 05:08 PM
campi
 
6 posts · Dec 2008
Quote:
Originally Posted by campi
Sorry for my english



Test 1
I've comment the line 161 in bfa_postinfo.php. The error disappears

Test 2
I've comment the line 160 in bfa_postinfo.php. I get the same error

Test 3
I've comment the line 160 and 161 in bfa_postinfo.php. The error disappears
The same line in V2 and V3

Atahualpa V2

-> 12 Diciembre, 2008 | Tags: carnet, conducir, internacional, permiso | Category: Desde Espaņa | Editar | Comentarios (1)

Test 1
Comment the line 161

-> | carnetconducirinternacionalpermiso Category: Desde Espaņa |

Test 2
Comment the line 160

-> Catchable fatal error: Object of class stdClass could not be converted to string in /home1/vayafies/public_html/depaseoporaustralia/wp-content/themes/atahualpa3/functions/bfa_postinfo.php on line 161

Test 3
Comment the line 160 and 161

-> %date(\'F jS, Y\')% | carnetconducirinternacionalpermiso Category: Desde Espaņa |

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Fatal Error rmribeiro Atahualpa 3 Wordpress theme 8 Apr 10, 2013 04:41 AM
Fatal error? Phil Jackson Atahualpa 3 Wordpress theme 1 Apr 29, 2009 09:43 AM
wp-email plugin gives fatal error streetwise Plugins & Atahualpa 2 Feb 3, 2009 05:51 AM
"Catchable fatal error" ... please try this file Flynn Atahualpa 3 Wordpress theme 5 Dec 18, 2008 03:25 AM
Fatal Error aliferste Atahualpa 3 Wordpress theme 2 Dec 14, 2008 03:57 AM


All times are GMT -6. The time now is 06:57 AM.


Powered by vBulletin® Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.