Bug #73896

Old constraints in ext_emconf.php after extension update with active opcode cache

Added by Marco Huber about 5 years ago. Updated over 3 years ago.

Should have
Target version:
Start date:
Due date:
% Done:


Estimated time:
TYPO3 Version:
PHP Version:
Is Regression:
Sprint Focus:


In a clean TYPO3 installation on a server with an activated opcode cache install an extension, f.e. static_info_tables. Then change the dependencies in the extensions ext_emconf.php. Then install the extension again by uploading the .t3x file in the extension manager.
The dependencies in the ext_emconf.php will not be updated.

This happens also, if you want to update an extension with the extension manager.

This happens only, if the extension gets installed/updated with a .t3x file. If you upload the .zip version in the extension manager, everything works fine.

In the .t3x file is no dependency information (and the other constraints, too) stored. So `\TYPO3\CMS\Extensionmanager\Utility\EmConfUtility::includeEmConf()` is called, to get the missing informations. But the `include` in this function gets the old ext_emconf.php from the opcode cache.

One solution would be, to call `\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Service\OpcodeCacheService::class)->clearAllActive($path);`. But I have the feeling, that everything gets really slow then.
Another solution would be, to get the missing information from the table tx_extensionmanager_domain_model_extension or from the array $extensionData['FILES'].

I've found this issue in TYPO3 6.2 and 7.6, and I think it is still present in master.

What do you think would be the best solution?

Related issues

Related to TYPO3 Core - Bug #69070: When extracting a t3x file after upload, the dependencies are not written to ext_emconf.phpClosed2015-08-14


Updated by Benni Mack over 3 years ago

  • Status changed from New to Needs Feedback

Hey Marco,

with TYPO3 v8 the op-caches should be emptied as well. Does that work for you now?


Updated by Riccardo De Contardi over 3 years ago

  • Status changed from Needs Feedback to Closed

90 days without feedback -> closing it.

If you think that this is the wrong decision or experience the issue again or have more information about how to reproduce it, please reopen it or open a new issue with a reference to this one. Thank you.

Also available in: Atom PDF