Project

General

Profile

Actions

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.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2010-09-25
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

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

filelist.png (13.6 KB) filelist.png Administrator Admin, 2010-09-25 12:38
15807_v1.diff (1.18 KB) 15807_v1.diff Administrator Admin, 2010-10-10 20:20

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #23535: Provide a wizard for media to process the video urlClosedSteffen Kamper2010-09-13

Actions
Actions #1

Updated by Chris topher about 14 years ago

Works for me.

Are the tests in the Install Tool working correctly?

Actions #2

Updated by Claus Harup about 14 years ago

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

Actions #3

Updated by Chris topher about 14 years ago

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.

Actions #4

Updated by Claus Harup about 14 years ago

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');

Actions #5

Updated by Claus Harup about 14 years ago

the [SYS][UTF8filesystem] is set to true....

Actions #6

Updated by Claus Harup about 14 years ago

TemplaVoila has the exact same problem showing thumbs..... - off course

Actions #7

Updated by Chris topher about 14 years ago

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.

Actions #8

Updated by Claus Harup about 14 years ago

Cleared all temp_ - did not work.
The line comes from:
typo3/sysext/cms/ext_localconf.php line 197

Actions #9

Updated by Chris topher about 14 years ago

This line was added recently as part of #23535.

Actions #10

Updated by Claus Harup about 14 years ago

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?!!?!?

Actions #11

Updated by Claus Harup about 14 years ago

So all I have to do is wait to alpha3? :-)

Actions #12

Updated by Chris topher about 14 years ago

Hopefully... :-)

I don't know how the new feature is supposed to work exactly, but I guess Steffen knows and can fix that...

Actions #13

Updated by Chris topher about 14 years ago

I just copied the important parts from our discussion together to make it possible to quickly get what the problem is.

Actions #14

Updated by Björn Pedersen about 14 years ago

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,

Actions #15

Updated by Steffen Kamper about 14 years ago

i will look to this soon.

Actions #16

Updated by Björn Pedersen about 14 years ago

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.

Actions #17

Updated by Susanne Moog about 14 years ago

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...

Actions #18

Updated by Susanne Moog about 14 years ago

trunk rev 9076

Actions #19

Updated by Susanne Moog over 13 years ago

  • Target version deleted (4.5.0)
Actions

Also available in: Atom PDF