Project

General

Profile

Actions

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.

Status:
Closed
Priority:
Must have
Category:
Extension Manager
Target version:
-
Start date:
2014-06-18
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
5.3
Tags:
Complexity:
no-brainer
Is Regression:
No
Sprint Focus:

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

Actions #1

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

Actions #2

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.

Actions #3

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

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.

Actions #5

Updated by Alexander Opitz over 10 years ago

  • Status changed from Needs Feedback to New
Actions #6

Updated by Mathias Schreiber about 9 years ago

  • Target version deleted (next-patchlevel)
Actions #7

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

Actions #8

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF