Can't call method "log" on an undefined value at /usr/local/cpanel/libexec/cpanellogd


Well-Known Member
Oct 22, 2010
Hello, i wanted to use: /scripts/runweblogs cpanelname
But it is returning error no mater on which cpanel i run it:

# /scripts/runweblogs cpanelaccountname
Log checker loaded ok..
==> cPanel Log Daemon version 26.0
[2015-11-09 10:19:21 +0000] die [Internal Death while parsing [stdin] 23568] Can't call method "log" on an undefined value at /usr/local/cpanel/libexec/cpanellogd line 274.
at /usr/local/cpanel/libexec/cpanellogd line 273.

[A fatal error or timeout occurred while processing this directive.]
Can't call method "log" on an undefined value at /usr/local/cpanel/libexec/cpanellogd line 274.
found this process:
root 28309 0.0 0.0 23664 2460 ? SN Nov03 0:01 cpanellogd - sleeping for logs

The line 273 contains this function:
if ( is_during_blackout() ) {
$stats_log_obj->log( 0, "Processing logs during blackout period..." );

from /usr/local/cpanel/logs/stats_log :
Blackout hours in force, interrupt bandwidth processing before backing up access logs.

Please can you advice steps to do in order to fix it or execute it even during blackout period?

UPDATE: When i accessed WHM, Home »Server Configuration »Statistics Software Configuration and disabled blackout hours on Time Schedule page, it started working.
Last edited:


Staff member
Apr 11, 2011
Hello :)

This issue should be addressed in cPanel version

Fixed case CPANEL-2029: Cpanellogd cannot be run manually during blackout hours.

Thank you.