Hello,
I recently moved my site from Joomla 3 to Joomla 4 and everything went well. However I am seeing the below error when I try to approve a new user. All other aspects of the registration process are working normally, and I can go into manage user and approve the user. The error occurs when I approve the user from the front end. I have included the error report.
Appreciate any help you can provide.0 count(): Argument #1 ($value) must be of type Countable|array, null given
Callstack#FunctionLocation
1()JROOT/components/com_comprofiler/comprofiler.php:1892
2approveUser()JROOT/components/com_comprofiler/comprofiler.php:222
3require_once()JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:71
4Joomla\CMS\Dispatcher\LegacyComponentDispatcher::Joomla\CMS\Dispatcher\{closure}()JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:73
5Joomla\CMS\Dispatcher\LegacyComponentDispatcher->dispatch()JROOT/libraries/src/Component/ComponentHelper.php:361
6Joomla\CMS\Component\ComponentHelper::renderComponent()JROOT/libraries/src/Application/SiteApplication.php:208
7Joomla\CMS\Application\SiteApplication->dispatch()JROOT/libraries/src/Application/SiteApplication.php:249
8Joomla\CMS\Application\SiteApplication->doExecute()JROOT/libraries/src/Application/CMSApplication.php:293
9Joomla\CMS\Application\CMSApplication->execute()JROOT/includes/app.php:6110require_once()JROOT/index.php:32