CSS Styling removed

More
5 months 4 weeks ago #153242 by fkwon
fkwon created the topic: CSS Styling removed
I was working on a client's project and went to edit the a style in the "flat_and_modern.css" file.

When I went to save, it somehow managed to delete half of the file.
I tried pasting in the code (I had an old version of it saved) and each time it keeps cutting off and not saving the second half of the CSS file.

Anyone know if I can revert back to an older version of CSS within the platform, and the bigger issue, know how to get this file to save ALL the code?

We're going into production and this needs to be resolved ASAP!

Thanks!

Please Log in to join the conversation.

More
5 months 4 weeks ago #153245 by holch
holch replied the topic: CSS Styling removed
First of all, via the template editor you should not be able to change anything in the templates that are shipped with Limesurvey. This should only work with copies of these templates.
If you made your modifications via an editor directly into the files of these templates, then there is little we can do. You could just download LS again, unzip the folder, go to the file and copy it into your installation via FTP. This should work.
What version of LS are you using?

We're going into production and this needs to be resolved ASAP!

Well, I only can recommend not to do those things right before going into production, without having a backup at least.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in to join the conversation.

More
5 months 4 weeks ago #153247 by fkwon
fkwon replied the topic: CSS Styling removed
Holch,

This was done with a copy of the default template (as you said, you can't edit the default template directly).

Up until an hour ago there was no issue in editing the CSS files in the copied template. The only change I made was the modification of a background-colour I had changed the day before.

I appreciate the recommendation, and it is what we had done; the business decided on changing a colour. It seems to always cut the code at the same spot (give or take a few characters).

Limesurvery version: Version 2.63.1+170305

Thanks

Please Log in to join the conversation.

More
5 months 4 weeks ago #153248 by DenisChenu
DenisChenu replied the topic: CSS Styling removed
Maybe a memory issue when saving files ... activate debug mode.

Else : ftp or sftp is always more quick to edit template

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

More
5 months 4 weeks ago #153250 by fkwon
fkwon replied the topic: CSS Styling removed
Do you guys know if there is a way to revert to older versions of the template?

Please Log in to join the conversation.

More
5 months 4 weeks ago #153252 by holch
holch replied the topic: CSS Styling removed
As I said, copy the css file from the original template into the folder of the copy that you created and you should have your original css file back.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in to join the conversation.

More
5 months 4 weeks ago #153253 by fkwon
fkwon replied the topic: CSS Styling removed
If by original, you mean default template, that doesn't contain the changes I made since.

In any case, I found a copy of it elsewhere so I didn't lose everything. It would be cool for Limesurvey to allow versioning for css files.

Thanks for the help everyone.

Please Log in to join the conversation.

More
5 months 4 weeks ago #153255 by holch
holch replied the topic: CSS Styling removed
There are a lot of things that "would be cool", but the resources of the developers are unfortunately limited. However, I think especially with things like the CSS files, if you need versioning you could always set up your own test server and have versioning running there. This is the right practice anyway: develop on your development/test installation and only apply changes to the production server once you are sure that things are working.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now