jDownloads Support Forum

jDownloads for Joomla 4.x and 5.x => jDownloads 4.x - (This is the current version!) => General => Topic started by: musicasampler on 12.11.2026 03:11:05

Title: Request for a Joomla 6-compatible installer for CB jDownloads
Post by: musicasampler on 12.11.2026 03:11:05
Hi Arno and ColinM,

Could you publish an updated installer for **Community Builder Plugin for jDownloads 4.0**, currently version **2.8.0**, so it can be installed normally through the Community Builder plugin manager on Joomla 6?

I tested the plugin in two environments and made one small change in each.

**1. Local test on WampServer — `cbjdownloads.php`, line 283**

I tested a migrated copy of my site running Joomla 6.2.0, PHP 8.4.15, and jDownloads 4.1.7. When I opened a profile without entering a search term, `$filterSearch` could be `null`. Passing it to `htmlspecialchars()` produced a PHP deprecation notice. I changed:

```php
htmlspecialchars( $filterSearch )
```

to:

```php
htmlspecialchars( $filterSearch ?? '' )
```

The change preserves any search text and uses an empty string when no search term is available. Afterward, I verified that I could search for a MIDI from the profile's Downloads tab, open its page, and download the file.

**2. Online test on `version6.musicasampler.com` — `models/model.php`, line 149**

I then tested on a separate subdomain with a clean Joomla 6 installation. When I opened the Downloads tab, the plugin raised `Class "JRoute" not found`. In `getUrl()`, I changed:

```php
$url = JRoute::_( $url, false );
```

to:

```php
$url = \Joomla\CMS\Router\Route::_( $url, false );
```

After that change, the Downloads tab loaded and displayed the list of MIDIs on the test subdomain.

I've saved both corrected files. Could you review these changes and include them in an official Joomla 6 ZIP? That would let users install the plugin through Community Builder with the fixes already included.

I'd be happy to share the two files if you'd like to review them.

Thanks and kind regards 
Alfredo musicasampler
Title: Re: Request for a Joomla 6-compatible installer for CB jDownloads
Post by: Arno on 13.11.2026 20:04:58
Hi Alfredo,
thank you very much for your help and for providing the bug fix.
I will update the older version here later today.
Title: Re: Request for a Joomla 6-compatible installer for CB jDownloads
Post by: musicasampler on 15.11.2026 03:51:46
Thank you for updating the official CB jDownloads installer and including both fixes I shared. I checked the 2.8.1 package and was glad to see them included.

The Downloads tab is an important part of Musicasampler. Our members use it to see which MIDIs others have contributed. I'm glad my tests helped get the fixes into the official package so other Joomla 6 users can install it directly through Community Builder.

Thanks again for taking the time to update the plugin.

Best regards,
Alfredo
Musicasampler