macopedia / community

TYPO3 CMS community / social network extension
2 stars 2 forks source link

Profile image upload not working on Typo3 8.7 #3

Open darkonevt777 opened 7 years ago

darkonevt777 commented 7 years ago

Something has changed in \TYPO3\CMS\Extbase\Domain\Model\FrontendUser::setImage(). Parameter should be of type \TYPO3\CMS\Extbase\Persistence\ObjectStorage. In former Typo3 versions it was a string.

So, the upload of a user profile image throws an exception:

Argument 1 passed to TYPO3\CMS\Extbase\Domain\Model\FrontendUser::setImage() must be an instance of TYPO3\CMS\Extbase\Persistence\ObjectStorage, array given, called in /var/www/public/typo3conf/ext/community/Classes/Controller/UserController.php on line 157

tmotyl commented 7 years ago

Hi Thanks for your report. Indeed in v8 the field is now a FAL field instead of string.