Project

General

Profile

Actions

Feature #87837

closed

Console/CommandApplication.php Error-Message php_sapi_name() !== 'cli'

Added by Martin Heinemann about 5 years ago. Updated about 5 years ago.

Status:
Closed
Priority:
Could have
Assignee:
-
Category:
CLI
Start date:
2019-03-04
Due date:
% Done:

0%

Estimated time:
PHP Version:
7.2
Tags:
Complexity:
no-brainer
Sprint Focus:

Description

The current message is
'Not called from a command line interface (e.g. a shell or scheduler).'

This message is not wrong but led my search wrong. In my case I hat to call PHP by
php7...-CLI (jweiland) to provide command line interface to the scheduler. It took me some hours to find out.
Please give some hint in the error message.

Typo3 V 8.7.24

Actions #1

Updated by Benni Mack about 5 years ago

  • Status changed from New to Closed

Looks like you run on a hoster with special flavors.

As we did not do this in the past, we can't document special handling for certain hosters, as - really - every hoster has different issues / configurations. Maybe this could be added in the future, but certainly not in the source code of TYPO3, but maybe in the docs section of TYPO3 or on typo3.org - but that's something that should be handled separately.

For the time being, feel free to use the documentation of your hoster: https://jweiland.net/typo3/codebeispiele/erweiterungen-anpassen/scheduler-aufgaben-automatisieren.html

Actions

Also available in: Atom PDF