Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Comments, trackbacks & pings (http://forum.bytesforall.com/forumdisplay.php?f=19)
-   -   [SOLVED] Comments error on single page (http://forum.bytesforall.com/showthread.php?t=4162)

gcarson Nov 1, 2009 03:13 PM

[SOLVED] Comments error on single page
When I go to view a single page, this error comes up:

Fatal error: Call to undefined function boposts_show() in .../wp-content/themes/atahualpa/functions/bfa_postinfo.php(594) : eval()'d code on line 5

in bfa_postinfo.php, starting on like 589, is this code:

/* PHP code in Post Info Items.
But not for WPMU */
/*removed in 3.4.3. - PHP code works in WPMU too */
if ( strpos($postinfo_string,'<?php ') !== FALSE ) {
$postinfo = ob_get_contents();

making like 594 - eval('?>'.$postinfo);

when i remove this code, the page works. Anyone have any ideas why this might cause an error on a single page?

juggledad Nov 1, 2009 07:31 PM

does it happen on ALL single pages or just certian ones?
Do you have any NEW WIDGETS?
Are you embedding anything in the posts?
what is boposts_show? Is this from a plugin?
Hve you modified any of the code?
What release are you running?

gcarson Nov 1, 2009 08:45 PM

I wasn't sure if boposts_show() was from a plugin or from atahualpa. I'm guessing from your question its from a plugin. After some quick searching, it seems as though its from a plugin called best related posts, which I tried out, and deactivated. But it seems as though there still might be some code from it? Trying to search all my files to see where that function might be called from..

gcarson Nov 1, 2009 09:39 PM

Well, I will be the first to admit I'm not very good at this. I forgot the plugin has you add some code. After I figured that out, it only took me a few hours to find where I added the code. So to all you novices out there like me, keep track of what you do better to avoid wasting hours.

All times are GMT -6. The time now is 11:45 AM.

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