I am working with SP 2019 on prem. Noticing one of the most weird issues. I have SharePoint server publishing and SharePoint Server publishing infrastructure enabled. Seeing below when editing a classic page, no content/script editor web parts available

enter image description here

See below configuration for web app level, enter image description here

I also disabled SP Server publishing feature and reactivated it, still no luck. Under same web application, if I create a brand new site collection, I see all classic web parts, script/content editor everything, no issues. So I think its site collection specific issue.

if any one experienced this before, please shed some light, appreciate the help in advance.

enter image description here


What’s the permission of the user who want to add the web parts?

Go to site settings->site permissions->check permissions, check what’s the permission level that the user assigned. And check if the “Add and Customize Pages” permission is ticked.

  • I am the site collection admin and site owner as well, see screenshot added in question description please – mdevm Jun 25 '19 at 9:46

Well, I actually figured out what's wrong. Upon viewing the page source code, the variable g_wsaSiteTemplate had value assigned as: 'SITEPAGEPUBLISHING#0 which means site collection was created using the Communication Site (publishing) and there is no way it will support script or content editor web parts there and many other web parts like page viewer, content search.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.