When Umbraco admin/backoffice loads, it loads this CSS:
/sb/umbraco-backoffice-css.css.v637823303400000000
However, this URL returns a 500 because of the following error:
System.InvalidOperationException: Expected expression, found ‘’,Expected expression, found ‘’
at Smidge.Nuglify.NuglifyCss.ProcessAsync(…)
…
at Smidge.FileProcessors.CssImportProcessor.ProcessAsync
In the development environment Smidge/NUglify doesn’t seem to run, so we get one CSS for each package, and of all these work.
So it seems the backoffice/admin Smidge/NUglify is broken because something in the installation, or a package, makes Smidge/NUglify try to import an empty file, or something similar.
Clearing the App_Plugins
folder and re-installing and re-deploying all packages does not help.
As a workaround, is there a way to turn off backoffice/admin Smidge/NUglify to get the same behavior as in development? Removing the RuntimeMinification
block from AppSettings doesn’t seem to make a difference.
Any other ideas what could be breaking this?
The packages that load CSS files are:
- Diplo GodMode
- Translation Manager
- Translation Manager Languagewire Connector
- Umbraco Forms
- uSync
Removing each package one by one and testing is a bit tedious because it works in development. And when clearing the App_Plugins folder in production Umbraco still tries to load CSS/JS from those folders, so Smidge/NUglify breaks anyway. Not sure how Umbraco “remembers” what to load.
EDIT: SimpleRedirects is missing from the package list above, and it seems to be causing the problem (see below).
This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/108469-backofficeadmin-css-smidgenuglify-error-breaking-package-styling