call a cli script with absolute path doesn't work
[foobar ~]$ /var/www/htdocs/flow3
FLOW3: Invalid root path. (Error #1248964375)
"/" does not lead to
If the script is called from the directory /var/www/htdocs
[foobar /var/www/htdocs]$ ./flow3
FLOW3 1.0.0 ("Development" context)
usage: ./flow3 <command identifier>
See './flow3 help' for a list of all available commands.
Updated by Helmut Hummel about 9 years ago
One problem is, that in TYPO3.FLOW3/Scripts/flow3.php
$_SERVER['FLOW3_ROOTPATH'] = trim(getenv('FLOW3_ROOTPATH'), '"\' ') ?: '';
$_SERVER['FLOW3_ROOTPATH'] is set to an empty string whereas in
$rootPath = isset($_SERVER['FLOW3_ROOTPATH']) ? $_SERVER['FLOW3_ROOTPATH'] : FALSE;
The other problem of course is that setting the environment variable is necessary.
Attached a possible solution.
Updated by Bastian Waidelich about 8 years ago
- Assignee changed from Karsten Dambekalns to Bastian Waidelich
- Target version set to 2.0 beta 1
FYI I stumbled upon this issue the other day and Helmuts patch solves it for me.
Karsten Hachmeister I'll take over, hope you don't mind – Robert said you wouldn't ;)