Bug #87591

InvalidActionNameException - routeEnhancers Extension Controller->Action

Added by Sylphen GmbH & Co. KG 4 months ago.

Status:
New
Priority:
Must have
Assignee:
-
Category:
Link Handling, Site Handling & Routing
Target version:
-
Start date:
2019-01-30
Due date:
% Done:

0%

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

Description

Description

Context
On the page there are action as "Products::show" and "Products::listSBC".

Problem
When you have defined a routeEnhancers for an extension with a Controller->Action like

_controller: 'Products::show'
and this controller is more than once on the page or typoScript (up to rootpage) with different actions you get the

InvalidActionNameException

In my example, the if construct checks:

if (!in_array("show", array("listSBC"))) {

and the error message is displayed.

InvalidActionNameException.png View - InvalidActionNameException (50.4 KB) Sylphen GmbH & Co. KG, 2019-01-30 21:12

content_element_example.png View - ContentElement (14.3 KB) Sylphen GmbH & Co. KG, 2019-01-30 21:12

Also available in: Atom PDF