plone / plone.app.mosaic

Plone Mosaic main repository
https://pypi.python.org/pypi/plone.app.mosaic
GNU General Public License v2.0
35 stars 26 forks source link

Mosaic editor is not working #524

Closed mck9 closed 1 year ago

mck9 commented 1 year ago

I installed plone.app.mosaic 3.0.1 in a fresh plone 6.0.2 site. After switching the view to "mosaic layout" and clicking "edit" the mosaic editor does not show up.

How to fix/debug the issue?

petschki commented 1 year ago

Is there a JS error in the browser console?

mck9 commented 1 year ago

No, there isn't. I also tried it in firefox and chromium.

petschki commented 1 year ago

I tried it just now, and got this screen. The layout selection modal is far too right but the pattern works in a fresh installation.

Bildschirm­foto 2023-02-28 um 10 57 21
petschki commented 1 year ago

You could debug the issue by checking out mosaic and running the resources with webpack as described here: https://github.com/plone/plone.app.mosaic/blob/master/DEVELOPMENT.rst ... if there's no modal loading on initial editing the page, it's likely a JS resource problem.

mck9 commented 1 year ago

Super strange. I restarted the server, and now it works.

To reproduce the issue: I created a new Plone site and added mosaic. The mosaic editor shows up only after restarting plone.

petschki commented 1 year ago

Sounds like a resource registries caching problem. I remember having this also some time ago with a custom addon with resources. And there was an issue about that: https://github.com/plone/Products.CMFPlone/issues/3505

mauritsvanrees commented 1 year ago

The resource registries caching problem that needs a restart should be solved with the upcoming Plone 6.0.4. See https://github.com/plone/Products.CMFPlone/pull/3771