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
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!
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
You are right. We have the Error whenever the site uses JDownloads
"0 implode(): Argument #2 ($array) must be of type ?array, string given"
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
Yes, this works - Thank You!
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!