Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP warning Trying to access array offset on value of type null on schedule cron task #56

Open
haietza opened this issue May 21, 2024 · 0 comments

Comments

@haietza
Copy link

haietza commented May 21, 2024

Warning: Trying to access array offset on value of type null in /var/www/html/blocks/acclaim/lib.php on line 138

Call Stack:
0.0007 355376 1. {main}() /var/www/html/admin/cli/cron.php:0
0.3449 2979496 2. core\cron::run_main_process($keepalive = NULL) /var/www/html/admin/cli/cron.php:186
0.4596 3351296 3. core\cron::run_scheduled_tasks($startruntime = 1716295803, $startprocesstime = 1716295803) /var/www/html/lib/classes/cron.php:125
2.1190 7317688 4. core\cron::run_inner_scheduled_task($task = class block_acclaim\task\issue_badges { private ${core\task\task_base}lock = class core\lock\lock { protected $key = '0ed20b52c8c84160b686912599e542aea57d75ce'; protected $factory = class core\lock\mysql_lock_factory { ... }; protected $released = FALSE; protected $caller = '/var/www/html/lib/classes/task/manager.php on line 1039' }; private ${core\task\task_base}cronlock = NULL; private ${core\task\task_base}component = 'block_acclaim'; private ${core\task\task_base}blocking = FALSE; private ${core\task\task_base}faildelay = '0'; private ${core\task\task_base}nextruntime = '1716295800'; private ${core\task\task_base}timestarted = 1716295804; private ${core\task\task_base}hostname = 'asulearn.appstate.edu'; private ${core\task\task_base}pid = 2420320; private ${core\task\scheduled_task}hour = ''; private ${core\task\scheduled_task}minute = '/5'; private ${core\task\scheduled_task}day = ''; private ${core\task\scheduled_task}month = ''; private ${core\task\scheduled_task}dayofweek = '*'; private ${core\task\scheduled_task}lastruntime = '1716295504'; private ${core\task\scheduled_task}customised = '0'; private ${core\task\scheduled_task}overridden = FALSE; private ${core\task\scheduled_task}disabled = FALSE }) /var/www/html/lib/classes/cron.php:208
2.1260 7331504 5. block_acclaim\task\issue_badges->execute() /var/www/html/lib/classes/cron.php:405
2.1296 7334544 6. block_acclaim_lib->issue_pending_badges($curl = class curl { public $cache = FALSE; public $proxy = FALSE; public $version = '0.4 dev'; public $response = []; public $rawresponse = []; public $header = []; public $info = NULL; public $error = NULL; public $errno = NULL; public $emulateredirects = TRUE; private $options = ['CURLOPT_USERAGENT' => 'MoodleBot/4.3 (+https://ltsdev05.its.appstate.edu/moodle/4.3)', 'CURLOPT_HEADER' => 0, 'CURLOPT_NOBODY' => 0, 'CURLOPT_FOLLOWLOCATION' => 1, 'CURLOPT_MAXREDIRS' => 10, 'CURLOPT_ENCODING' => '', 'CURLOPT_RETURNTRANSFER' => 1, 'CURLOPT_SSL_VERIFYPEER' => 0, 'CURLOPT_SSL_VERIFYHOST' => 2, 'CURLOPT_CONNECTTIMEOUT' => 30]; private $proxy_host = ''; private $proxy_auth = ''; private $proxy_type = ''; private $debug = FALSE; private $cookie = FALSE; private $responsefinished = FALSE; private $securityhelper = class core\files\curl_security_helper { protected $transportschemes = [...] }; private $ignoresecurity = FALSE; public $_tmp_file_post_params = [] }) /var/www/html/blocks/acclaim/classes/task/issue_badges.php:50

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant