www.jdownloads.com

0 Members and 1 Guest are viewing this topic.

*
Whilst trying to do Associations in a multilingual site then using the jD Associations button in Cateories or Downloads I get the following error after clicking on the Association button.
An error has occurred.

    0 implode(): Argument #2 ($array) must be of type ?array, string given
   
   Associations work ok when using the Joomla! method
   
Colin
« Last Edit: 03.10.2023 12:19:28 by Arno »
Colin M
Re: Error using jD Associations in 4.0.32
« Reply #1 on: 28.09.2023 11:56:08 »
We have the same problem after Update today with the "content jdownloads" by using "{jd_file file==...}".
When we turn of this Plugin it works.
Please help - it is urgent!
*
Re: Error using jD Associations in 4.0.32
« Reply #2 on: 28.09.2023 12:16:23 »
Hi
Did you mean that the jD Associations work if you disabled the 'Content - jDownloads' plugin?
I Have tried with the Content plugin both enabled and disabled but using associations from both jD Categories or Downloads stiil give the
"0 implode(): Argument #2 ($array) must be of type ?array, string given" error

Colin
Colin M
Re: Error using jD Associations in 4.0.32
« Reply #3 on: 28.09.2023 12:18:12 »
You are right. We have the Error whenever the site uses JDownloads
"0 implode(): Argument #2 ($array) must be of type ?array, string given"
*
Re: Error using jD Associations in 4.0.32
« Reply #4 on: 28.09.2023 12:40:10 »
Hi
I confirm that as mj_jdl discovered then a temporary fix is commenting out lines 394 to 397 of JROOT/components/com_jdownloads/src/Helper/CategoriesHelper.php:397 solves the multilang associatiom problem.

//        if ($this->_options['currentlang'] !== 0) {
//            $subQueryCat->where(
//                $db->quoteName('cat.language')
//                . ' IN (' . implode(',', $this->_options['currentlang']));
//        }

Colin
Colin M
Re: Error using jD Associations in 4.0.32
« Reply #5 on: 28.09.2023 13:30:03 »
Yes, this works - Thank You!
Re: Error using jD Associations in 4.0.32
« Reply #6 on: 28.09.2023 16:41:31 »
Hi
I confirm that as mj_jdl discovered then a temporary fix is commenting out lines 394 to 397 of JROOT/components/com_jdownloads/src/Helper/CategoriesHelper.php:397 solves the multilang associatiom problem.

//        if ($this->_options['currentlang'] !== 0) {
//            $subQueryCat->where(
//                $db->quoteName('cat.language')
//                . ' IN (' . implode(',', $this->_options['currentlang']));
//        }

Colin

Great! Works! Thank you!