Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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 !?


  #1  
Old Dec 13, 2008, 06:53 AM
neocratus
 
9 posts · Dec 2008
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,768 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,768 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, 04:45 PM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
Thanks a lot campi and neocratus

If you don't need %category% (prints (only) the first category name the post is filed under) then it would indeed be solved for you, and I know now what line to work on
  #8  
Old Dec 13, 2008, 05:01 PM
campi
 
6 posts · Dec 2008
Quote:
Originally Posted by Flynn
Thanks a lot campi and neocratus

If you don't need %category% (prints (only) the first category name the post is filed under) then it would indeed be solved for you, and I know now what line to work on
I updated my message
  #9  
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 |
  #10  
Old Dec 13, 2008, 05:18 PM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
Most errors are coming from bfa_postinfo.php, I am on it

Also, see http://forum.bytesforall.com/showthread.php?t=35 regarding date issues. It may even fix the missing comma between tags?
  #11  
Old Dec 13, 2008, 05:25 PM
campi
 
6 posts · Dec 2008
Quote:
Originally Posted by Flynn
Most errors are coming from bfa_postinfo.php, I am on it

Also, see http://forum.bytesforall.com/showthread.php?t=35 regarding date issues. It may even fix the missing comma between tags?
With Atahualpa v3 tags are wrong

and YAPB fails

Last edited by campi; Dec 13, 2008 at 06:03 PM.
  #12  
Old Dec 13, 2008, 06:47 PM
WaterfrontGazette
 
5 posts · Dec 2008
WOW, I'm learning GREEK!

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 11:58 PM.


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