Page 1 of 1

custom stylesheet empty after upgrade

Posted: Sun Mar 10, 2019 11:52 pm
by pirod
Hi,

I am taking the route to upgrading step by step. Now going from 1.10.3 to 1.11.13 made the CSS stylesheet attached to the template become empty and so does not render the website.

in the template CSS is called with: {cms_stylesheet https=true}
as it was already in previous version of the CMSMS.

stylesheet_combined keeps regenerating in tha cache at 0B

Any idea how to solve this? the stylesheet was working fine on the previous version of CMSMS.

Re: custom stylesheet empty after upgrade

Posted: Mon Mar 11, 2019 1:30 am
by DIGI3
try it without the https, and also check for errors in the stylesheet itself. Later versions of Smarty/cmsms get less forgiving with errors.

Your PHP error log and/or admin log may also provide more clues.

Re: custom stylesheet empty after upgrade

Posted: Mon Mar 11, 2019 7:55 am
by pirod
Hi,

It turns out the [[root_url]] tags in CSS were the cause.

Is this known? Why is there no clear indication of removal of this tag in CSS designing for example on the upgrade doc page where other changes are indicated?

thanks

Re: custom stylesheet empty after upgrade

Posted: Tue Mar 12, 2019 3:09 am
by DIGI3
[[root_url]] tags are fine to use, but maybe one of them had a typo?

Re: custom stylesheet empty after upgrade

Posted: Tue Mar 12, 2019 8:26 am
by pirod
thanks, but no typo. All tags were in place for many many years. upgrade of CMSMS made that break and I could only repair by removing ALL these root_url bracket tags.

Re: custom stylesheet empty after upgrade

Posted: Tue Mar 12, 2019 3:19 pm
by DIGI3
What happens when you add one back in, what's the error in the log?