Project

General

Profile

Actions

Bug #86719

closed

Adminpanel SubModuleRenderViewHelper throws exception while not implementing ContentProviderInterface

Added by Jan Stockfisch about 6 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
AdminPanel
Target version:
-
Start date:
2018-10-23
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
9
PHP Version:
7.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Currently while not implementing a ContentProviderInterface and therfore not implementing method `getContent()` throws an InvalidArgumentException: `The argument "module" was registered with type "TYPO3\CMS\Adminpanel\ModuleApi\ContentProviderInterface", but is of type "Psychomieze\AdminpanelExtended\Modules\Info\InternalContentObjects" in view helper "TYPO3\CMS\Adminpanel\ViewHelpers\SubModuleRenderViewHelper".`.
This happens only right after all caches have been cleared.
Using "warmed up" caches will throw `Call to undefined method Psychomieze\AdminpanelExtended\Modules\Info\InternalContentObjects::getContent()`


Files

Auswahl_057.png (62.7 KB) Auswahl_057.png InvalidArgumentException Jan Stockfisch, 2018-10-23 10:53
Auswahl_056.png (37.3 KB) Auswahl_056.png Error Jan Stockfisch, 2018-10-23 10:53
Actions #1

Updated by Susanne Moog about 6 years ago

  • Status changed from New to Resolved

The submodule render viewhelper should render modules - it can only render modules that provide something to render... This is by design, the argument is therefor registered with the appropriate interface.

Actions #2

Updated by Jan Stockfisch about 6 years ago

That may all be correct and especially if this is by design then AbstractSubModule should implement ContentProviderInterface by default, shouldn't it?

Actions #3

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF