News:

Support for jDownloads 3 has been ended
Since 17 August 2023 Joomla.org has discontinued support for Joomla 3.x. Therefore, we will no longer offer official support for our Joomla 3 jDownloads version 3.9.x from January 2024.
Please update your website to the latest Joomla version (Joomla 4 or Joomla 5) as soon as possible. Afterwards, please update jDownloads to the latest published version. The longer you delay, the more difficult the upgrade process for your website is likely to be.

Main Menu
Support-Forum

Error using jD Associations in 4.0.32 - [Solved in 4.0.33]

Started by ColinM, 28.09.2023 11:46:51

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ColinM

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
Colin M
  •  

dollman

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!
  •  

ColinM

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
  •  

dollman

You are right. We have the Error whenever the site uses JDownloads
"0 implode(): Argument #2 ($array) must be of type ?array, string given"
  •  

ColinM

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
  •  

dollman

  •  

bike_infection

Quote from: ColinM 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

Great! Works! Thank you!
  •