jDownloads Support Forum

Older Versions => jDownloads 3.2 (Support ended) => General => Topic started by: Eric_Website on 16.06.2015 12:53:15

Title: Saving CSS creates empty (0 bytes) jdownloads_fe.css - [Not reproduceable]
Post by: Eric_Website on 16.06.2015 12:53:15
Hello!
When I try to save a modified CSS, all content is erases and I get an empty jdownloads_fe.css file.
The file is writable
jDownloads Version: 3.2.33
Joomla: 3.4.1
PHP: 5.4.41-0+deb7u1
Server: Debian Linux 7
Title: Re: Saving CSS creates empty (0 bytes) jdownloads_fe.css file
Post by: ColinM on 20.06.2015 01:13:40
Hi
Do you get a message lie
"Forbidden

You don't have permission to access /administrator/index.php on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request."

Colin
Title: Re: Saving CSS creates empty (0 bytes) jdownloads_fe.css file
Post by: Eric_Website on 20.06.2015 13:23:50
Hi Colin,

I did not get any error message.
/components/com_jdownloads/assets/css is writable (755) and the owner/group is www-data, which is correct as well.
Is must be writable and accessable, because saving results in a 0 byte file.
Title: Re: Saving CSS creates empty (0 bytes) jdownloads_fe.css file
Post by: Arno on 20.06.2015 13:46:04
Hi,
we will test this again. I think you have tried to change it via the jD language panel in the backend?
Please note that you should use for your modifications better the custom css file. This will not be overwritten by the next update. See documentation.
Title: Re: Saving CSS creates empty (0 bytes) jdownloads_fe.css file
Post by: Eric_Website on 21.06.2015 09:39:51
Hi Arno,

I tried to change the CSS in the Joomla backend, Components/jDownloads/Layouts/CSS File (the 2 T's).
Maybe a suggestion to warn against edits here, as they will be overwritten by a update! Now it looks like you should do it this way.

Following your suggestion, I moved my CSS edits to a custom css file, this works well. Thanks!
Title: Re: Saving CSS creates empty (0 bytes) jdownloads_fe.css - [Not reproduceable]
Post by: Arno on 21.06.2015 10:13:15
QuoteI tried to change the CSS in the Joomla backend, Components/jDownloads/Layouts/CSS File (the 2 T's).
I have checked this but can not reproduce your problem here.
Maybe only a problem with your installation.

QuoteMaybe a suggestion to warn against edits here, as they will be overwritten by a update!
Yes this could be useful.
Title: Re: Saving CSS creates empty (0 bytes) jdownloads_fe.css - [Not reproduceable]
Post by: ColinM on 21.06.2015 10:43:26
Hi
The use of a custom css file is in the documentation see http://www.jdownloads.net/documentations/item/custom-css
jDownloads will load in jdownloads_custom.css as late as possible in the loading sequence so it overrides other css but some templates may load some css later so you may need to use the !important construct.

All front end  jD html is contained in  div jd-item-page  so if you preface any css line with .jd-item-page  then that will confine the css to jDownloads items

Colin