WPIntell

Source evidence

i get php error DFEHC_MAX_SERVER_LOAD

Dynamic Front-End Heartbeat Control · support · 2023-05-24T08:20:00+00:00

mixedsentiment
mediumseverity
0.84relevance
5replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

6 / 35 rows with source links

17.1% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

29 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
Phuong Tong resolved
[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 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! please help me check. Thank you https://1ktut.com/info.php This reply was modified 3 years ago by Phuong Tong . 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! thanks for your support. I’ll try it out. Best regards @tvphuong41 Just a small update. The new plugin version should work for you now even in more restrictive environments. Hope it helps you now!

Comments

5 shown
Codeloghin 2023-05-24T09:17:00+00:00

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!

Phuong Tong 2023-05-24T09:29:00+00:00

please help me check. Thank you https://1ktut.com/info.php This reply was modified 3 years ago by Phuong Tong .

Codeloghin 2023-05-24T10:01:00+00:00

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!

Phuong Tong 2023-05-24T10:56:00+00:00

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

Codeloghin 2023-06-03T15:08:00+00:00

@tvphuong41 Just a small update. The new plugin version should work for you now even in more restrictive environments. Hope it helps you now!