We upgraded from Joomla 3 to Joomla 4. And we are using AcyMailing 5.11.6.
When we clicked on Tags in Smart-Newsletters, we were faced with the following error:
Exception Type: TypeError
File: /home/our_name/public_html/plugins/acymailing/tagjevents/tagjevents.php
Line: 702
Message: array_unique(): Argument #1 ($array) must be of type array, null given
On line 685 of tagjevents.php you will find the following code:
if(file_exists(JPATH_ADMINISTRATOR.DS.'components'.DS.'com_jevlocations')){
I added the following code above this code, then the error disappeared.
$allCities = array();
$allStates = array();
$allCountries = array();
If this fix makes sense, we request that it be included in the next update.