Issue Bug Closed

#21089Prompt for keyboard input does not get displayed in CLI scripts

Francois Suter 09/18/09, 12:23 updated 07/02/10, 11:18

Description

When running the lowlevel_cleaner script with —AUTOFIX or -i options, validation is requested from the user. In my setup the prompt does not get displayed.

Simply adding:

ob_flush();

after:

echo $msg.’ (Yes/No + return): ‘;

in class.t3lib_cli.php (around line 225) solves the issue.

This is an example command that I tried to run:

/path/to/php /path/to/website/typo3/cli_dispatch.phpsh lowlevel_cleaner orphan_records -r —refindex update —AUTOFIX

Running this command, you should be prompted with the following question:

NOW Running —AUTOFIX on result. OK? (Yes/No + return):

I don’t get anything. I tried with TYPO3 4.1 running PHP 4.4.8 and TYPO3 4.2 and Trunk running PHP 5.2.6. The problem is the same no matter the configuration.
(issue imported from #M11995)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.