Issue Bug Closed

#19776TYPO3 4.3.0alpha1 in combination with DAM throws error in protected function isClassAvailable($className, array $config)

Erik Svendsen 01/07/09, 10:18 updated 10/02/18, 12:30

Description

I’m testing TYPO3 4.3.0alpha1 at some develop installation, and have stumbled upon some weird behavior with htmlArea and DAM 1.1.1. The error don’t occur on installations without DAM.

If I insert a picture in the editor and load the page with the content element in the frontend, I get the following error.

Catchable fatal error: Argument 2 passed to tslib_cObj::isClassAvailable() must be an array, null given, called in /var/www/html/typo3_src-4.3.0alpha1/typo3/sysext/cms/tslib/class.tslib_content.php on line 5989 and defined in /var/www/html/typo3_src-4.3.0alpha1/typo3/sysext/cms/tslib/class.tslib_content.php on line 6417

As far as I understand is “isClassAvailable” a new functionality in TYPO3 4.3, and I suppose in this case “protected function isClassAvailable($className, array $config)” returns a $className with an array $config = NULL, which isn’t expected in line 5989, and therefore throws an error.

(issue imported from #M10074)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.