• Resolved Phil

    (@philsbury)


    Hi,

    I’ve seen this issue raised before (and here) but it doesn’t seem to have an obvious resolution. So I thought i’d give all the info I have to try and get this resolved;

    Here is the full error from the block editor:

    TypeError: ze.models.Page is not a constructor
    at https://example.com/wp-content/plugins/wordpress-seo/js/dist/post-edit.js?ver=87b6b39d7d8d53e76500:25:8241
    at fire (https://example.com/wp-includes/js/jquery/jquery.js?ver=3.7.1:3223:31)
    at Object.add [as done] (https://example.com/wp-includes/js/jquery/jquery.js?ver=3.7.1:3282:7)
    at https://example.com/wp-content/plugins/wordpress-seo/js/dist/post-edit.js?ver=87b6b39d7d8d53e76500:25:8230
    at https://example.com/wp-includes/js/dist/data.js?ver=3b2ba2c4c2cb0f74c344:3113:45
    at Array.forEach (<anonymous>)
    at notifyListeners (https://example.com/wp-includes/js/dist/data.js?ver=3b2ba2c4c2cb0f74c344:3113:25)
    at Object.emit (https://example.com/wp-includes/js/dist/data.js?ver=3b2ba2c4c2cb0f74c344:3137:7)
    at globalListener (https://example.com/wp-includes/js/dist/data.js?ver=3b2ba2c4c2cb0f74c344:3205:13)
    at https://example.com/wp-includes/js/dist/data.js?ver=3b2ba2c4c2cb0f74c344:3374:9

    Site info:

    PHP: 8.2 – though not really relevant as a JS issue, but also happens on other versions
    Theme: Twenty Nineteen – also any other theme I have tested
    Plugins Active: Yoast 24.0
    Browsers: Chrome, Safari Firefox – all latest at the time of writing
    Core: 6.7.1

    Also tested using troubleshooting mode in health check with the issue still present – similarly on local and production environments.

    Steps to reproduce

    • Create a hierarchical post like a page or any custom post type that allows a parent/child relationship
    • Assign a page parent to the new page
    • Publish
    • Head to All pages
    • Edit a different page
    • Go back to all pages
    • Edit the new page that has a parent

    The last 4 steps aren’t happening every time with a brand new page for me, but anything older then it is – but clearing site data/using a private browser does seem to trigger the error every time

    You should get the following popup:

    Looking in the source, I can see this call ze.loadPromise.done((()=>{new ze.models.Page({id:n}).fetch().then… but as the javascript has been obfuscated, I can’t give much more insight

    Hope this can get resolved

    Thanks
    Phil

    • This topic was modified 1 year, 3 months ago by Phil.
    • This topic was modified 1 year, 3 months ago by Phil.
    • This topic was modified 1 year, 3 months ago by Phil.
Viewing 1 replies (of 1 total)
  • Plugin Support Maybellyne

    (@maybellyne)

    Hello @philsbury

    Thanks for reaching out. We’re actively using the bug tracking on our GitHub repository, so your best next step would be to create a new issue for our developers here.

    You will need an account to create a new issue. Please provide as much information about the issue, including the URL to this conversation. This guide will help you submit a complete report which may result in a faster resolution.

Viewing 1 replies (of 1 total)

The topic ‘TypeError: ze.models.Page is not a constructor’ is closed to new replies.