Bug #21761
closed
Fatal error in class autoloader after upgrade to TYPO3 4.3
Added by Kai Lehmann almost 15 years ago.
Updated about 6 years ago.
Description
There was no frontend output after upgrade from TYPO3 4.10 to 4.3 (stable version).
I got the PHP error message "Fatal error: Class 'tx_templavoila_pi1' not found in /html/typo3_src-4.3.0/t3lib/class.t3lib_div.php on line 4942".
All extensions were up to date. After deinstalling templavoila, I got a similar error message for other extensions. There seems to be a problem with the class autoloader in class.t3lib_div.php.
Backend was running normally, including templavoila. There were some issues with PHP 5.3 (no folder tree in DAM and media selections) so I switched back to PHP 5.2.
Relation to an PHP 5.3 issue:
http://bugs.php.net/bug.php?id=50159
(issue imported from #M12869)
Files
I can reproduce the same error message, also in PHP 5.3.1.
No Frontend with templavoila.
i've got the same problem using 4.3 and TV - but only with PHP 5.3.0 and 5.3.1.
Downgrading back to 5.2.11 solves it for me.
First i saw this white FE with this error message refering to ms_ footermenu.
After uninstalling it, tv is the one:
Fatal error: Class 'tx_templavoila_pi1' not found in /html/typo3_src-4.3.0/t3lib/class.t3lib_div.php on line 4942
problem still exists with typo3 v4.31 and php5.3+
Fatal error: Class 'tx_templavoila_pi1' not found in /html/typo3_src-4.3.1/t3lib/class.t3lib_div.php on line 4942
(preconfigurated server environment @ professionell and well known german typo3 hoster mittwald.de)
Can someone with PHP 5.3 please dig deeper into this issue?
I have typo3 4.3.1, php 5.3.1 and templavoila 1.4.1.
The failure appears in function makeInstance at:
$instance = new $className;
When debugging the $className before this line there are many instances generated successfully:
tslib_feUserAuth |
|
t3lib_tsfeBeUserAuth |
|
t3lib_TSparser_TSconfig |
|
t3lib_matchCondition_backend |
|
tslib_AdminPanel |
|
tx_simulatestatic |
|
t3lib_pageSelect |
|
tx_sv_auth |
|
tx_templavoila_frontendedit |
|
language |
|
t3lib_cs |
|
t3lib_pageSelect |
|
t3lib_TStemplate |
|
t3lib_matchCondition_frontend |
|
t3lib_PageRenderer |
|
t3lib_cs |
|
tslib_cObj |
|
tx_templavoila_pi1 |
Do you need more information, Oliver?
problem still exists with php 5.3.1 and new typo3 4.3.2
Fatal error: Class 'tx_templavoila_pi1' not found in /html/typo3_src-4.3.2/t3lib/class.t3lib_div.php on line 4942
Thanks for your feedback. I need more information (a full debug backtrace) when the error occurs.
sorry I'm no developer. Can you please post a link to a tutorial how to do this exactly? Google brings no good results searching for it....
Thanks very much.
Hey Oliver,
we can debug it at T3BOARD10. I have the server environment which causes the error.
Greets Thomas
sounds perfect, thanks very much.
Do you also use a preconfigurated server?
Hi Oliver,
here is the full debug_backtrace.
I hope it gives you some hints.
Thomas
We reproduced this issue at the T3BOARD10 on a PHP 5.3.1
It seems, that this is is a PHP 5.3 bug since the current working directory pointed to the source files of TYPO3 and not to the document root of the website. Thus, relative filenames that are looked up by t3lib_tstemplate:getFileName() are not found.
http://bugs.php.net/bug.php?id=50159
Upgrading to PHP 5.3.2 should solve this problem...
(PHP 5.3.2 ChangeLog, search for 50159: http://www.php.net/ChangeLog-5.php#5.3.2 )
After upgrading to PHP 5.3.2 (built: Mar 6 2010 00:11:37) this bug does not appear any more. It seems to be a bug in PHP.
This bug is fixed and this issue can be closed.
Closing this bug since no change is required in TYPO3.
Please upgrade to PHP 5.3.2 instead...
- Status changed from Resolved to Closed
Also available in: Atom
PDF