exstreme / Jcomments-4

Modified Jcomments 3.0.7 with Recaptcha 2 in comments. Adapted to Joomla 4. No compatibility with Joomla 1.5\2.5\3.x
16 stars 12 forks source link

Avatar Plugin Error when saving new comment #96

Closed iantrudell closed 2 years ago

iantrudell commented 2 years ago

Getting an error when I try to submit/save a new comment:

0 PlgJcommentsAvatar::onPrepareAvatar(): Argument #1 ($comment) must be of type array, JCommentsTableComment given, called in /libraries/src/Plugin/CMSPlugin.php on line 285

Call stack

# | Function | Location
1 | () | JROOT/plugins/jcomments/avatar/avatar.php:42
2 | PlgJcommentsAvatar->onPrepareAvatar() | JROOT/libraries/src/Plugin/CMSPlugin.php:285
3 | Joomla\CMS\Plugin\CMSPlugin->Joomla\CMS\Plugin\{closure}() | JROOT/libraries/vendor/joomla/event/src/Dispatcher.php:486
4 | Joomla\Event\Dispatcher->dispatch() | JROOT/libraries/src/Application/EventAware.php:111
5 | Joomla\CMS\Application\WebApplication->triggerEvent() | JROOT/components/com_jcomments/helpers/event.php:53
6 | JCommentsEvent::trigger() | JROOT/components/com_jcomments/jcomments.php:1049
7 | JComments::getCommentItem() | JROOT/components/com_jcomments/jcomments.php:1099
8 | JComments::getCommentListItem() | JROOT/components/com_jcomments/jcomments.ajax.php:638
9 | JCommentsAJAX::addComment() | JROOT/components/com_jcomments/libraries/joomlatune/ajax.php:200
10 | JoomlaTuneAjax->_callFunction() | JROOT/components/com_jcomments/libraries/joomlatune/ajax.php:216
11 | JoomlaTuneAjax->processRequests() | JROOT/components/com_jcomments/jcomments.php:185
12 | require_once() | JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:69
13 | Joomla\CMS\Dispatcher\LegacyComponentDispatcher::Joomla\CMS\Dispatcher\{closure}() | JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:71
14 | Joomla\CMS\Dispatcher\LegacyComponentDispatcher->dispatch() | JROOT/libraries/src/Component/ComponentHelper.php:389
15 | Joomla\CMS\Component\ComponentHelper::renderComponent() | JROOT/libraries/src/Application/SiteApplication.php:204
16 | Joomla\CMS\Application\SiteApplication->dispatch() | JROOT/libraries/src/Application/SiteApplication.php:243
17 | Joomla\CMS\Application\SiteApplication->doExecute() | JROOT/libraries/src/Application/CMSApplication.php:278
18 | Joomla\CMS\Application\CMSApplication->execute() | JROOT/includes/app.php:63
19 | require_once() | JROOT/index.php:32