Error in getCategories
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Error in getCategories
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
Re: Error in getCategories
Thanks for the hint! Seems to be a backward incompatible change in TYPO3 7.2 which we haven't noticed yet. It's fixed now in the master branch: https://github.com/aimeos/aimeos-typo3/ ... d00207ee78Faebu93 wrote: 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' )
The trick is to enjoy the summer while you are workingFaebu93 wrote:Enjoy the summer, hope not everyone of you is working
Re: Error in getCategories
Hey you are fast ! Thx!!!
That's the way!aimeos wrote:The trick is to enjoy the summer while you are working