jDownloads Support Forum

jDownloads for Joomla 4.x and 5.x => jDownloads 4.0 => Bugs! => Topic started by: Kloemi on 04.10.2023 11:41:34

Title: jdownloads php Error message - [Fixed in 4.0.35]
Post by: Kloemi on 04.10.2023 11:41:34
Hello all,

since the last update we get the following error message:

Warning: Undefined array key 138 in D:\xampp\htdocs\**\components\com_jdownloads\src\Helper\LegacyRouter.php on line 162

Warning: Trying to access array offset on value of type null in D:\xampp\htdocs\**\components\com_jdownloads\src\Helper\LegacyRouter.php on line 162


Does anyone have a similar problem or have an idea what to do about it?

Thanks for your efforts
Title: Re: jdownloads php Error message
Post by: ColinM on 04.10.2023 12:43:19
Hi
Think this is to do with the Content Plugin used in a jD Download or Category Description. Tested with jD4.0.34
See
https://www.jdownloads.com/forum/index.php?topic=14083.0
Colin
Title: Re: jdownloads php Error message
Post by: Kloemi on 04.10.2023 14:01:52
Hi Colin,

thank you very much for the quick feedback. After I deleted all categories and downloads the error disappeared. However, as soon as I create a new category and call up the category overview via the menu, the error message appears again.

LegacyRouter.php Line 159-163
            if (isset($query['catid'])) {
                if (strpos($query['catid'], ':') === false) {
                    $cat_id = (int) $query['catid'];
                    $query['catid'] = $query['catid'].':'.$this->all_cat_aliases[$cat_id]['alias'];
                }
Title: Re: jdownloads php Error message
Post by: Arno on 09.10.2023 14:41:50
Hi,
okay, will be fixed in next release. Coming soon
Title: Re: jdownloads php Error message
Post by: Arno on 09.10.2023 15:31:52
Hi,
please try the fix in the attached file.
Copy the unzipped file to /components/com_jdownloads/tmpl/categories/ and overwrite the old file.
Title: Re: jdownloads php Error message
Post by: Kloemi on 09.10.2023 17:17:11
Hi Arno, that worked. Many thanks