Bug #18374
closedXCLASSing USER_INT objects does not work
0%
Description
Since update to TYPO3 4.1.6 the XCLASS function does not work any more.
in my installation i use an extension which xclasses the newloginbox. since my update to 4.1.6 the xclass would not be called. if I downgrade to 4.1.5 it works as expected.
(issue imported from #M7759)
Files
Updated by Lars Michalowski over 16 years ago
Same on my installation. After upgrading to 4.1.6, none of my xclasses is loaded any more (PHP 5.2.5, linux)
Updated by Josef Stich over 16 years ago
I just saw that in 4.1.5 the user scripts (plugins) where included in index_ts.php.
When the plugin, e.g. newloginbox, checks for xclasses, it will work. $TYPO3_CONF_VARS is available.
Since 4.1.6 the scripts were included inside a class method in tslib_fe. When the plugin script is included now, it can't use $TYPO3_CONF_VARS to look for xclasses, it has to look in $GLOBALS['TYPO3_CONF_VARS'] for xclasses.
Quick solution would be, in my view, to go back to 4.1.5 or to change the xclass inclusion parts to $GLOBALS['TYPO3_CONF_VARS'] instead of $TYPO3_CONF_VARS
Updated by Malte Jansen over 16 years ago
Sounds to me like the same problem like in this bugs
http://bugs.typo3.org/view.php?id=7947
You have to add
"global $TYPO3_CONF_VARS;"
before the require_once is called.
Updated by Oliver Hader over 16 years ago
Please test the attached small patch which should solve this bug.
Updated by Oliver Hader over 16 years ago
- TYPO3 4.1.x: 0007759_41.patch
- TYPO3 4.2: 0007759_42.patch
Updated by Oliver Hader over 16 years ago
- TYPO3_4-1 (rev. 3485) --> TYPO3 4.1.7
- TYPO3_4-2 (rev. 3486)