Title: i get php error DFEHC_MAX_SERVER_LOAD
Last modified: May 24, 2023

---

# i get php error DFEHC_MAX_SERVER_LOAD

 *  Resolved [Phuong Tong](https://wordpress.org/support/users/tvphuong41/)
 * (@tvphuong41)
 * [3 years ago](https://wordpress.org/support/topic/i-get-php-error-dfehc_max_server_load/)
 * [24-May-2023 08:06:56 UTC] PHP Warning: Use of undefined constant DFEHC_MAX_SERVER_LOAD–
   assumed ‘DFEHC_MAX_SERVER_LOAD’ (this will throw an Error in a future version
   of PHP) in /home/xphsfeaf/public_html/edutv/#mysite.vn/wp-content/plugins/dynamic-
   front-end-heartbeat-control/heartbeat-controller.php on line 39
   [24-May-2023 
   08:06:56 UTC] PHP Warning: A non-numeric value encountered in /home/xphsfeaf/
   public_html/edutv/#mysite.vn/wp-content/plugins/dynamic-front-end-heartbeat-control/
   heartbeat-controller.php on line 39[24-May-2023 08:06:56 UTC] PHP Warning: Division
   by zero in /home/xphsfeaf/public_html/edutv/#mysite.vn/wp-content/plugins/dynamic-
   front-end-heartbeat-control/heartbeat-controller.php on line 39

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Codeloghin](https://wordpress.org/support/users/loghin/)
 * (@loghin)
 * [3 years ago](https://wordpress.org/support/topic/i-get-php-error-dfehc_max_server_load/#post-16763884)
 * Hi there!
 * Thanks for informing me.
 * Regarding the DFEHC_MAX_SERVER_LOAD, it’s still a valid function that works just
   fine. The plugin makes use of it as it needs to be compatible with older and 
   newer server software. As soon as a future version of PHP will be announced that
   won’t support it anymore, I will make sure that the plugin will be updated as
   well.
 * It looks like your setup might either be incompatible or you have a firewall 
   blocking additional data like the server load from being fetched.
 * Can you kindly let me know your current server setup? As well as do you have 
   additional plugins installed that might control the heartbeat and your PHP version?
   Please create and post a link to your`phpinfo();` output
 * Looking forward to hearing back from you!
 *  Thread Starter [Phuong Tong](https://wordpress.org/support/users/tvphuong41/)
 * (@tvphuong41)
 * [3 years ago](https://wordpress.org/support/topic/i-get-php-error-dfehc_max_server_load/#post-16763938)
 * please help me check. Thank you
   [https://1ktut.com/info.php](https://1ktut.com/info.php)
    -  This reply was modified 3 years ago by [Phuong Tong](https://wordpress.org/support/users/tvphuong41/).
 *  Plugin Author [Codeloghin](https://wordpress.org/support/users/loghin/)
 * (@loghin)
 * [3 years ago](https://wordpress.org/support/topic/i-get-php-error-dfehc_max_server_load/#post-16764079)
 * Thank you for the additional information:
   Based on the list of `disable_functions`
   you provided in [https://1ktut.com/info.php](https://1ktut.com/info.php), it 
   appears that several functions related to system and process execution are disabled
   or restricted in your PHP configuration. This means that the `sys_getloadavg()`
   function may be disabled as well, as it falls under system-related functions.
 * Since you don’t have access to functions like `system`, `passthru`, `shell_exec`,
   etc., it is likely that you won’t be able to use `sys_getloadavg()` it directly.
 * If you have access to the PHP configuration file (`php.ini`) or a local `.htaccess`
   file, you can modify the `disable_functions` directive to remove the functions
   you want to enable. Locate the `disable_functions` line and update the functions
   needed. 
   From:disable_functions = system,passthru,shell_exec,escapeshellcmd,dl,
   show_source,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,
   posix_seteuid,posix_setegid,posix_unameChange it to:
 * disable_functions = dl,show_source,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,
   posix_setgid,posix_seteuid,posix_setegid
   This should resolve your issue. For 
   any other questions feel free to reply to this thread!
 *  Thread Starter [Phuong Tong](https://wordpress.org/support/users/tvphuong41/)
 * (@tvphuong41)
 * [3 years ago](https://wordpress.org/support/topic/i-get-php-error-dfehc_max_server_load/#post-16764245)
 * thanks for your support. I’ll try it out. Best regards
 *  Plugin Author [Codeloghin](https://wordpress.org/support/users/loghin/)
 * (@loghin)
 * [2 years, 12 months ago](https://wordpress.org/support/topic/i-get-php-error-dfehc_max_server_load/#post-16791342)
 * [@tvphuong41](https://wordpress.org/support/users/tvphuong41/) Just a small update.
   The new plugin version should work for you now even in more restrictive environments.
   Hope it helps you now!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘i get php error DFEHC_MAX_SERVER_LOAD’ is closed to new replies.

 * ![](https://ps.w.org/dynamic-front-end-heartbeat-control/assets/icon-256x256.
   gif?rev=3322232)
 * [Dynamic Front-End Heartbeat Control](https://wordpress.org/plugins/dynamic-front-end-heartbeat-control/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/dynamic-front-end-heartbeat-control/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/dynamic-front-end-heartbeat-control/)
 * [Active Topics](https://wordpress.org/support/plugin/dynamic-front-end-heartbeat-control/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/dynamic-front-end-heartbeat-control/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/dynamic-front-end-heartbeat-control/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [Codeloghin](https://wordpress.org/support/users/loghin/)
 * Last activity: [2 years, 12 months ago](https://wordpress.org/support/topic/i-get-php-error-dfehc_max_server_load/#post-16791342)
 * Status: resolved