jDownloads Support Forum

jDownloads for Joomla 4.x and 5.x => jDownloads 4.0 => Bugs! => Topic started by: Jefferson49 on 09.02.2023 06:34:59

Title: After jD 4 update and changing "files_uploaddir", the "root_dir" stays the same
Post by: Jefferson49 on 09.02.2023 06:34:59
- Joomla: 4.2.7
- jD 4.0.16 Beta
- PHP: 8.0.23
- Standard backend template: jD yes, Joomla Atum
- New Joomla 4 installation

During upgrading from jD 3.9 to jD 4.0.16 beta, the upload directory path still had the value of an old installation. After the upgrade, I changed the path to the new server. If looking into the JSON option file, I can find the new path in "files_uploaddir". However, there is another path variable "root_dir", which still contains the old path.

I do not know if this is exactly related to the jD 4 update. At the moment, the option does not seem to cause problems. However, it looks wrong.

Questions:
Title: Re: After jD 4 update and changing "files_uploaddir", the "root_dir" stays the same
Post by: ColinM on 10.02.2023 14:27:14
Hi
In updating from Joomla 3.9 to 4 it is assumed that it is on the same server so one would expect the root address to remain the same
Colin
Title: Re: After jD 4 update and changing "files_uploaddir", the "root_dir" stays the same
Post by: Arno on 10.02.2023 16:57:48
QuoteQuestions:
Should the "root_dir" have been changed during the update?
Shoud the "root_dir" have been changed in parallel while changing the "files_uploaddir"?
Or, is there a setting view, where I can change the  "root_dir"? Haven't found it.
It may be that this option is no longer used. But I must check this. Thanks.

You cannot change it via backend. You could try to export the data, change it and import it again.
Edit: This will not work. So you need to change it manually in the extension table element com_jdownloads field params.
But you could also wait on the next version.