typo3typo3-8.7.x

Typo3 8.7: Could not analyse class: maybe not loaded or no autoloader? Keeps coming and going


I have had this problem as seen in the title in the past and I always resolved this issue by adding the psr-4 autoloader in the emconf and simply reactivate my extensions.

Now I'm facing the same problem:

Could not analyse class: maybe not loaded or no autoloader?

but I have set the autoloader correctly as always. This also happens in more than one Extension right now.. After deleting the php cache in the install tool und dump autoload and reactivating my extension, the error was gone for some time, a couple hours later its back again.. Therefore I think it must have something to do with temp files, but I can't figure out what it is exactly..

Does anyone have a solution? I have seen plenty of topics about this issue on stackoverflow, I used them in the past, but unfortunately none is working for me right now.

Important fact: This error is happening on my new server now. On my old server (with the same code in the extensions) this didn't occur and they worked fine.

Thanks in advance.

Edit: Vendornames etc. are set correctly and there are no errors in the syntax whatsoever. As I said, the extensions worked fine.

Edit2: I just found this changelog of Typo3:

https://docs.typo3.org/typo3cms/extensions/core/Changelog/8.4/Breaking-78222-ExtensionAutoloadInformationIsNowInTypo3confautoload.html

But there is no solution for the impact for none composer installations. Can someone provide one for me?


Solution

  • Thanks for all the help, I found the solution myself now.

    Actually it was not really caused by any autoloader configuration, but and old version of fpdf which apparently caused two extensions to not load their classes properly. The exception thrown was simply misleading. I have upgraded the version of fpdf and now it works properly. It is not clear to me why the same code worked a week ago and now it failed, but atleast I have found the solution to my problem.