typo3-realurl icon indicating copy to clipboard operation
typo3-realurl copied to clipboard

Extension key "realurl" is NOT loaded!

Open FireLizard opened this issue 5 years ago • 3 comments

I've got the following error after installing and enabling this extension:

TYPO3 Fatal Error: Extension key "realurl" is NOT loaded!

This EXT was installed by

$ composer req dmitryd/typo3-realurl

The PackageStates.php includes

<?php
return [
    'packages' => [
        'typo3_realurl' => [
            'composerName' => 'dmitryd/typo3-realurl',
            'state' => 'active',
            'packagePath' => 'typo3conf/ext/typo3_realurl/',
            'suggestions' => [],
        ],
    ],
    'version' => 4,
];

My environment is:

  • TYPO3 7.6.45
  • PHP 7.1.22

I hope you can help me and point out my mistake.

FireLizard avatar Jul 22 '20 12:07 FireLizard

Same here. It is being installed in typo3conf/ext/typo3_realurl instead of typo3conf/ext/realurl.

Change in 2.6.0 caused this problem. See my comment here:

https://github.com/dmitryd/typo3-realurl/commit/76cc5e73be6ed40d778e654007d49b4036acf121#commitcomment-41007364

baschny avatar Jul 29 '20 15:07 baschny

Okey, one additional information after some research.

Starting with typo3/cms-composer-installers 1.4.0 it will also resolve the extension key from extras.typo3/cms.extension-key, which then fixes this issue. Problem is that 1.4.x requires PHP 7.0, so you get 1.3.2 installed on a PHP 5.x installation, which means it fails due to do. A potential solution meanwhile, in your composer.json:

    "dmitryd/typo3-realurl": "^2.0 != 2.6.0 != 2.6.1",

(which does not install 2.6.0 and 2.6.1, in hope it gets "fixed" in 2.6.2 or later). Or upgrade to PHP 7.x to get later cms-composer-installers. Since this is usually the case only on legacy installations, you might wanna restrict realurl updates instead.

baschny avatar Jul 29 '20 15:07 baschny

I believe there is nothing to do here because composer installers 1.3.3 has the fix for it. Is this correct?

dmitryd avatar Nov 08 '20 12:11 dmitryd