jDownloads Support Forum

jDownloads for Joomla 4.x and 5.x => jDownloads 4.0 => General => Topic started by: Gianni on 19.03.2023 12:01:25

Title: Error changing directory path and protecting it
Post by: Gianni on 19.03.2023 12:01:25
Hi, I'm using Joomla 4.2.9-1 and jD 4.0.20 jD version.
I changed the jD main directory to /jdownloads and 0755 permissions but I obtain this error when I active protection on that:
"Copy failed: [ROOT]/administrator/components/com_jdownloads/htaccess.txt to /jdownloads/.htaccess".
Title: Re: Error changing directory path and protecting it - [Not a Bug!]
Post by: Arno on 20.03.2023 12:31:41
Hi,
in which case you may have made a mistake when changing the directory? The folder must be entered as an absolute path. Not only: /jdownloads

Copy failed: [ROOT]/administrator/components/com_jdownloads/htaccess.txt to /jdownloads/.htaccess".

I have it tested and it works as expected.

Since your post is not an bug report, I'm moving it.
Title: Re: Error changing directory path and protecting it
Post by: Gianni on 20.03.2023 15:32:34
Ok, probably I made a mistake. The problem I think was not to create a directory before changing path (it didn't exist), thinking about the process should be create it. At that point, original jdownloads directory was empty, due to this the process resulted impossible to execute.
You are right, it was not a bug. Sorry for this.