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

    Hi Kriesi,

    I have finally launched our company’s new website at: http://www.specialisedorthoticservices.co.uk and I noticed the following:

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

    http://www.specialisedorthoticservices.co.uk/wp-content/themes/eunoia/

    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

    /var/www/specialisedorthoticservices.co.uk/htdocs/wp-content/themes/eunoia/index.php

    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,

    Tom

    #130911

    Hi,

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

    Regards,

    Ismael

    #130912

    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.

    #130913

    http://www.kriesi.at/themes/eunoia/wp-content/themes/eunoia/

    It also does it on the demo theme.

    Any ideas?

    #130914

    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

    <?php

    with

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

    #130915

    Thanks,

    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.

    #130916

    I have changed it to read:

    ‘<?php

    // Don’t load directly

    if ( !defined(‘ABSPATH’) ) { die(‘This page should not be browsed directly, please visit our homepage at http://www.specialisedorthoticservices.co.uk‘); }’

    Just in case!

    #130917

    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.

    Regards,

    Devin

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

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