Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
  • #26573

    Hi Kriesi,

    I have finally launched our company’s new website at: and I noticed the following:

    I get an Error Code 500 message when visiting the following directly:

    According to the PHP error log this is the root of the problem:

    [22-Jul-2013 11:39:55] PHP Fatal error: Call to undefined function

    do_action() in


    on line 11

    Any advice on this? The site works fine, and is ranking well with google but it was a google crawl which identified the problem.

    Best Regards,




    You should probably contact your host, see if they can locate the issue. Anyway, I think there is nothing to worry about.




    I have contacted the web host, they have said that line 11 in index.php in the Eunoia Theme is calling on an undefined action which is causing the error. It is strange that the php script is calling on the file location directly (including the htdocs folder in the address). Any suggestions?

    It does not appear to affect the site its self but it is flagged as a critical error in Google Webmaster Tools.


    It also does it on the demo theme.

    Any ideas?


    Actually this file is never called directly (and shouldn’t be called directly) thus you’ll get the error. If you want to avoid this error open up index.php and replace following code at the very top of the file



    // Don't load directly
    if ( !defined('ABSPATH') ) { die('-1'); }



    This removes the server error and serves a page with -1 written at the top. Not entirely sure why google is trying to crawl this page.


    I have changed it to read:


    // Don’t load directly

    if ( !defined(‘ABSPATH’) ) { die(‘This page should not be browsed directly, please visit our homepage at‘); }’

    Just in case!


    Hi Tom,

    That will definitely help prevent any issues. Not sure why google would crawl it but if you aren’t already try out Yoast SEO or a plugin like that to assist wordpress in being even better with SEO.



Viewing 8 posts - 1 through 8 (of 8 total)

The topic ‘PHP Fatal Error call to undefined action’ is closed to new replies.