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 » Plugins & Atahualpa »

SEARCH ERROR: Catchable fatal error:Object of class WP_Error could not be converted


  #1  
Old Apr 1, 2010, 08:44 AM
angelarose
 
1 posts · Mar 2010
When I Search on my site I get

Catchable fatal error: Object of class WP_Error could not be converted to string in REMOVED ADDRESS /wp-content/themes/atahualpa/functions/bfa_postinfo.php on line 308

Line 308 is blank....

// Author website link
LINE 308
if ( strpos($postinfo_string,'%author-link%') !== FALSE ) {

ob_start();

the_author_link();

$author_link = ob_get_contents();

ob_end_clean();

$postinfo = str_replace("%author-link%", $author_link, $postinfo);

}

I am a newbie and have no idea what I am doing!
Please advise. Thanks So Much and God Bless.
~Angela
  #2  
Old Apr 1, 2010, 06:35 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
what version of Atahualpa and WP?
what is our URL?
How did you install Atahualpa?

Line 308 should be
HTML Code:
		$category_linked = '<a href="' . get_category_link($all_categories[0]->cat_ID) .
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Jul 8, 2010, 03:42 PM
Mae
 
1 posts · Jul 2010
I have the same error:

Catchable fatal error: Object of class WP_Error could not be converted to string in ../htdocs/wp-content/themes/atahualpa351/functions/bfa_postinfo.php on line 308

WP 3.0
Atahualpa 3.5.1
No URL - Sorry
Line 308 is "$category_linked = '<a href="' . get_category_link($all_categories[0]->cat_ID) ."
(Use Notepad++)

Somebody told me to use this:
"
<?php
error_reporting(8191); // E_ALL und E_STRICT
ini_set('display_errors', TRUE); // evtl. hilfreich

function exception_error_handler($errno, $errstr, $errfile, $errline )
{
throw new ErrorException($errstr, 0, $errno, $errfile, $errline);
}

set_error_handler("exception_error_handler");


class test {}

$test = new test;

try
{
echo $test;
}
catch(Exception $e)
{
echo "Ausnahme: ".$e->getmessage();
}

?>
"
But how did this help me?!?
  #4  
Old Jul 8, 2010, 05:05 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Quote:
Somebody told me to use this:
"
<--snip-->
?>
"
But how did this help me?!?
I would ask the person that suggested it to you.

Does it happen every time you do a search?
What is the url? if you want to keep it private, send it to me in a PM.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

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
[SOLVED] Excerpt Error: &quot;Fatal error: Call to undefined function: the_post_thumbnail( buzz628 Excerpts, Read more, Pagination 2 Jan 15, 2010 02:58 PM
Search Unleashed plugin and fatal error perdox808 Plugins & Atahualpa 1 Apr 23, 2009 12:39 PM
"Catchable fatal error" ... please try this file Flynn Atahualpa 3 Wordpress theme 5 Dec 18, 2008 03:25 AM
Catchable fatal error: Object of class stdClass could not be converted to string !? neocratus Atahualpa 3 Wordpress theme 11 Dec 13, 2008 06:47 PM


All times are GMT -6. The time now is 03:03 PM.


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