Project

General

Profile

Actions

Bug #52174

closed

Cron - Calculated absolute path to tslib directory does not exist.

Added by Marcin Sągol over 10 years ago. Updated about 10 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
scheduler
Target version:
-
Start date:
2013-09-22
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
5.5
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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.

Actions #1

Updated by Philipp Gampe over 10 years ago

  • Status changed from New to Needs Feedback

It works for me ... how did you got the latest 6.2-dev? via git or as snapshot?

It looks like you somehow mixed pre-6.2 and 6.2 files. Can you confirm that your typo3/cli_dispatch.phpsh file has the same content as:
https://git.typo3.org/Packages/TYPO3.CMS.git/blob/master:/typo3/cli_dispatch.phpsh

Actions #2

Updated by Marcin Sągol over 10 years ago

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.

Actions #3

Updated by Marcin Sągol over 10 years ago

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.

Actions #4

Updated by Marcin Sągol over 10 years ago

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

Actions #5

Updated by Alexander Opitz about 10 years ago

  • Status changed from Needs Feedback to Closed
  • Target version deleted (next-patchlevel)
Actions

Also available in: Atom PDF