April 27, 2016 at 10:27 am #88274
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?
`April 27, 2016 at 12:28 pm #88276
The other error message I’ve found is:
PHP Warning: Invalid argument supplied for foreach() in /home/welbe***/public_html/wp-content/themes/DynamiX/blog.php on line 49April 27, 2016 at 2:58 pm #88283
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?
Regards,April 27, 2016 at 3:42 pm #88289
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.April 27, 2016 at 3:42 pm #88290
Sorry… DynamiX Version: 5.3April 28, 2016 at 3:15 pm #88315
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
Regards,April 29, 2016 at 6:13 am #88336
Memory is set to 128mb and according to the codex link WP will only use a maximum of 64mb so it should be ok.
Any other ideas please?April 29, 2016 at 5:25 pm #88357
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?
RegardsApril 29, 2016 at 8:34 pm #88365April 30, 2016 at 4:09 pm #88372
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.
Regards,May 1, 2016 at 9:23 am #88378May 1, 2016 at 2:38 pm #88379
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
Regards,May 4, 2016 at 8:20 am #88428May 4, 2016 at 8:25 am #88430May 4, 2016 at 8:32 am #88431
You must be logged in to reply to this topic.