WordPress.org

Ready to get started?Download WordPress

Forums

PHP Fatal Error due to Hyper Cache plugin (2 posts)

  1. melissaaggie98@gmail.com
    Member
    Posted 3 years ago #

    Hello,

    I use Hyper Cache on my blog (www.mommylivingthelifeofriley.com) and I thought everything was running great, but when I check my error logs in cPanel, I've started noticing a lot of the following error:

    [Tue Apr 26 10:58:56 2011] [error] [client 72.14.194.33] PHP Fatal error: Call to undefined function is_home() in /home/livmommy/public_html/wp-content/plugins/hyper-cache/cache.php on line 201

    I'm not sure what code I needed to include here, so if there's something I else I need to post, please let me know and I will right away.

    If anyone can help me fix this, I would really appreciate it! Have a great day!

  2. mattyrob
    Member
    Posted 2 years ago #

    I think that IP address is one of Googles crawler bots - probably accessing your site in a way that a human never would.

    You can always add the following to the if statement on line 201 of the file specified in the error message like this:


    if (function_exists('is_home') && is_home() && $hyper_cache_home) {

    Instead of it's current for as:


    if (is_home() && $hyper_cache_home) {

    But you'd need to do the same a few lines further down and for the is_page(), is_single() statements a few lines down again.

Topic Closed

This topic has been closed to new replies.

About this Topic