[TYPO3-dev] CLI

Laurent Albertini lalbertini at cross-systems.com
Wed Apr 8 10:23:57 CEST 2009


Hi Dmitry,

Thank you for your help !

The process didn't go to the end when i launched cli_dispatch.phpsh ... 
but there was not visible errors... ( or i dont know how to make them 
visible)
So, i decided to add and delete/move, some "die("DEBUG - die 
here");",line by line and script by script, to try to understand the 
problem... and to follow the process.
To have sucess, i had to comment some lines ( detailed in my previous 
message).
I know it is a wrong way to go, but i just wanted to try to understand 
what i did wrong.

Finally i decided to use the "oldschool" method with the backpath but i 
had the same problem when trying to include the config_default.php.
In this script there is a require of temp_CACHED_XXXX_ext_localconf.php 
and in this temp script there was the conf of some extensions i had to 
comment to have success ( timtab and imagemap_wizard).
I decided to uninstall the two extensions, and the process go to the end  !

I didn't test again the cli_dispatch.phpsh method, cause i dont'know how 
to resolve the problem of the $BE_USER->backendCheckLogin(); and  the 
require_once(PATH_t3lib.'class.t3lib_befunc.php'); in "typo3/init.php".

Moreover, i already take a look on your extension... ( i am developping 
an extension which import newsML Items in tt_news ).


Dmitry Dulepov a écrit :
> Hi!
> 
> Laurent Albertini wrote:
>> I am working with TYPO3 4.2.6 and i am trying to launch a PHP script
>> using the CLI mode.
>> I tried the methode with cli_dispatch.phpsh , but i failed to make work
>> the system.
> 
> Failed?.. How exactly?
> 
>> There was some lines of scripts  i have to comment to sucess to launch
>> my php script.
> 
> This is definitely a wrong way to go.
> 
>> But do you have any advice on the first problem ?
> 
> I have two ;) Firsts, tell us what exactly is the problem. Saying "failed" actually says nothing. There should be a error message at least. Secondly, take a look how other extensions work. Here is one simple example of CLI script:
> 
> http://typo3.org/extensions/repository/view/yafi/current/info/cli%252Fcli_yafi.php/
> 




More information about the TYPO3-dev mailing list