Bug #59657
closed
An extension may have no ext_localconf.php file
Added by Francois Suter over 10 years ago.
Updated about 6 years ago.
Category:
Extension Manager
Description
Having an ext_localconf.php file in an extension is very common, but is not required. For example, extension "kb_tv_cont_slide" has none. This breaks the Core in several places, whenever ExtensionManagementUtility::loadSingleExtLocalconfFiles()
is called. This happens in particular when trying to call up a TYPO3 install (either FE or BE) whose cache has been entirely flushed, or whenever performing actions on extensions in the EM (install, uninstall, update).
A simple check for the file's existence solves the issue.
How to reproduce:
- install extension "kb_tv_cont_slide"
- try updating, installing or uninstalling another extension. Although the operation succeeds, an error thrown because of the missing ext_localconf.php file.
- alternatively, flush the whole cache and try to access the FE or the BE.
Files
- Status changed from Accepted to Under Review
- Status changed from Under Review to Needs Feedback
Francois Suter wrote:
- install extension "kb_tv_cont_slide"
- try updating, installing or uninstalling another extension. Although the operation succeeds, an error thrown because of the missing ext_localconf.php file.
- alternatively, flush the whole cache and try to access the FE or the BE.
Can you please re-check? This extension actually has an ext_localconf.php (I checked version 0.4.4)
Additionally, I cannot reproduce this issue at all. If an ext_localconf.php (or ext_tables.php...) file exists is checked in LoadedExtensionArrayElement and this worked correctly in my tests.
The latest version of kb_tv_cont_slide is 0.5.0 and has no ext_locaconf.php file anymore.
I will now try with a dummy extension with nothing but a ext_emconf.php file.
I cannot get the same exact issue, but the problematic scenario is updating an extension which has an ext_localconf.php to a newer version which does not have it anymore. This is actually impossible. An error is thrown by the Extension Manager. Unfortunately there's no detailed message (see attached screenshot for both 6.2 and 6.3).
I don't have time to track the problem now, especially since it seems far less obvious than before now.
I suspect the errors I observed previously came from the fact that I updated kb_tv_cont_slide manually (since the EM didn't want to do it) and that I hadn't cleared all caches after that.
- Status changed from Needs Feedback to New
- Target version deleted (
next-patchlevel)
- Status changed from New to Resolved
I am closing this as I have never seen such error anymore since a very long time. feel free to reopen if still valid in current versions
- Status changed from Resolved to Closed
Also available in: Atom
PDF