Bug #47489
closedCronjob Error in cli_dispatch.phpsh (Unexpected character '\' ASCII=92)
0%
Description
Hi,
I tried to run the scheduler by a cronjob on a domainFactory Server. I have noticed that the code of cli_dispatch.phpsh changed in TYPO3 6.0. The output lists the following error. Is this an issue of the server or in the php script?
HTTP/1.1 200 OK Date: Tue, 23 Apr 2013 10:03:07 GMT Server: Apache/2.2.22 X-Powered-By: PHP/5.4.9 Cache-Control: public Expires: Tue, 23 Apr 2013 10:03:07 GMT Vary: User-Agent,Accept-Encoding Connection: close Transfer-Encoding: chunked Content-Type: text/html; charset=utf-8 /kunden/mypath<br /> <b>Warning</b>: Unexpected character in input: '\' (ASCII=92) state=1 in <b>/kunden/mypath/typo3/cli_dispatch.phpsh</b> on line <b>43</b><br /> <br /> <b>Warning</b>: Unexpected character in input: '\' (ASCII=92) state=1 in <b>/kunden/mypath/typo3/cli_dispatch.phpsh</b> on line <b>43</b><br /> <br /> <b>Parse error</b>: syntax error, unexpected T_STRING in <b>/kunden/mypath/typo3/cli_dispatch.phpsh</b> on line <b>43</b><br />
Updated by Philipp Gampe over 11 years ago
You must have done something wrong while uploading the file. I run TYPO3 6.0 on DF just fine.
Please also specify the exact minor and bugfix version.
Updated by Philipp Gampe over 11 years ago
Ah, now I see. This is a misconfiguration on your side. You are calling the process with the wrong PHP version.
Create yourself a file cron.sh:
#!/bin/sh env -i /usr/local/bin/php5-54STABLE-EXTENDED -c config/php.ini -q html/typo3/cli_dispatch.phpsh scheduler
You side is inside a folder html
and inside a folder named config
is a copy of your php.ini
file used for that domain (you can download it at your admin panel).
Otherwise the shebang inside the cli_dispatch.php
file trigger /usr/local/bin/php
to parse the file which is PHP 4.4.9
- of course not supported.
Updated by Alexander Opitz over 11 years ago
- Status changed from New to Needs Feedback
Updated by Alexander Opitz over 11 years ago
- Status changed from Needs Feedback to Closed
No feedback for over 90 days. Philipp gave a hint on the issue.
Updated by Cora Burger over 10 years ago
Instead of using "php ..." direct invocation of "php54 ..." e. g. is possible (as told by technical support of Domainfactory). So no further script is necessary.
Updated by Mohamed Masmoudi almost 10 years ago
Hello,
I have the same error when i've got the scheduler log and i don't know why or how to resolve this
Command excuted : /usr/local/bin/php.ORIG.4 -c /usr/local/lib/php.ini /homez.548/mohamedmf/www/typo3/cli_dispatch.phpsh
This is the log for this command :
-------------------------== Begin ==-------------------------
- OVH ## START - 2015-01-30 00:26:03.153021 executing: /usr/local/bin/php.ORIG.4 -c /usr/local/lib/php.ini /homez.548/********/www/typo3/cli_dispatch.phpsh
X-Powered-By: PHP/4.4.9
Content-type: text/html
<br />
<b>Warning</b>: Unexpected character in input: '\' (ASCII=92) state=1 in <b>/home/**********/www/typo3/cli_dispatch.phpsh</b> on line <b>30</b><br />
<br />
<b>Parse error</b>: syntax error, unexpected T_STRING in <b>/home/*********/www/typo3/cli_dispatch.phpsh</b> on line <b>30</b><br />
-------------------------== End ==-------------------------
Is there any hint to resolve this i don't have SSH access it's a mutulised server so i have limited access. I have available php versions :
- PHP 4
- PHP 5.2
- PHP 5.3
- PHP 5.4.
and this is the cronjob panel that i can use to add new commands : http://i60.tinypic.com/a9too5.jpg