• Resolved Phuong Tong

    (@tvphuong41)


    [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

    (@loghin)

    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 yourphpinfo();?output

    Looking forward to hearing back from you!

    Thread Starter Phuong Tong

    (@tvphuong41)

    please help me check. Thank you
    https://1ktut.com/info.php

    • This reply was modified 1 year, 6 months ago by Phuong Tong.
    Plugin Author Codeloghin

    (@loghin)

    Thank you for the additional information:

    Based on the list of disable_functions you provided in 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_uname

    Change 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

    (@tvphuong41)

    thanks for your support. I’ll try it out. Best regards

    Plugin Author Codeloghin

    (@loghin)

    @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.