I have the next cron schedule on a apache web hosting
*/15 * * * * crm/cron/vtigercron.sh
and this is the error that i recive.
/home/*/public_html/crm/cron/vtigercron.sh: line 17: /usr/local/php56/bin/php56: No such file or directory
Can you tell me what shoud i do .... so i can get my cron operation in the crm working?
Or help me with the code to insert into cron operations.
Vers. 3.1.3
@immhub try to use "Full Path" (absolute path) and add "sh" for example:
*/15 * * * * sh /var/www/sites//crm/cron/vtigercron.sh
sh: /var/www/imhubro/public_html/crm/cron/vtigercron.sh: No such file or directory :(
if you run in linux console: sh /var/www/imhubro/public_html/crm/cron/vtigercron.sh. It executed properly ?.
Crontab only execute in scheduled a linux command, if you run in console and not work, please check files permissions.
See https://yetiforce.com/en/implementer/installation-updates/103-web-server-requirements.html to check compliance
I have permision to all my files in corn folder 775.
I dont have access to the linux console, on my webhost.
Is there any other command that i can use?
From what i understand, my webserver www.romarg.ro supports all the instalation specified in https://yetiforce.com/en/implementer/installation-updates/103-web-server-requirements.html
what am i doing wrong ?
Only to verify, replace sh to /bin/sh. If not work, should contact the administrator to check logs and linux permissions.
/bin/sh: /var/www/imhubro/public_html/crm/cron/vtigercron.sh: No such file or directory
Thank's for trying :(
try:
*/15 * * * * root /bin/bash /var/www/imhubro/public_html/crm/cron/vtigercron.sh
My web admin said de the corect code is :
*/15 * * * * sh /home/imhubro/public_html/crm/cron/vtigercron.sh
But i still get the error
/home/imhubro/public_html/crm/cron/vtigercron.sh: line 17: /usr/local/php56/bin/php56: No such file or directory
can you copy the vtigercron.sh content?
#
export VTIGERCRM_ROOTDIR=dirname "$0"/..
export USE_PHP=php
export USE_PHP=/usr/local/php56/bin/php56
cd $VTIGERCRM_ROOTDIR
$USE_PHP -f cron/vtigercron.php
comment this line
export USE_PHP=/usr/local/php56/bin/php56
Ok, thats the problem.. comment line like this
Fatal error: Cannot create references to elements of a temporary array expression in /home/imhubro/public_html/crm/vtlib/Vtiger/Functions.php on line 1141
the cron worked, thank you very much :+1:
that's the eror that i get now
Hello,
I've just updated to 3.1.844 and now the eror that i'm reciving at cron run is :
Warning: session_start(): Cannot send session cookie - headers already sent in /home/imhubro/public_html/crm/libraries/HTTP_Session/Session.php on line 160
Warning: session_start(): Cannot send session cache limiter - headers already sent in /home/imhubro/public_html/crm/libraries/HTTP_Session/Session.php on line 160
Fatal error: Cannot create references to elements of a temporary array expression in /home/imhubro/public_html/crm/vtlib/Vtiger/Functions.php on line 906
Can you help me with that please?
You have the wrong version of PHP please refer to the requirements https://yetiforce.com/en/implementer/installation-updates/103-web-server-requirements.html and
https://yetiforce.com/en/github/issues/126-issues.html
https://www.google.pl/?ion=1&espv=2#q=Cannot+create+references+to+elements+of+a+temporary+array
Most helpful comment
Ok, thats the problem.. comment line like this
export USE_PHP=/usr/local/php56/bin/php56