Fatal Theme Errors

Trying to troubleshoot some errors that have been occurring on the website and noticed a bunch of these in the error logs.

[Wed Aug 09 23:09:58.591014 2023] [fcgid:warn] [pid 13990:tid 139789978269440] [client xx.xx.xxx.xxx:11111] mod_fcgid: stderr: PHP Fatal error:  Uncaught Error: Call to undefined function do_action() in /(folders-removed-for-privacy)/themes/x/footer.php:9

[Wed Aug 09 23:10:00.654432 2023] [fcgid:warn] [pid 13990:tid 139789852378880] [client xx.xx.xxx.xxx:11111] mod_fcgid: stderr: PHP Fatal error:  Uncaught Error: Call to undefined function get_header() in /(folders-removed-for-privacy)/themes/x/index.php:9

Thoughts on what could be causing this?

Thanks,
K

Hi Katherine,

Thanks for reaching out.
It is not very clear when you are getting these errors logged. Can you please let us know the context in which you get these errors, so we can check and try to replicate them at our end?

Thanks

I am unfortunately not sure. I clear the logs before the evening and those show up in the morning. I haven’t been able to recreate them myself. We are trying to troubleshoot a series of 50x errors and are wondering if these fatal issues are the cause.

Hey Katherine,

Please try re-installing the theme to the latest version and see if the issue persists. It would also be best to enable the WP debugger to check the error appropriately. Please check this article on how to enable the WP to debugger.

Thank you.

I just updated your theme to the latest version yesterday and I have enabled the debugger, that’s where I got the error messages from that I sent you. What are you missing that you need from the error logs?

Hi Katherine,

Those errors usually come when you try to execute the files directly outside of WordPress CMS. These are the core functions and should be available when accessed through WordPress. If you have enabled the wp debugger, can you please provide the site URL so we can take a closer look?

Thanks!

Hey Katherine,

Upon checking your website, I don’t see a fatal error, the website is working out of the box and I don’t see any issues on the frontend.

Thank you.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.