Plone 5 upgrade failing on ++resource++plone.css

Hi all,

I am trying to upgrade a Plone 4 site to Plone 5. One problem which I keep coming across is that plone.css doesn't exist in my Plone 5.0.4 build.

I receive this error whenever I try to update the registry.xml file with new CSS/JS. This results in a site rendered as Javascript and not HTML :confused:

`2016-05-03T16:38:24 ERROR root Exception while rendering an error message
Traceback (most recent call last):
File "~/eggs/Zope2-2.13.24-py2.7.egg/OFS/SimpleItem.py", line 242, in raise_standardErrorMessage
v = s(**kwargs)
File "~/eggs/Products.CMFCore-2.2.10-py2.7.egg/Products/CMFCore/FSPythonScript.py", line 127, in call
return Script.call(self, *args, **kw)
File "~/eggs/Zope2-2.13.24-py2.7.egg/Shared/DC/Scripts/Bindings.py", line 322, in call
return self._bindAndExec(args, kw, None)
File "~/eggs/Products.PloneHotfix20130618-1.3-py2.7.egg/Products/PloneHotfix20130618/spamProtect.py", line 35, in _patched_bindAndExec
return _original_bindAndExec(self, args, kw, caller_namespace)
File "~/eggs/Zope2-2.13.24-py2.7.egg/Shared/DC/Scripts/Bindings.py", line 359, in _bindAndExec
return self._exec(bound_data, args, kw)
File "~/eggs/Products.PythonScripts-2.13.2-py2.7.egg/Products/PythonScripts/PythonScript.py", line 344, in _exec
NotFound:

Site Error

An error was encountered while publishing this resource.

Resource not found

Sorry, the requested resource does not exist.

Check the URL and try again.

Resource: http://localhost:8090/plone/++resource++plone.css


`

I noticed that the plone.css is empty, therefore I tried to recompile the plone.less file

lessc -x plone.less plone.css NameError: variable @mockup-patterns-select2 is undefined in ~/eggs/Products.CMFPlone-5.0.4-py2.7.egg/Products/CMFPlone/static/plone.less on line 3, column 13: 2 3 @import url("@{mockup-patterns-select2}"); 4 @import url("@{mockup-patterns-pickadate}");

Is anyone else having this problem? I don't have the Barcelonette theme installed as I didn't think it was a dependency.

Cheers,
Adam

Any fix here? I have the same issue.

Try following upgrade-steps:

  • source plone
  • 4 latest
  • 5 latest

In latest Versions are often some fixes merged/include...

Plone Foundation Code of Conduct