Cron error
-
Hi Tomas,
The plugin is working really well for us, but we had reason to move wp-cron to a system cron job, and noticed the cron job throws these errors regularly:sh: $’\r’: command not found
sh: line 1: body: command not found
sh: line 2: background:: command not found
sh: line 2: $’\r’: command not found
sh: line 3: $’}\r’: command not found
sh: line 4: $’\r’: command not foundOur web host investigated and this is what they say:
It appears that the CRON task is getting stuck on the file
/var/www/vhosts/courses.safeministry.training/httpdocs/wp-content/plugins/safety-exit/lib/options-data.phpAlthough it looks like the script still finishes after failing on this file we recommend resolving the issues with the PHP code that is causing it be stuck.
The file contains the following:
<?php
echo `
body {
? ? ? ? background: black;
}`;
$sftExtSettings = get_option(‘sftExt_settings’);
// var_dump($sftExtSettings);
~? ? ? ? ? ? ? ? ? ?That all mean very little to me, but thought you should be aware of it.
Neil
- The topic ‘Cron error’ is closed to new replies.