Jump to content

Topic on Project:Support desk/Flow

Run Jobs failing due to "unexpected character 0x01"

2
Summary by ProbablePrime

Typo on my part :'(

ProbablePrime (talkcontribs)

Hello, My Manual:RunJobs.php is periodically failing on Cron with the message:

Parse error: syntax error, unexpected character 0x01, expecting end of file in /usr/local/bin/php on line 1000

My Crontab is:

*/5 * * * *     /usr/local/bin/php      /usr/local/bin/php /var/www/html/maintenance/run.php runJobs >> /var/log/runJobs.log 2>&1

Running the runJobs script manually via a shell, works though.

I'm a little lost in terms of debugging or diagnosing this as I'm not familiar with Mediawiki's source code etc.

Could anyone provide any suitable diagnostic or debugging steps that may help?

ProbablePrime (talkcontribs)

I accidentally included /usr/local/bin/php TWICE in the cron entry as shown in my initial post.

I apologize!