Bug #45588
closedFatal error: Class '\FE_loadDBGroup' not found in /typo3/sysext/core/Classes/Utility/GeneralUtility.php on line 4158
100%
Description
When using an 'insert records' content element on a page I get the mentioned error:
Fatal error: Class '\FE_loadDBGroup' not found in .../typo3/sysext/core/Classes/Utility/GeneralUtility.php on line 4158
The missing class is in the file class.tslib_pagegen.php and is called
in the class \TYPO3\CMS\Frontend\ContentObject\RecordsContentObject on line 63:
$loadDB = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('FE_loadDBGroup');
There seems to be a second call in class \TYPO3\CMS\Frontend\ContentObject\Menu\AbstractMenuContentObject on line 500:
$loadDB = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('FE_loadDBGroup');
Should this class also be namespaced and called like that?
$loadDB = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('\TYPO3\CMS\Frontend\Page\...');
Thanks!
Updated by Thomas Deinhamer almost 12 years ago
Okay, I actually changed some lines without using the class at all.
Changed
$loadDB = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('FE_loadDBGroup'); $loadDB->start($source, $allowedTables);
to
$loadDB = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Database\\RelationHandler'); $loadDB->fromTC = 0; $loadDB->start($source, $allowedTables);
in class \TYPO3\CMS\Frontend\ContentObject\RecordsContentObject on line 63-65.
Setting fromTC to 0, because that's the only purpose of the class FE_loadDBGroup, if I understood that correctly -
and now the insert records is displayed again without the error mentioned above.
Updated by Georg Ringer over 11 years ago
- Status changed from New to Resolved
- Target version changed from 6.0.3 to 6.1.0
- % Done changed from 0 to 100
resolved with #45937
Updated by Riccardo De Contardi about 7 years ago
- Status changed from Resolved to Closed