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

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


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 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
 
20,003 posts · Mar 2009
OSX 10.6.8/10.7.3 WP 2.8.x/2.9.x/3.x Atahualpa 3.5.x/3.7.x Safari 5.x Firefox 11 XP
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) .
  #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
 
20,003 posts · Mar 2009
OSX 10.6.8/10.7.3 WP 2.8.x/2.9.x/3.x Atahualpa 3.5.x/3.7.x Safari 5.x Firefox 11 XP
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.

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 05:30 AM.


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