- Posts: 20
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
DeveloperChris wrote: (never extend an extended template, a lesson we have already learnt)
If it fails at that point - Panic
DeveloperChris wrote: (never extend an extended template, a lesson we have already learnt)
We have no critical bug about it for now, just a problem with some "ghost" css files generating a 404 notice in the console. So what was your lesson about? Have you reported any bug about it?
DeveloperChris wrote:
DeveloperChris wrote: (never extend an extended template, a lesson we have already learnt)
We have no critical bug about it for now, just a problem with some "ghost" css files generating a 404 notice in the console. So what was your lesson about? Have you reported any bug about it?
I will post a bug. Its not something I personally worked on but have just asked my coworker for the details
He explained it like this...
Using LS 3.4.x
Created an extension theme we will call it theme1
Created an extension based on the extension (theme1) we will call that theme2
All was working.
Decided to upgrade using comfortupdate to LS3.7
This broke the site. Any attempt to go to the themes page was greeted with a server 500 error.
The solution was to dive into the database and re-enable theme1 which was disabled for some reason by comfortupdate.
Thus theme2 could not find it and errored resulting in the server 500.
After re-enabling theme1 everything started working again.
LouisGac wrote:
DeveloperChris wrote:
DeveloperChris wrote: (never extend an extended template, a lesson we have already learnt)
We have no critical bug about it for now, just a problem with some "ghost" css files generating a 404 notice in the console. So what was your lesson about? Have you reported any bug about it?
I will post a bug. Its not something I personally worked on but have just asked my coworker for the details
He explained it like this...
Using LS 3.4.x
Created an extension theme we will call it theme1
Created an extension based on the extension (theme1) we will call that theme2
All was working.
Decided to upgrade using comfortupdate to LS3.7
This broke the site. Any attempt to go to the themes page was greeted with a server 500 error.
The solution was to dive into the database and re-enable theme1 which was disabled for some reason by comfortupdate.
Thus theme2 could not find it and errored resulting in the server 500.
After re-enabling theme1 everything started working again.
So : this bug doesn't exist anymore (I just tried to reproduce by direct edition of the DB)
This bug was affecting the first versions of LS3. Now, if a theme doesn't work (because it's extending a theme that doesn't exist anymore), then the installation fall back to the default theme. If the default theme is the extended theme, then it fall back on vanilla.
So you can safely extend an extended theme, many people are doing it.