Page 1 of 1

Error: 0 implode(): Argument #2 ($array) must be of type ?array, string given

Posted: 29 Nov 2022, 16:15
by tomifocus
Dear Jan,

After I have upgraded from php 7.4 to 8.0 I wanted to add tag to a previously created phoca download file I faced with the following error message. Currently my website is running on Joomla 3.10.11 stable version with PHP 8.0.25.
And I faced with this issue when I add a tag to the phoca download.
An error has occurred.

0 implode(): Argument #2 ($array) must be of type ?array, string given
D:\xampp-php-8-0\htdocs\naih_new_test\administrator\components\com_phocadownload\libraries\phocadownload\tag\tag.php:66

Call stack
# Function Location
1 () JROOT\administrator\components\com_phocadownload\libraries\phocadownload\tag\tag.php:66
2 implode() JROOT\administrator\components\com_phocadownload\libraries\phocadownload\tag\tag.php:66
3 PhocaDownloadTag::storeTags() JROOT\administrator\components\com_phocadownload\models\phocadownloadfile.php:389
4 PhocaDownloadCpModelPhocaDownloadFile->save() JROOT\libraries\src\MVC\Controller\FormController.php:781
5 Joomla\CMS\MVC\Controller\FormController->save() JROOT\libraries\src\MVC\Controller\BaseController.php:702
6 Joomla\CMS\MVC\Controller\BaseController->execute() JROOT\administrator\components\com_phocadownload\phocadownload.php:44
7 require_once() JROOT\libraries\src\Component\ComponentHelper.php:402
8 Joomla\CMS\Component\ComponentHelper::executeComponent() JROOT\libraries\src\Component\ComponentHelper.php:377
9 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT\libraries\src\Application\AdministratorApplication.php:101
10 Joomla\CMS\Application\AdministratorApplication->dispatch() JROOT\libraries\src\Application\AdministratorApplication.php:159
11 Joomla\CMS\Application\AdministratorApplication->doExecute() JROOT\libraries\src\Application\CMSApplication.php:225
12 Joomla\CMS\Application\CMSApplication->execute() JROOT\administrator\index.php:51
Could you please give me advice how to solve it?

Thanks a lot.

Re: Error: 0 implode(): Argument #2 ($array) must be of type ?array, string given

Posted: 30 Nov 2022, 01:07
by Jan
Hi, latest Phoca Download for Joomla 3 was released before PHP 8 so there is no suppor for it:

https://www.phoca.cz/blog/1208-using-php-version-8-1

Jan