[Resolved] Ultra error log call to undefined function


  • Author
  • #11983


    Hi, we are running the latest Ultra (Premium 2.3.4) with WP 5.0.3

    Since Jan 11, getting errors in wp-content/themes/ultra/error_log which seem to repeating every day. Site seems to be running ok, but iThemes security keeps flagging it.

    [11-Jan-2019 12:53:55 UTC] PHP Fatal error: Uncaught Error: Call to undefined function get_header() in /home/xxxx/public_html/wp-content/themes/ultra/index.php:18
    Stack trace:
    #0 {main}
    thrown in /home/xxxx/public_html/wp-content/themes/ultra/index.php on line 18

    Is there something that should be done? Do you need more info?



    Andrew Misplon

    Hi Terry

    Good to hear from you.

    I took a look around now, it sounds like this error is created when the theme’s index.php file is accessed directly. Please, see the first reply here.

    I’m not very familiar with iThemes Security, are you able to ignore or create an exception for this? From a theme development perspective, the index file needs to call the header file. The error is occurring because of the way the file is being accessed. I’m not sure how the index.php file is being accessed directly.

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

The topic ‘Ultra error log call to undefined function’ is closed to new replies.

Scroll to top