django-cms / django-cms

The easy-to-use and developer-friendly enterprise CMS powered by Django
http://www.django-cms.org
BSD 3-Clause "New" or "Revised" License
9.99k stars 3.06k forks source link

[BUG] Console error in browser when opening PageContentAdmin #7879

Closed jrief closed 1 month ago

jrief commented 1 month ago

Description

I'm experiencing this error in the console of the browser:

Screenshot 2024-04-18 at 16 08 30

Note that I bundled the client code using gulp bundle --debug to obtain more verbose information.

Steps to reproduce

Expected behaviour

No error in the browser console.

Actual behaviour

Browser reports: window.CMS.Widgets._pageSmartLinkWidgets is undefined.

Side note:

All the fields of that page's editor are readonly. If I open the editor of a page which is not published, then the editor opens with all the fields, but editable. Then this error does not occur.

Additional information (CMS/Python/Django versions)

Branch develop-4 current HEAD (92a1086decd082f1645e73bf6c8ab4d501b0e194)

Do you want to help fix this issue?

Since I'm not aware of the purpose of this, I probably can't fix this myself.

fsbraun commented 1 month ago

@jrief Can you check if #7880 solves your issue?