Welcome to the LimeSurvey Community Forum

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

Sudden 500 error for the theme section of the admin panel

  • domsson
  • domsson's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 4 months ago - 5 years 4 months ago #177769 by domsson
LimeSurvey was up and running just fine until a couple of minutes ago. I was working on a theme via the Admin panel. I had just edited some styles in "custom.css" and then clicked on "theme.css" in the menu. That's when I got a 500 Server error. Ever since then, all attempts to get into the Theme section (even the page that lists the available themes) is throwing the 500 error. All other parts of the admin panel (as well as the frontend) still work fine. The error reads:
Code:
Call to a member function xpath() on null

I'm also logged in via SSH and have edited the config.xml file of the theme there, plus added "force_xmlsettings_for_survey_rendering" to the config.php a while before. However, none of these changes were immediately before I started getting the 500 error.

I'm trying to figure out what is causing the error. Any hints / pointers in the right direction? Anything I could try?

Version 3.14.11+180926
Last edit: 5 years 4 months ago by domsson.
The topic has been locked.
  • domsson
  • domsson's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 4 months ago - 5 years 4 months ago #177773 by domsson
I found the issue. In the theme that I was working on, I introduced an error in the config.xml. I doubled the "metadata" end tag. Lesson learned: an error in a theme's config.xml can bring down the whole theme backend.

Hopefully this will help someone in the future. :-)

PS: How do I mark a thread as solved?
Last edit: 5 years 4 months ago by domsson.
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 4 months ago #177775 by holch

PS: How do I mark a thread as solved?


You don't. ;-)

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 4 months ago #177790 by DenisChenu
You can report it at feature request, maybe we must test if xml is valid :)

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose