• Resolved sgarcy

    (@sgarcy)


    Hi there!

    I think I’ve come across a bug that exists in at least version 16.7 and 16.9 resulting in a WSOD and stopping my page from loading. Upon attempting to edit a page I receive the following:

    post-edit-1690.js:1 Uncaught (in promise) TypeError: o.models.Page is not a constructor
        at post-edit-1690.js:1
        at c (jquery.min.js?ver=3.6.0:2)
        at Object.add [as done] (jquery.min.js?ver=3.6.0:2)
        at post-edit-1690.js:1
        at data.min.js?ver=7bfa3a673439e85e459d5ec92d30fdda:2
        at Array.forEach (<anonymous>)
        at c (data.min.js?ver=7bfa3a673439e85e459d5ec92d30fdda:2)
        at data.min.js?ver=7bfa3a673439e85e459d5ec92d30fdda:2
        at b (data.min.js?ver=7bfa3a673439e85e459d5ec92d30fdda:2)
        at redux-routine.min.js?ver=7f20dbcdb5d5645c977063e356eb95cf:2

    This appears to be thrown when Yoast is looking for the Parent Page Title of a nested page (which doesn’t exist in this case).

    I’m not entirely sure how to share a link because the issue appears when trying to edit the page.

    Please let me know if this is a known issue or if there’s more information I can provide!

    Thanks,
    Sean

Viewing 7 replies - 1 through 7 (of 7 total)
  • Often, we see problems occur in combination with another plugin or theme. The fastest way to rule out any conflict, is to deactivate all non-Yoast plugins and switch to a standard theme like Twenty Twenty.

    Please test this on your development or staging site, if you have one. If not, we recommend using the Health Check & Troubleshooting plugin. This plugin has a troubleshooting mode, which does not affect normal visitors to your site.

    If you’re unfamiliar with checking for conflicts, we’d like to point you to a step-by-step guide that will walk you through the process: How to check for plugin conflicts

    Thread Starter sgarcy

    (@sgarcy)

    Hi @mazedulislamkhan thank you for the reply.

    I’ll review your recommendations and reply back here once I’ve done some more troubleshooting.

    Thanks

    @sgarcy You’re welcome, and please let us know the results once completed.

    Thread Starter sgarcy

    (@sgarcy)

    Hi @mazedulislamkhan

    I’ve gone through your troubleshooting steps and the issue stems from the Yoast plugin. In troubleshooting mode of the Health Check & Troubleshooting plugin, I’ve disabled all plugins on my site and reverted to the standard Twenty Twenty theme. With everything disabled, the issue does not occur. As soon as I enable Yoast SEO and Yoast SEO Premium, the issue occurs and throws the same error:

    post-edit-1690.js:1 Uncaught (in promise) TypeError: o.models.Page is not a constructor
        at post-edit-1690.js:1
        at c (jquery.min.js?ver=3.6.0:2)
        at Object.add [as done] (jquery.min.js?ver=3.6.0:2)
        at post-edit-1690.js:1
        at data.min.js?ver=7bfa3a673439e85e459d5ec92d30fdda:2
        at Array.forEach (<anonymous>)
        at c (data.min.js?ver=7bfa3a673439e85e459d5ec92d30fdda:2)
        at data.min.js?ver=7bfa3a673439e85e459d5ec92d30fdda:2
        at b (data.min.js?ver=7bfa3a673439e85e459d5ec92d30fdda:2)
        at redux-routine.min.js?ver=7f20dbcdb5d5645c977063e356eb95cf:2

    Can you tell me what my next steps are to get this looked into?

    Thanks,
    Sean

    Do you have an active Yoast SEO Premium subscription? If yes, please do feel free to shoot us an email directly at support@yoast.com with the link to the current thread so that we could deep dive into the issue further for you.

    Thread Starter sgarcy

    (@sgarcy)

    Thanks @mazedulislamkhan will do!

    Plugin Support Michael Tiña

    (@mikes41720)

    Hi @sgarcy

    Since you have an active Yoast SEO Premium subscription, we’ll be closing this thread. Please do feel free to send us an email directly and we’ll try our best to address your concern from there.

    Thank you!

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Javascript error’ is closed to new replies.