Project

General

Profile

Actions

Bug #26247

closed

Extension Manager blank if ext_emconf.php has errors

Added by Halil Köklü about 13 years ago. Updated almost 13 years ago.

Status:
Closed
Priority:
Should have
Category:
Extension Manager
Target version:
-
Start date:
2011-04-24
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

I lost much time figuring out why I get a blank page when I try to access the extension manager or install extensions in Install script.

Although I enabled any possible setting to display errors no errors were thrown so I ended up debugging TYPO3. I set $TYPO3_CONF_VARS['EXT']['extList'] = '' to see if there is a corrupt extension I've installed. But it has not changed anything. I was wondering if there is a corrupt core extension although this typo3 source is used by other websites too.

When I debugged TYPO3 I noticed that it stops the logic after including a specific extension's ext_emconf.php. As it was included with @include the error messages were hidden, but this does not prevent the PHP process to stop. So I got only a blank page.

/**
 * Returns the $EM_CONF array from an extensions ext_emconf.php file
 *
 * @param    string        Absolute path to EMCONF file.
 * @param    string        Extension key.
 * @return    array        EMconf array values.
*/
public static function includeEMCONF($path, $_EXTKEY) {
$EM_CONF = NULL;
@include($path);
if (is_array($EM_CONF[$_EXTKEY])) {
return self::fixEMCONF($EM_CONF[$_EXTKEY]);
}
return FALSE;
}

The prefix should be removed here. If the file is corrupt, it should be visible. If you want to handle a missing file, PHP offers other ways to fulfill that. is evil.

Here is a small example for @include: https://gist.github.com/939886


Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Bug #17506: EM diplays only a white page when something is wrong in an extension fileClosedSteffen Gebert2007-08-08

Actions
Actions #1

Updated by Steffen Gebert almost 13 years ago

  • Status changed from New to Closed
  • Assignee set to Steffen Gebert

duplicate of #17506

Actions

Also available in: Atom PDF