Project

General

Profile

Actions

Bug #105114

closed

Fatal Error EventDispatcherInterface

Added by Guido Twieling 25 days ago. Updated 24 days ago.

Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
Extbase
Target version:
Start date:
2024-09-25
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
13
PHP Version:
8.2
Tags:
EventDispatcherInterface Fatal Error
Complexity:
Is Regression:
Sprint Focus:

Description

Hello,

after upgrade from 13.2.1 to 13.3, I got thr following error:

Fatal error: Declaration of Derhansen\PlainFaq\Domain\Repository\FaqRepository::injectEventDispatcher(Psr\EventDispatcher\EventDispatcherInterface $eventDispatcher) must be compatible with TYPO3\CMS\Extbase\Persistence\Repository::injectEventDispatcher(Psr\EventDispatcher\EventDispatcherInterface $eventDispatcher): void in /var/www/html/packages/plain_faq-main/Classes/Domain/Repository/FaqRepository.php on line 40

What should I do?

Best Regards

Guido


Files

test-site.jpg (241 KB) test-site.jpg Guido Twieling, 2024-09-26 08:55
Actions #1

Updated by Chris Müller 25 days ago

  • Status changed from New to Rejected

Contact the author of the extension:
https://github.com/derhansen/plain_faq
The method signature is not compatible with the extended class in v13.

But also mind, that the extension seems not to be v13 ready as far as I can see.

Closing this ticket as this is not related to TYPO3 Core.

Actions #2

Updated by Guido Twieling 25 days ago

Chris Müller wrote in #note-1:

Contact the author of the extension:
https://github.com/derhansen/plain_faq
The method signature is not compatible with the extended class in v13.

But also mind, that the extension seems not to be v13 ready as far as I can see.

Closing this ticket as this is not related to TYPO3 Core.

Hi Chris.

Yes, this plugin is not typo 13.3 ready. I use it with 13.1, 13.2.1 without problems (after some editing...). Same is with quellenform icon packs. You can install it at 13.3 but after installing the backend crashes... Index search also has the problem with undefined pointer in SearchController.php line 264.

I have not the time to wait for extension authors. I made the mistake to choose typo3-13 for a new projekt because its recommended for new projects. So I learn now and will be a goggle search profi soon. ;-)

You wrote:

The method signature is not compatible with the extended class in v13. But it works in 13.0 - 13.2.1? Why not in 13.3?

I want to know how to solve this error. It's not helpfull to wait for authors. I'm running out of time...

Actions #3

Updated by Stefan Bürk 25 days ago · Edited

The class Derhansen\PlainFaq\Domain\Repository\FaqRepository: needs to add :void return type to method injectEventDispatcher. Does not help do to that in an xclass / override and you need to use composer patch on the original author extension code to fix that (provide it as PR to he extension repository and use the commit to create the patch out of it). Or drop it at all from the class. That changed between 13.2.(0|1) I guess.

I have not the time to wait for extension authors.

Hard - but than you have provided the changes you have done as pull-request to the extension author so he can add/merge them ? (help with maintance and getting a v13 version earlier).

I made the mistake to choose typo3-13 for a new projekt because its recommended for new projects

That is not a mistake. Sure, it's recommended to start new projects directly on v13 - but only if you have the time to test it with extensions and help to make them v13 compatible - or report and wait. If you have time pressures, the recommendation is to use v12 where more extensions are most likely v12 compatible - but you will have an upgrade than to schedule - depends on the timeline project should be finished.

Actions #4

Updated by Torben Hansen 25 days ago

I'm the extension author and I already wrote to you in the issue tracker of the extension, that it will not be ready for 13.4 LTS.

Your options are pretty clear:

1. Wait until the extension is ready
2. Choose another TYPO3 v13 compatible extension with similar functionality
3. Try to fiddle around in ext:plain_faq to get it running (which I do not recommend)
4. Code an extension yourself

Tip: If you start a new project and discover, that an extension you want to use is not compatible with the planned TYPO3 target version, then contact the extension author first to evaluate your options. This could have avoided your current problem with time running out.

And also note, that most extension developers work on their extension in their spare time, besides their regular work and mostly without any kind of payment or support.

Actions #5

Updated by Guido Twieling 24 days ago

Hello Torben,

I know that the extension is not suitable for 13.4 :-) I have adapted the extension so that it works under 13 13.2.1 and adapted the output for the bootstrap package as an accordion with categories. I was just surprised that from 13.2.1 to 13.3 many extensions suddenly stopped working. So I assumed that this had something to do with the Typo3 kernel. After the reference to void, everything works again as it should except for the source form icon packs. Since I am new to Typo3, I have to work hard to figure everything out. With some errors I just can't get any further without asking because Google is not omniscient. I have now got the bootstrap package running and found and reported errors in indexed search, news, and icon packs. I learn something new every day and please don't feel attacked! People over 60 need a little longer to learn ;( A lot has changed since typo3 6.2. But I'm catching up.

Best wishes

Guido

Actions

Also available in: Atom PDF