t3ext-oidc icon indicating copy to clipboard operation
t3ext-oidc copied to clipboard

Error makeInstance PageInformationFactory during Login at Typo3 v13

Open foliengriller opened this issue 2 months ago • 7 comments

The Error has been fixed here, but the code is not present in the current 4.0.1 release nor in the main branch. See here vs. here

If I add it manually, the error is gone.

foliengriller avatar Oct 23 '25 15:10 foliengriller

#205 changed this to makeInstance, due to a regression within v12.

liayn avatar Oct 24 '25 06:10 liayn

@SomeBdyElse maybe this is interesting for you too, since you wrote #205 back then.

liayn avatar Oct 24 '25 06:10 liayn

So #205 introduces the bug fixed by #201 for v13. If there is no solution for both TYPO3 versions, wouldn't be the best way to release a separate extension version for v13?

siwa-ddiesenreither avatar Nov 05 '25 09:11 siwa-ddiesenreither

@siwa-ddiesenreither We need to find out why the PageInformationFactory service is not made public by our Services.yaml. I'm in touch with Stefan regarding this, see also https://github.com/xperseguers/t3ext-oidc/issues/197#issuecomment-2824281681

liayn avatar Nov 05 '25 09:11 liayn

I finally tested this partially on my own.

  • I used latest v13 and installed the extension.
  • I added the OIDC Plugin to a page
  • I added $pageInformationFactory = GeneralUtility::makeInstance(PageInformationFactory::class); as the first line within https://github.com/xperseguers/t3ext-oidc/blob/master/Classes/Controller/LoginController.php#L66

=> No error whatsoever. Instantiation worked flawlessly.

I fail to understand why this should fail within https://github.com/xperseguers/t3ext-oidc/blob/master/Classes/Service/AuthenticationService.php#L700

@foliengriller @siwa-ddiesenreither Are you really using latest master of this extension within v13?

liayn avatar Nov 06 '25 21:11 liayn

I have tested again with the current Master (installed via composer) and TYPO3 13.4.19 - same error. It fails directly with the error from above.

foliengriller avatar Nov 10 '25 12:11 foliengriller

@foliengriller I now did a quick upgrade of an v12 instance to v13, that already used oidc-master-branch. I tested and debugged the whole login process. I simply fail to reproduce this issue. The class is simply there.

I fear, that's all I can do for now. It must be something in your instance that is different with autoloading/DI.

liayn avatar Nov 10 '25 20:11 liayn