PatrickRQ Posted January 11, 2022 Posted January 11, 2022 (edited) I get the following, so cron never runs properly root:/etc/cron.d# /usr/local/lsws/lsphp7/bin/php -d memory_limit=-1 -d max_execution_time=0 /srv/www/public_html/applications/core/interface/task/task.php MD5HASH 2>&1 /tmp/testlog2.log Deprecated: Directive 'track_errors' is deprecated in Unknown on line 0 Exception: OutOfRangeException Object ( [message:protected] => [string:Exception:private] => [code:protected] => 0 [file:protected] => /srv/www/public_html/system/Patterns/ActiveRecord.php [line:protected] => 142 [trace:Exception:private] => Array ( [0] => Array ( [file] => /srv/www/public_html/applications/core/interface/task/task.php [line] => 45 [function] => load [class] => IPS\Patterns\_ActiveRecord [type] => :: ) ) [previous:Exception:private] => ) Any advice please? No core files were modified. Edited January 11, 2022 by PatrickRQ
Randy Calvert Posted January 11, 2022 Posted January 11, 2022 (edited) I think you're outputting to the error log file incorrectly. I took your output above and ran it based on my instance and saw a different OutOfRange issue. So I double checked the cron format for saving error logs and noticed it was supposed to be different: Try: * * * * * /path/to/php -d memory_limit=-1 -d max_execution_time=0 /path/to/ipb/applications/core/interface/task/task.php MD5HASH >> /path/to/error.log 2>&1 Edited January 11, 2022 by Randy Calvert PatrickRQ 1
Solution Marc Posted January 11, 2022 Solution Posted January 11, 2022 This looks like its something in your php configuration. I would suggest checking this first of all, as you can see here https://stackoverflow.com/questions/60272536/directive-track-errors-is-deprecated
Recommended Posts