Я уверен, что это просто то, чего мне не хватает, но строка 209, похоже, выдает эту ошибку, и я не могу понять, почему.
$request_info
является объектом getinfo php_curl: https://www.php.net/manual/en/function.curl-getinfo.php
Есть идеи? Я не уверен, что это вызвано плохим синтаксисом или моей средой.
Вот вся ошибка:
Exception - syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting '-' or identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING)
Вот мойкод:
if ($request_info['http_code'] !== 200) {
mtrace("Did not receive 200 status from filescan server when requesting scan for " . $row->contenthash);
mtrace(var_dump($request_info));
// Update the row with an error status and break out of the loop
$row->status = "error";
$row->checked = 0;
self::save_filescan_results($conn, $row);
continue;
}
Вот трассировка стека:
line 209 of /blocks/filescan/classes/task/scan_files.php: ParseError thrown
line ? of unknownfile: call to core_component::classloader()
line ? of unknownfile: call to spl_autoload_call()
line 325 of /lib/classes/task/manager.php: call to class_exists()
line 68 of /lib/classes/task/manager.php: call to core\task\manager::scheduled_task_from_record()
line 88 of /lib/classes/task/manager.php: call to core\task\manager::load_default_scheduled_tasks_for_component()
line 1038 of /lib/upgradelib.php: call to core\task\manager::reset_scheduled_tasks_for_component()
line 526 of /lib/upgradelib.php: call to upgrade_plugins_blocks()
line 1869 of /lib/upgradelib.php: call to upgrade_plugins()
line 694 of /admin/index.php: call to upgrade_noncore()