TYPO3-coreapi / ext-coreapi

http://forge.typo3.org/projects/show/extension-coreapi
61 stars 38 forks source link

Error while executing any kind of :info commands #120

Open sascha-schieferdecker opened 8 years ago

sascha-schieferdecker commented 8 years ago

`/typo3/cli_dispatch.phpsh extbase siteapi:info

PHP Fatal error: Call to a member function getMaximumLineLength() on a non-object in /var/www/xxx/site/typo3conf/ext/coreapi/Classes/Command/SiteApiCommandController.php on line 92`

It's a TYPO3 6.2.17, latest version from TER of coreapi (1.3.0). Has anybody encountered this kind of error before?

This doesn't happen on the same server with TYPO3 7.6.2, seems 6.2 specific.

thomashohn commented 8 years ago

Hi - the problem seems to be that the call "$this->output->getMaximumLineLength()" only works in TYPO3 7.x - since it's part of the class TYPO3\CMS\Extbase\Mvc\Cli\Output. Since the constant is included in the source code - why just that so that it works in 6.2.x and 7.x? The methos is called in ExtensionApiCommandController.php and SiteApiCommandController.php - I could provide a fi if desired?