Bug #23611
closed
After #23535: Fatal error: Class 'tslib_mediaWizardManager' not found (resulting in no thumbnails in the filelist)
Added by Claus Harup about 14 years ago.
Updated over 13 years ago.
Description
When installing the filelist extension and checking the option "show thumnails" no icons show up.
This is caused by the following
Fatal error: Class 'tslib_mediaWizardManager' not found in /typo3conf/temp_CACHED_psb9bf_ext_localconf.php on line 211
On line 211 it says:
tslib_mediaWizardManager::registerMediaWizardProvider('tslib_mediaWizardCoreProvider');
The line comes from:
typo3/sysext/cms/ext_localconf.php line 197
(issue imported from #M15807)
Files
Works for me.
Are the tests in the Install Tool working correctly?
Everything works perfectly - I just copied my site on the exact same server and upgraded....
The path to the file is:
../../../thumbs.php?&dummy=1285424356&file=%2Fvar%2Fwww%2Fklon45%2Fhtdocs%2Ffileadmin%2Ftemplates%2Fimages%2Fnewsletterheader.gif&md5sum=bb700e8551
On the original site (TYPO4.4.2) the path is:
thumbs.php?&dummy=1285424420&file=%2Fvar%2Fwww%2Fklon44%2Fhtdocs%2Ffileadmin%2Ftemplates%2Fimages%2Fnewsletterheader.gif&md5sum=8b19dde98b
What do you get, when you directly call thumbs.php with the parameters appended?
I recently had a problem with these symptoms. In my case a Byte Order Mark from one of the included PHP files was returned, which screwed up the image file. See #22954.
If I call the thumbs script directly in the browser I get the following:
Fatal error: Class 'tslib_mediaWizardManager' not found in /var/www/klon45/htdocs/typo3conf/temp_CACHED_psb9bf_ext_localconf.php on line 211
On line 211:
tslib_mediaWizardManager::registerMediaWizardProvider('tslib_mediaWizardCoreProvider');
the [SYS][UTF8filesystem] is set to true....
TemplaVoila has the exact same problem showing thumbs..... - off course
Delete all temp_CACHED_* files and try again.
If the error is still/again there, check which extension inserts the block of code with that erroneous line into the temp_CACHED_ file.
Cleared all temp_ - did not work.
The line comes from:
typo3/sysext/cms/ext_localconf.php line 197
This line was added recently as part of #23535.
Outcommenting the erroneous line in temp_..... makes it work - but as long as it comes from the core I have no way to make et work?!!?!?
So all I have to do is wait to alpha3? :-)
Hopefully... :-)
I don't know how the new feature is supposed to work exactly, but I guess Steffen knows and can fix that...
I just copied the important parts from our discussion together to make it possible to quickly get what the problem is.
I can reproduce this problem.
It seems thumbs.php does not correctly autoload the mediaManager classes before including the temp_CACHED files.
Locally i fixed it by a require_once for the media manager class in sysext/cms/ext_localconf.php, but that is probably not a real solution. Maybe someone with more understanding where the autoloader kicks in can help out?
stack trace:
[error] PHP Fatal error: Class 'tslib_mediaWizardManager' not found in ...typo3conf/temp_CACHED_ps8167_ext_localconf.php on line 211,
[error] PHP Stack trace:,
[error] PHP 1. {main}() ...typo3_src_svn/typo3/thumbs.php:0,
[error] PHP 2. require() ...typo3_src_svn/typo3/thumbs.php:59,
[error] PHP 3. require() ...typo3_src_svn/t3lib/thumbs.php:93,
[error] PHP 4. require() ...typo3_src_svn/t3lib/config_default.php:589,
i will look to this soon.
Further analysis:
The error happes probably because:
a) typo3/thumbs.php does not call init.php, but does a very lightweight initialization and does not set
PATH_tslib,
Further problems here: TYPO3_mainDir is not set/used, instead 'typo3' is used hardcoded.
b) the same is true for the called t3lib/thumbs.php
here TYPO3_mainDir is always set to 'typo3'
Solution:
move all path+constants setup to one central file. I just do not yet know where to put this file so that it can be always resolved without any path magic.
Patch is pending in core list. Hotfix solution with just adding PATH_tslib to both thumbs.php scripts (like it's done with PATH_t3lib) as the whole thumbnail generation should be refactored anyway...
- Target version deleted (
4.5.0)
Also available in: Atom
PDF