jDownloads Support Forum

jDownloads for Joomla 4.x and 5.x => jDownloads 4.0 => Bugs! => Topic started by: Jefferson49 on 08.02.2023 21:08:35

Title: PHP error after updating to jD 4.0.16 Beta - [Fixed in 4.0.19]
Post by: Jefferson49 on 08.02.2023 21:08:35
  - Joomla: 4.2.7
  - jD: 4.0.16 Beta
  - PHP: 8.0.23
  - Backend template:
  - New Joomla 4 installation

After updating from jD 3.9 to jD 4.0.16 Beta, and clicking on the "Start jDownloads" button, a PHP error occured, see below. None of the jDownload extensions were activated. After activating the 4.0 extensions, the error disappeared and jD seems to work.

One reason might be, that at update time the "Upload directory path" was set to a wrong value.

error - Uncaught Throwable of type Joomla\CMS\Component\Exception\MissingComponentException thrown with message "Component not found.". Stack trace: #0 [ROOT]/libraries/src/Application/AdministratorApplication.php(143): Joomla\CMS\Component\ComponentHelper::renderComponent('com_jdownloads') #1 [ROOT]/libraries/src/Application/AdministratorApplication.php(186): Joomla\CMS\Application\AdministratorApplication->dispatch() #2 [ROOT]/libraries/src/Application/CMSApplication.php(294): Joomla\CMS\Application\AdministratorApplication->doExecute() #3 [ROOT]/administrator/includes/app.php(61): Joomla\CMS\Application\CMSApplication->execute() #4 [ROOT]/administrator/index.php(32): require_once('/volume1/web/jo...') #5 {main}
Title: Re: PHP error after updating to jD 4.0.16 Beta
Post by: Arno on 13.02.2023 23:49:40
Hi,
QuoteNone of the jDownload extensions were activated.
I think this might be the cause of your problem. How is an extension supposed to work if it is disabled? Or have I misunderstood something?  ::)
Title: Re: PHP error after updating to jD 4.0.16 Beta
Post by: Jefferson49 on 14.02.2023 07:16:27
I reported the issue, because a PHP error was thrown. This should not be the case, even if the extension is deactivated or some of the settings are outdated.

The root cause for the PHP error might have been the deactivated extensions or a wrong path for the "files_uploaddir", "root_dir" settings.
Title: Re: PHP error after updating to jD 4.0.16 Beta
Post by: Arno on 14.02.2023 21:45:19
Okay, I will check it.