Bug #59657
closedAn extension may have no ext_localconf.php file
0%
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
Updated by Gerrit Code Review over 10 years ago
- Status changed from Accepted to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/30832
Updated by Helmut Hummel over 10 years ago
- 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.
Updated by Francois Suter over 10 years ago
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.
Updated by Francois Suter over 10 years ago
- File kb_tv_cont_slide_update_6-3.png kb_tv_cont_slide_update_6-3.png added
- File kb_tv_cont_slide_update_6-2.png kb_tv_cont_slide_update_6-2.png added
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.
Updated by Alexander Opitz over 10 years ago
- Status changed from Needs Feedback to New
Updated by Mathias Schreiber about 9 years ago
- Target version deleted (
next-patchlevel)
Updated by Georg Ringer over 8 years ago
- 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