I’m getting lots of 500 and 404 errors in the WordPress admin and on the website.
I’ve not been able to determine what has created this problem as various plugin, wordpress and theme updates have occurred, however the error in the server’s error log is:
PHP Fatal error: Call to undefined function of_get_option() in /home/welbe***/public_html/wp-content/themes/DynamiX/header.php on line 16
Any suggestions please?
Can you please specify what version of WordPress and Dynamix are you using? Does the error appear randomly or do they appear after doing something on the site?
Have you tried to disable all you plugins to check if any of them is triggering the error?
Good questions 🙂
WP 4.5 and today 4.5.1
It’s not a specific task that I’m doing. I’m creating posts, pages, adding categories, previews drafts, all sorts of things.
I’ve done the remove all plugin and it seemed ok for a time then got the 500 error again.
The only temporary solution is clearing the browser cache but it’s temporary only.
It is likely that WP/PHP Memory has been exhausted triggering the errors. What is your current PHP memory allocation? If it is set low, try to increase it as the theme works best if the memory is set to 64MB as minimum.
Once done, please increase WP Memory as well which can be done by following this guide: https://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP
You can actually set the WP Memory higher to maybe around 96MB since your PHP memory is 128Mb.
Can you also please send the URL to your site and send login credentials as well so we can check further?
Can you please specify your site’s URL as you have not specified it yet? Also, there is not much we can do on the dashboard since the issue is probably server-side. You will need to let your hosting provider look into the issue for you, as error 500/404 normally occurs if the server runs out of server resources to execute the functions.
I’ve checked a few posts and re saved them and I am not experiencing the error. I also checked a few pages and still do not see the error. It will really be difficult to check this if we can’t reproduce the issue.
Since we do not have access to the server’s logs, can you please enable WP Debug? Also, can you please upload php.info file so we can check the default php values set on the server. Here’s a guide on how to do it: https://mediatemple.net/community/products/dv/204643880/how-can-i-create-a-phpinfo.php-page
You must be logged in to reply to this topic.