Skip to content

ForwardResponse in EventController.php gives a frontend error #95

@vmans

Description

@vmans

TYPO3 12.4.23
cart_events: dev-main

 503
Oops, an error occurred!

The Fluid template files ".../web/vendor/extcode/cart-events/Resources/Private/Partials/Event/List/.html", ".../web/vendor/extcode/cart-events/Resources/Private/Partials/Event/List/" could not be loaded.

../List/Grid.html and ../List/Table.html do exist, of course.

There is no quick code bypass because applying is said here (https://docs.typo3.org/c/typo3/cms-core/main/en-us/Changelog/11.0/Deprecation-92784-ExtbaseControllerActionsMustReturnResponseInterface.html) leads to

Call to a member function getEventDates() on null

There are alternative solutions though. One is using the products list. But then this:

 503
Oops, an error occurred!

The Fluid template files ".../web/vendor/extcode/cart-events/Resources/Private/Partials/Event/List/Default.html", ".../web/vendor/extcode/cart-events/Resources/Private/Partials/Event/List/Default" could not be loaded.

It's not complex to create a Default, but then you get two lists: one of the Event (showing a list) and one of the products list all the time, even if the event exists.

The best solution is to have one page for each event, and deleting or hiding the plugin if an event temperarily does not exist.

How can I explain this to my customer? Yes it is possible. But they get a lot extra on their plate as a small business.

Metadata

Metadata

Assignees

Labels

5.xrelated to TYPO3 v126.xrelated to TYPO3 v13

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions