Bug #32302
"Fatal error: Call to a member function sL() on a non-object" because of ext_localconf
| Status: | Rejected | Start date: | 2011-12-05 | |
|---|---|---|---|---|
| Priority: | Should have | Due date: | ||
| Assignee: | - | % Done: | 0% |
|
| Category: | Extbase | |||
| Target version: | - | |||
| Has patch: | No | Tags: | ||
| Votes: | 0 |
Description
I was experimenting with the extension builder and changed afterwards ext_localconf.php in the newly created extension by adding configuration for a non-existing plugin (it's a testserver, so I wasn't thinking much):
Tx_Extbase_Utility_Extension::configurePlugin(
$_EXTKEY,
'anotherplugin',
array('Event' => 'show'),
array('Event' => 'create')
);
This caused frontend and backend of Typo3 to show me the error:
Fatal error: Call to a member function sL() on a non-object in …/typo3/sysext/extbase/Classes/Utility/Extension.php on line 191
The biggest problem here is that I couldn't get Typo3 to run again by just deleting the newly inserted lines in ext_localconf.php – I had to insert an
if($GLOBALS['LANG'] != null) {in …/typo3/sysext/extbase/Classes/Utility/Extension.php on line 185 to be able to open the backend again and clear the cache.
I'd propose to patch such a condition there to be sure that a small error in a plugin can't block the whole page.
This is on Extbase 1.4.1, Typo3 4.6.1, and PHP 5.3.3-7.
History
Updated by Michael Stucki over 1 year ago
Rohrer wrote:
The biggest problem here is that I couldn't get Typo3 to run again by just deleting the newly inserted lines in ext_localconf.php – I had to insert an [...] in …/typo3/sysext/extbase/Classes/Utility/Extension.php on line 185 to be able to open the backend again and clear the cache.
That was most probably because you didn't remove the typo3conf/temp_CACHED_* files after the change in ext_localconf.php.
I'd propose to patch such a condition there to be sure that a small error in a plugin can't block the whole page.
I agree and I think this is pretty easy to do. Can you make a proposal yourself? Let me know if you need help.
Updated by Beat Rohrer over 1 year ago
Ok, I'll do it.
Updated by Marc Bastian Heinrichs 6 months ago
- Status changed from New to Rejected
No need to be fixed in Extbase