• Resolved dlherrin

    (@dlherrin)


    I am using a child theme based on Tortuga. Every day at about the same time I get a single PHP error message logged in my ‘error_log’ file in the wp-content/themes/tortuga directory, as shown below:

    [28-Jul-2020 13:21:58 UTC] PHP Fatal error: Uncaught Error: Call to undefined function get_header() in /home/xyzzy/public_html/new-nancyherrington/wp-content/themes/tortuga/index.php:14
    Stack trace:
    #0 {main}
    thrown in /home/xyzzy/public_html/new-nancyherrington/wp-content/themes/tortuga/index.php on line 14

    I have replaced my user name with “xyzzy” in the above log file entry. This is running on a GoDaddy server with the Securi cybersecurity product enabled.

    Any idea why I am seeing this once-per-day error message?

    Thanks!
    Dave Herrington

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Theme Author ThemeZee

    (@themezee)

    Hi Dave,

    I’m sorry but I can’t tell you that. This has something to do with your server configuration and WordPress installation, not the theme.

    get_header() is a basic WordPress Core function and loads the header.php of the theme. An undefined error for this function tells me that the index.php was most likely called outside from WordPress. Hope that helps to track the issue down.

    Cheers,
    Thomas

    Thread Starter dlherrin

    (@dlherrin)

    Thank you. I have three WordPress websites on my hosting service that use ThemeZee themes. Two of them are protected by the Sucuri security suite, and those two have identical errors at identical times each day. The third does not. I assume that the error is generated by daily security scanning activity.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Daily PHP error message logged in Tortuga directory’ is closed to new replies.