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

jdownloads php Error message - [Fixed in 4.0.35]

Started by Kloemi, 04.10.2023 11:41:34

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Kloemi

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
  •  

ColinM

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

Kloemi

#2
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'];
                }
  •  

Arno

Hi,
okay, will be fixed in next release. Coming soon
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •  

Arno

Hi,
please try the fix in the attached file.
Copy the unzipped file to /components/com_jdownloads/tmpl/categories/ and overwrite the old file.
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •  

Kloemi

Hi Arno, that worked. Many thanks
  •