Resolved

Ultra error log call to undefined function

Ultra Theme started by TerryMG Feb 6, 2019 1 reply
TerryMG Feb 6, 2019 · 4:30 pm #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?

Thanks

Andrew Misplon Puro Feb 6, 2019 · 4:43 pm #11984

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.

2 posts
Closed This topic is closed to new replies. Still stuck? Start a new topic in Ultra Theme.