Hi there,
Thanks for your helpful and thorough reply.
I’ve found out from the host (Cloudways, 8GB, 3CPU VM) caused the server to go down (and give Service Unavailable error) was that the memory allocated to PHP was insufficient. They only had 128M allocated, which seems rather low to me. Yesterday they increased it to 2040M to resolve the Service Unavailable error, and that brought server back online.
It was at that point that WordPress was then able to load, and it would display the standard “Critical error” message (on front and back end).
Disabling the dynamic heartbeat plugin was the only was to stop that. That was not resource related, as far as I can tell.
I am now looking through error logs, and finding a lot of instances of this error. It appears to occur roughly two times every minute. It appears these errors are caused by the Dynamic Heartbeat plugin, as it’s the only plugin that has the function ” ” within its code.
[Mon Sep 18 00:19:57.334828 2023] [proxy_fcgi:error] [pid 31292:tid 140552200681216] [client 180.191.64.224:0] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, function "dfehc_track_and_expire_user_activity" not found or invalid function name in /home/608767.REMOVED.com/gpnhmcjwnz/public_html/wp-includes/class-wp-hook.php:312\nStack trace:\n#0 /home/608767.REMOVED.com/gpnhmcjwnz/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters()\n#1 /home/608767.REMOVED.com/gpnhmcjwnz/public_html/wp-admin/includes/ajax-actions.php(3494): apply_filters()\n#2 /home/608767.REMOVED.com/gpnhmcjwnz/public_html/wp-includes/class-wp-hook.php(310): wp_ajax_heartbeat()\n#3 /home/608767.REMOVED.com/gpnhmcjwnz/public_html/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()\n#4 /home/608767.REMOVED.com/gpnhmcjwnz/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()\n#5 /home/608767.REMOVED.com/gpnhmcjwnz/public_html/wp-admin/admin-ajax.php(188): do_action()\n#6 {main}\n thrown in /home/608767.cl...', referer: https://www.REMOVED.com.au/wp-admin/edit.php?s=tas&post_status=all&post_type=shop_order&action=-1&m=0&payment_method&_customer_user&_shop_order_shipping_provider&paged=1&action2=-1
At the time WP was having a critical error, the error message in the logs was:
[Mon Sep 18 06:08:12.258095 2023] [proxy_fcgi:error] [pid 27004:tid 140552402106112] [client 121.200.4.109:0] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, function "dfehc_track_and_expire_user_activity" not found or invalid function name in /home/608767.REMOVED.com/gpnhmcjwnz/public_html/wp-includes/class-wp-hook.php:312\nStack trace:\n#0 /home/608767.REMOVED.com/gpnhmcjwnz/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters()\n#1 /home/608767.REMOVED.com/gpnhmcjwnz/public_html/wp-admin/includes/ajax-actions.php(3494): apply_filters()\n#2 /home/608767.REMOVED.com/gpnhmcjwnz/public_html/wp-includes/class-wp-hook.php(310): wp_ajax_heartbeat()\n#3 /home/608767.REMOVED.com/gpnhmcjwnz/public_html/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()\n#4 /home/608767.REMOVED.com/gpnhmcjwnz/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()\n#5 /home/608767.REMOVED.com/gpnhmcjwnz/public_html/wp-admin/admin-ajax.php(188): do_action()\n#6 {main}\n thrown in /home/608767.cl...', referer: https://www.REMOVED.com.au/wp-admin/post.php?post=80764&action=edit
That appears to be related to backend activity (post editing). Whereas the one I shared yesterday was for front-end activity.
Just now I have tried to re-activate the plugin. It won’t activate due to same critical error:
Plugin could not be activated because it triggered a fatal error.
Fatal error: Uncaught Error: Call to undefined function shell_exec() in /home/608767.REMOVED.com/gpnhmcjwnz/public_html/wp-content/plugins/dynamic-front-end-heartbeat-control/heartbeat-controller.php:408 Stack trace: #0 /home/608767.REMOVED.com/gpnhmcjwnz/public_html/wp-content/plugins/dynamic-front-end-heartbeat-control/heartbeat-controller.php(419): get_system_load_average() #1 /home/608767.REMOVED.com/gpnhmcjwnz/public_html/wp-admin/includes/plugin.php(2318): include_once('/home/608767.cl...') #2 /home/608767.REMOVED.com/gpnhmcjwnz/public_html/wp-admin/plugins.php(192): plugin_sandbox_scrape() #3 {main} thrown in /home/608767.REMOVED.com/gpnhmcjwnz/public_html/wp-content/plugins/dynamic-front-end-heartbeat-control/heartbeat-controller.php on line 408
Thanks for the suggestions regrading WP Rocket.
I also greatly appreciate your offer to take a look at what might be causing excessive resource usage. For now, I’m not able to grant access to the site. I’ll need to get my client (the site owner) to permit that. It’s a busy ecommerce site with a fair bit of private data on it.
What are your thoughts on the above errors? I am pretty certain they are not due to lack of server resources.
Thanks very much.
Jonathan
-
This reply was modified 1 year, 6 months ago by
inspired888.