Bug #52174
closed
Cron - Calculated absolute path to tslib directory does not exist.
Added by Marcin Sągol about 11 years ago.
Updated almost 11 years ago.
Description
Hi,
using latest 6.2-dev version i tried to setup cron to run scheduler but the output returned by crone i have is:
Calculated absolute path to tslib directory does not exist.
so none of the configured scheduler task is executed.
- Status changed from New to Needs Feedback
Hi Philipp,
content of the mentioned file is the same. To be sure i just cloned repository again. I have to add that sources are symlinked from outside website directory (in this case public_html).
Cron task:
* * * * * php /home/foo/public_html/web/typo3/cli_dispatch.phpsh scheduler >/home/foo/public_html/web/cron.txt
and the given output is as i mentioned before:
Content-type: text/html
Calculated absolute path to tslib directory does not exist.
What i found so far is inside:
https://github.com/cogitatio/TYPO3v4-Core/blob/master/typo3/sysext/core/Classes/Core/SystemEnvironmentBuilder.php
there is PATH_site constant defined that is used to define PATH_typo3 that is used to define PATH_tslib. I don know why but PATH_site is set to "/us" and it makes PATH_tslib :
/ustypo3/sysext/cms/tslib/
Update:
inside function getPathSiteByRelativePathPart() there is variable $entryScriptDirectory that is set in my case to "/usr/bin/" and as in the same function variable $pathSite is substring of the previous one it returns "/us" and i think this is the problem - how $pathSite is calculated.
Solved. This was caused by wrong php path set to execute crone task. I used php and on this server it was /usr/local/bin/php
- Status changed from Needs Feedback to Closed
- Target version deleted (
next-patchlevel)
Also available in: Atom
PDF