Bug #18025
closedt3lib_BEfunc not found
0%
Description
When using t3lib_Befunc from FE, the following fatal PHP error happens:
Fatal error: Class 't3lib_Befunc' not found in /var/www/cms/typo3conf/ext/myext/pi1/class.tx_myext_pi1.php on line ...
the line is a simple select of tt_address fields:
$select = 'fe_user_id=' .$fe_user_id .t3lib_Befunc::BEenableFields('tt_address');
The error only happens, when the backend page isn't called before (no need to log in) on the same browser. Tested on IE and FF.
(issue imported from #M7217)
Updated by Michael Stucki almost 17 years ago
t3lib_BEfunc stands for "BackEnd Functions" and is typically not intended for use in frontend plugins.
If you still need any functions from there (though they might have dependencies on various BE specific features) you can fix your problem by including the file PATH_t3lib.'class.t3lib_befunc.php' on top of your plugin.