• Resolved amadhav1

    (@amadhav1)


    Hello,

    I am getting this error in my php error logs, anyone know how to get rid of this?

    [Wed Aug 31 16:45:07 2016] [error] [client 10.160.45.208] PHP Fatal error: Call to undefined function get_header() in /var/www/sites/mysite/wp-content/themes/mychildtheme/index.php on line 1, referer: mysite

    Thanks,

    Aaron

    • This topic was modified 7 years, 7 months ago by Jan Dembowski. Reason: Moving to How-To and Troubleshooting
Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Please provide a link to your site! Thanks.

    also, please pastebin the index.php file for your child theme and, as it’s a child them, the functions.php and style.css files.

    Use pastebin.com; put the link here.

    Thread Starter amadhav1

    (@amadhav1)

    Thanks Steve for offering, I found the problem with my theme. There was an include that had a closing div, and when I removed that in my child theme for some reason it was causing it to give the error. I made the fix and it is no longer giving me the errors.

    Thanks,

    Aaron

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP Fatal Error’ is closed to new replies.