Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Unable to rename templates/themes - Event 304 in web logs

  • Marcike_247436
  • Marcike_247436's Avatar Topic Author
  • New Member
  • New Member
More
4 years 2 weeks ago - 4 years 2 weeks ago #211583 by Marcike_247436
Version -3.25.9+210125
We are unable to rename templates/themes. It will result in an error saying we don't have the permissions to do so.
Along with this if we choose all themes for permissions it will revert.

I have checked all file permissions and didn't see any problems there.

HTTP error during rename -POST schemehttpshostIPADDRESSfilename/index.php radmin/themes/sa/templaterename AddressIPADDRESS:443Status302FoundVersionHTTP/2Transferred31.93 KB (31.57 KB size)Referrer Policyno-referrer-when-downgrade
  •  
  cache-controlno-store, no-cache, must-revalidatecontent-length0content-typetext/html; charset=UTF-8dateThu, 04 Feb 2021 19:48:13 GMT

 
I have also experienced where a new template can be renamed but once it's renamed there is a message that it can't be found.
This is referenced in an older fix in 2.05 -https://bugs.limesurvey.org/view.php?id=8861. I experience the same thing.
Last edit: 4 years 2 weeks ago by Marcike_247436. Reason: update
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 2 weeks ago #211585 by holch
First of all, the templates/themes that come with Limesurvey (Standard Themes) should not be renamed. If you want to create a new theme or give it a different name, copy the theme. The themes that come with LS should stay untouched.

Then, check if the problem persists, have a look at the folder permissions and if they are set correctly (as requested in the installatin description in the manual here). Some folder need specific rights.

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.
The topic has been locked.
  • Marcike_247436
  • Marcike_247436's Avatar Topic Author
  • New Member
  • New Member
More
4 years 2 weeks ago #211591 by Marcike_247436
The Standard Themes are untouched.

The templates/themes in question were imported and not the same as the standard themes. If I take a built in theme and extend it I'm able to rename it once. Then it will act the same when renamed as the other imported templates/themes that we are using, meaning they will exhibit odd behavior when being renamed. It will say it doesn't exist or I don't have permissions.

The workaround right now is to extend any theme and then rename it. Using the rename button doesn't work.

I'll double check the folder permissions but I have done that a few times now.

Thanks!
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
4 years 2 weeks ago #211597 by DenisChenu
Activate debug mode and check again.

www.limesurvey.org/manual/Debug_mode

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The topic has been locked.
  • Marcike_247436
  • Marcike_247436's Avatar Topic Author
  • New Member
  • New Member
More
4 years 2 weeks ago #211629 by Marcike_247436
I enabled debug mode in PHP. I'm not seeing any errors.

I receive this message when attempting a rename -
Template could not be renamed to 'test_theme'. Maybe you don't have permission.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
4 years 2 weeks ago #211644 by DenisChenu
If you export and import ?

Can you imlport ilmage in survey ressources ?

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The topic has been locked.
Moderators: holchtpartner

Lime-years ahead

Online-surveys for every purse and purpose