Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Plugins & Atahualpa (http://forum.bytesforall.com/forumdisplay.php?f=16)
-   -   wp-email plugin gives fatal error (http://forum.bytesforall.com/showthread.php?t=173)

streetwise Feb 3, 2009 05:08 AM

wp-email plugin gives fatal error
 
Hello,

First of all, hats off for this great theme. It's really great.

I have a small problem when i try to use wp-email plugin (2.40) with the theme (3.19)

when i try the "send to a friend" link of wp-email on a post, it works.

but when i try to click it on a page, i get this error:

Quote:

Fatal error: Call to a member function get_queried_object_id() on a non-object in /home/hentbolp/public_html/wp-content/themes/atahualpa/index.php on line 10
The site is in Turkish but i guess you can understand what is what.

http://www.hentbolplatformu.com

By the way, i regenerated the permalinks as instructed. It didn't do any good.

Thanks in advance...

Flynn Feb 3, 2009 05:31 AM

Thank you, you found a bug. To correct it in your version change in index.php line 10 from

PHP Code:

if ( is_page() ) { $current_page_id $wp_query->get_queried_object_id(); } 

to

PHP Code:

if ( is_page() ) { global $wp_query$current_page_id $wp_query->get_queried_object_id(); } 

This will be fixed in Atahualpa version 3.2

streetwise Feb 3, 2009 05:51 AM

that solves the problem. thanks for the quick fix.


All times are GMT -6. The time now is 07:19 AM.

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