Error in getCategories
Posted: 06 Jun 2015, 13:52
Hi!
In my Aimeos installation I experienced a problem. Every time I tried to display either the Catalog list or the Catalog filter plugin in the backend (edit the plugin or add new content) I got a blank page (nothing). In the log appears this error: Core: Error handler (BE): PHP Catchable Fatal Error: Argument 2 passed to Aimeos\Aimeos\Flexform\Catalog::getCategories() must be an instance of TYPO3\CMS\Backend\Form\FormEngine, instance of TYPO3\CMS\Backend\Form\DataPreprocessor given in [...]/typo3conf/ext/aimeos/Classes/Flexform/Catalog.php line 29
I'm working with Typo3 7.2.0, PHP 5.5.13 on FreeBSD 9.2.
What I did is I just changed line 29 Catalog.php to the requested class:
public function getCategories( array $config, \TYPO3\CMS\Backend\Form\DataPreprocessor $tceForms = null, $sitecode = 'default' )
(before it was
public function getCategories( array $config, \TYPO3\CMS\Backend\Form\FormEngine $tceForms = null, $sitecode = 'default' )
Don't know if this is the way to do it or just a dirty workaround but it seems to work^^. At least I can show these plugintypes again and don't get any errors (no extensive testing yet though).
Hope this helps!
Enjoy the summer, hope not everyone of you is working
In my Aimeos installation I experienced a problem. Every time I tried to display either the Catalog list or the Catalog filter plugin in the backend (edit the plugin or add new content) I got a blank page (nothing). In the log appears this error: Core: Error handler (BE): PHP Catchable Fatal Error: Argument 2 passed to Aimeos\Aimeos\Flexform\Catalog::getCategories() must be an instance of TYPO3\CMS\Backend\Form\FormEngine, instance of TYPO3\CMS\Backend\Form\DataPreprocessor given in [...]/typo3conf/ext/aimeos/Classes/Flexform/Catalog.php line 29
I'm working with Typo3 7.2.0, PHP 5.5.13 on FreeBSD 9.2.
What I did is I just changed line 29 Catalog.php to the requested class:
public function getCategories( array $config, \TYPO3\CMS\Backend\Form\DataPreprocessor $tceForms = null, $sitecode = 'default' )
(before it was
public function getCategories( array $config, \TYPO3\CMS\Backend\Form\FormEngine $tceForms = null, $sitecode = 'default' )
Don't know if this is the way to do it or just a dirty workaround but it seems to work^^. At least I can show these plugintypes again and don't get any errors (no extensive testing yet though).
Hope this helps!
Enjoy the summer, hope not everyone of you is working