Describe the bug
I can edit a page from the admin page list. But when I am on this page and try to edit it (click on the edit button) I got a blank page.
To Reproduce
Steps to reproduce the behavior:
Uncaught (in promise) TypeError: wp.api.models.Page is not a constructor
/wp-content/plugins/wordpress-seo/js/dist/wp-seo-replacevar-plugin-821.min.js?ver=8.2.1:1
at wp-seo-replacevar-plugin-821.min.js?ver=8.2.1:1
at index.js?ver=1537625906:1
at Array.forEach (
at index.js?ver=1537625906:1
at h (index.js?ver=1537625906:1)
at lodash.min.59550321.js:49
at index.js?ver=1537625906:50
at index.js?ver=1537625906:12
at dispatch (index.js?ver=1537625906:50)
at Array.map (
Expected behavior
Edit the page
Desktop (please complete the following information):
I will test this. May I ask what makes you think it may be a problem with Yoast?
Nevermind 馃檪 that was a dumb question as I missed the 2nd error somehow, which has the plugins/wordpress-seo noted in the path. Sorry about that!
Uncaught (in promise) TypeError: wp.api.models.Page is not a constructor
/wp-content/plugins/wordpress-seo/js/dist/wp-seo-replacevar-plugin-821.min.js?ver=8.2.1:1
I tested using WordPress 4.9.8 and Gutenberg 3.9.0 and Yoast 8.2.1 and by going to WP Admin > Posts and hovering over a title and clicking the "Edit" link that appeared below it and I didn't see a blank page or the wp.api.models.Page is not a constructor error in the console.
Do my testing steps above sound correct?
Is there any content specific to your page that you think I could try adding in a test to try to trigger the problem? For example, one problem in the past was a conflict with categories and the editor would go blank but only if the categories panel was opened.
Do you have any additional plugins installed that you think could be causing interference? Could you list your active plugins?
Just to make sure it has been tried, can you clear your local browser cache as a basic troubleshooting step if you haven't already? It may not help in this case, but might be worth a try.
Since this could turn out to be an issue with a third-party plugin (Yoast), I will note that I may recommend reporting it in their GitHub issues. I tried searching for "Uncaught (in promise) TypeError: wp.api.models.Page is not a constructor " at https://github.com/Yoast/wordpress-seo/issues?utf8=%E2%9C%93&q=Uncaught+%28in+promise%29+TypeError%3A+wp.api.models.Page+is+not+a+constructor just now and didn't find that it was already reported. I also know that 8.3 should be coming out very soon, and if you wanted to try testing the latest release candidate for Yoast SEO you can get 8.3-RC2 at https://github.com/Yoast/wordpress-seo/releases
Are you using WordPress multisite?
3.9.0, Firefox 62: I'm seeing the same JS error intermittently white screen of death on me. Reload has been successful every single time. Seems like some kind of a race condition w/ Yoast SEO vs Gutenberg.
This is happening on single site installs.
Sorry for the late answer.
I am using now Yoast SEO 8.3 and there is no problem anymore.
I am using now Yoast SEO 8.3 and there is no problem anymore.
Firefox 62: I'm also on Yoast SEO (Premium) 8.3, and I still get WSODs. Vote to re-open.
Yoast fixed their compatibility issue, if you are still experiencing a partial WSOD (only the editor area) please check for plugin or theme conflicts, or JavaScript errors.
You may use the Health Check & Troubleshooting plugin to gather this information, once the plugin is installed you can visit it under Dashboard > Health Check, there鈥檚 a tab there for collecting debug information which can be pasted directly in the forums for your convenience. Please provide information such as what you expected to happen when you had an issue, and what the actual outcome was.
If you are experiencing strange behaviors with just Gutenberg active, please look for JavaScript errors, to do so follow step #3 in our JavaScript error debugging guide.
@Clorith not looking much "fixed" to me. Firefox 62, WSOD happening on every other editor load, see below:
16:55:40.587 Unhandled promise rejection TypeError: "wp.api.models.Page is not a constructor"
subscribeToGutenberg /wp-content/plugins/wordpress-seo-premium/js/dist/wp-seo-replacevar-plugin-830.min.js?ver=8.3:1:10511
r /wp-content/plugins/gutenberg/build/data/index.js?ver=1537593544:1:5846
r /wp-content/plugins/gutenberg/build/data/index.js?ver=1537593544:1:5817
h /wp-content/plugins/gutenberg/build/data/index.js?ver=1537593544:1:18725
Hr /wp-content/plugins/gutenberg/vendor/lodash.min.59550321.js:49:109
default /wp-content/plugins/gutenberg/build/editor/index.js?ver=1537593544:50:18569
exports /wp-content/plugins/gutenberg/build/editor/index.js?ver=1537593544:12:30835
dispatch /wp-content/plugins/gutenberg/build/editor/index.js?ver=1537593544:50:68756
default /wp-content/plugins/gutenberg/build/editor/index.js?ver=1537593544:50:18562
exports /wp-content/plugins/gutenberg/build/editor/index.js?ver=1537593544:12:30835
dispatch /wp-content/plugins/gutenberg/build/editor/index.js?ver=1537593544:50:68756
exports /wp-content/plugins/gutenberg/build/editor/index.js?ver=1537593544:12:30883
actions /wp-content/plugins/gutenberg/build/data/index.js?ver=1537593544:1:7821
value /wp-content/plugins/gutenberg/build/data/index.js?ver=1537593544:1:11877
t /wp-content/plugins/gutenberg/build/editor/index.js?ver=1537593544:50:288804
yh /wp-content/plugins/gutenberg/vendor/react-dom.min.82e21c65.js:97:111
lg /wp-content/plugins/gutenberg/vendor/react-dom.min.82e21c65.js:120:88
mg /wp-content/plugins/gutenberg/vendor/react-dom.min.82e21c65.js:120:386
gc /wp-content/plugins/gutenberg/vendor/react-dom.min.82e21c65.js:127:202
vb /wp-content/plugins/gutenberg/vendor/react-dom.min.82e21c65.js:126:230
ub /wp-content/plugins/gutenberg/vendor/react-dom.min.82e21c65.js:126:65
zd /wp-content/plugins/gutenberg/vendor/react-dom.min.82e21c65.js:124:449
ra /wp-content/plugins/gutenberg/vendor/react-dom.min.82e21c65.js:123:319
enqueueSetState /wp-content/plugins/gutenberg/vendor/react-dom.min.82e21c65.js:189:231
setState /wp-content/plugins/gutenberg/vendor/react.min.ab6b06d4.js:18:428
unsubscribe /wp-content/plugins/gutenberg/build/data/index.js?ver=1537593544:1:11035
r /wp-content/plugins/gutenberg/build/data/index.js?ver=1537593544:1:5846
r /wp-content/plugins/gutenberg/build/data/index.js?ver=1537593544:1:5817
h /wp-content/plugins/gutenberg/build/data/index.js?ver=1537593544:1:18725
e /wp-content/plugins/gutenberg/build/data/index.js?ver=1537593544:1:6969
tryCatch /wp-content/plugins/gutenberg/vendor/wp-polyfill-ecmascript.min.2ae96136.js:3:20850
invoke /wp-content/plugins/gutenberg/vendor/wp-polyfill-ecmascript.min.2ae96136.js:3:22166
n /wp-content/plugins/gutenberg/vendor/wp-polyfill-ecmascript.min.2ae96136.js:3:21095
r /wp-content/plugins/gutenberg/build/data/index.js?ver=1537593544:1:14756
c /wp-content/plugins/gutenberg/build/data/index.js?ver=1537593544:1:14958
j /wp-content/plugins/gutenberg/vendor/wp-polyfill-ecmascript.min.2ae96136.js:2:29352
j /wp-content/plugins/gutenberg/vendor/wp-polyfill-ecmascript.min.2ae96136.js:2:29220
f /wp-content/plugins/gutenberg/vendor/wp-polyfill-ecmascript.min.2ae96136.js:1:20743
wp-polyfill-ecmascript.min.2ae96136.js:2:29718
16:55:40.521 TypeError: "wp.api.models.Page is not a constructor"
subscribeToGutenberg /wp-content/plugins/wordpress-seo-premium/js/dist/wp-seo-replacevar-plugin-830.min.js?ver=8.3:1:10511
r /wp-content/plugins/gutenberg/build/data/index.js?ver=1537593544:1:5846
r /wp-content/plugins/gutenberg/build/data/index.js?ver=1537593544:1:5817
h /wp-content/plugins/gutenberg/build/data/index.js?ver=1537593544:1:18725
Hr /wp-content/plugins/gutenberg/vendor/lodash.min.59550321.js:49:109
default /wp-content/plugins/gutenberg/build/editor/index.js?ver=1537593544:50:18569
exports /wp-content/plugins/gutenberg/build/editor/index.js?ver=1537593544:12:30835
dispatch /wp-content/plugins/gutenberg/build/editor/index.js?ver=1537593544:50:68756
default /wp-content/plugins/gutenberg/build/editor/index.js?ver=1537593544:50:18562
exports /wp-content/plugins/gutenberg/build/editor/index.js?ver=1537593544:12:30835
dispatch /wp-content/plugins/gutenberg/build/editor/index.js?ver=1537593544:50:68756
exports /wp-content/plugins/gutenberg/build/editor/index.js?ver=1537593544:12:30883
actions /wp-content/plugins/gutenberg/build/data/index.js?ver=1537593544:1:7821
value /wp-content/plugins/gutenberg/build/data/index.js?ver=1537593544:1:11877
t /wp-content/plugins/gutenberg/build/editor/index.js?ver=1537593544:50:288804
yh /wp-content/plugins/gutenberg/vendor/react-dom.min.82e21c65.js:97:111
lg /wp-content/plugins/gutenberg/vendor/react-dom.min.82e21c65.js:120:88
mg /wp-content/plugins/gutenberg/vendor/react-dom.min.82e21c65.js:120:386
gc /wp-content/plugins/gutenberg/vendor/react-dom.min.82e21c65.js:127:202
vb /wp-content/plugins/gutenberg/vendor/react-dom.min.82e21c65.js:126:230
ub /wp-content/plugins/gutenberg/vendor/react-dom.min.82e21c65.js:126:65
zd /wp-content/plugins/gutenberg/vendor/react-dom.min.82e21c65.js:124:449
ra /wp-content/plugins/gutenberg/vendor/react-dom.min.82e21c65.js:123:319
enqueueSetState /wp-content/plugins/gutenberg/vendor/react-dom.min.82e21c65.js:189:231
setState /wp-content/plugins/gutenberg/vendor/react.min.ab6b06d4.js:18:428
unsubscribe /wp-content/plugins/gutenberg/build/data/index.js?ver=1537593544:1:11035
r /wp-content/plugins/gutenberg/build/data/index.js?ver=1537593544:1:5846
r /wp-content/plugins/gutenberg/build/data/index.js?ver=1537593544:1:5817
h /wp-content/plugins/gutenberg/build/data/index.js?ver=1537593544:1:18725
e /wp-content/plugins/gutenberg/build/data/index.js?ver=1537593544:1:6969
tryCatch /wp-content/plugins/gutenberg/vendor/wp-polyfill-ecmascript.min.2ae96136.js:3:20850
invoke /wp-content/plugins/gutenberg/vendor/wp-polyfill-ecmascript.min.2ae96136.js:3:22166
n /wp-content/plugins/gutenberg/vendor/wp-polyfill-ecmascript.min.2ae96136.js:3:21095
r /wp-content/plugins/gutenberg/build/data/index.js?ver=1537593544:1:14756
c /wp-content/plugins/gutenberg/build/data/index.js?ver=1537593544:1:14958
j /wp-content/plugins/gutenberg/vendor/wp-polyfill-ecmascript.min.2ae96136.js:2:29352
j /wp-content/plugins/gutenberg/vendor/wp-polyfill-ecmascript.min.2ae96136.js:2:29220
f /wp-content/plugins/gutenberg/vendor/wp-polyfill-ecmascript.min.2ae96136.js:1:20743
react-dom.min.82e21c65.js:110:57
@oliviercay mind re-opening this issue for time being? Some diagnosis work is already been done, so doesn't make much sense to repeat it in another issue.
ok
Is this still happening with Yoast SEO 9.0?
Is this still happening with Yoast SEO 9.0?
I will have more insight on this by tomorrow.
@swissspidy still happens on 9.0.2, here's the sentry event traceback:
https://sentry.io/share/issue/88054e26f70840e5bb339ccce66544e7/
@lkraav That link 404s for me unfortunately 馃槙
@swissspidy oops maybe due to merging some of the duplicate events there.
https://sentry.io/share/issue/8dfb7deed9b9435a9bd31dc52ffe5cc7/ should work now.
(Setting up Sentry source maps would be nice, but haven't gotten that far yet.)
@swissspidy I'm still getting this all the time w/ 4.2 + 9.1.
It seems to be some kind of a race condition or a caching thing somewhere. It can whitescreen 10 reloads in a row, then complete loading the editor on 11th try.
Majority of the samples, reload no 2 has managed to complete editor load. Yet, not always. Confusing as hell.
I have been testing on and off with WordPress 4.9.8 Gutenberg 4.5.1 and Yoast SEO 9.2.1 using Firefox 63.0.3 on macOS 10.13.6 and haven't ever run into the problem where I see a whitescreen intermittently. (This doesn't mean it's not plausible, just that I don't know how to break it yet!)
@lkraav have any other plugins in the mix which could be potentially problematic?
I know we've been asking you to re-test a few times already, but is there any chance this is solved for you with the latest versions (currently Gutenberg 4.5.1 and Yoast SEO 9.2.1)? (Checking just in case!)
I'm super crammed w/ some stuff, but if someone could point out a PHP / JS breakpoint line no I could set the debugger to, that would help.
@lkraav
I'm getting the blank page with the same errors in console when editing any page which has been assigned with a parent page.
Editing any page with a parent page assigned gives a blank page.
Reloading displays it correctly without errors.
WordPress version: 5.0 RC3-43967
Yoast SEO version: 9.2.1
Theme: Twenty Seventeen Version: 1.8
No other plugins active.
That's a great finding. I also edit a lot of child pages, of which some have Private parents, with the help of https://github.com/sillybean/inclusive-parents
I'll keep an eye out for this pattern and report back soon.
@lkraav I found this issue filed at wordpress-seo as well and tested and left notes at https://github.com/Yoast/wordpress-seo/issues/11767#issuecomment-444962733
I am going to close this issue in favor of https://github.com/Yoast/wordpress-seo/issues/11767 since the error is only happening with the Yoast SEO plugin and the error reported above ( https://sentry.io/share/issue/8dfb7deed9b9435a9bd31dc52ffe5cc7/ ) also references code from that plugin.
I'll keep an eye out for this pattern and report back soon.
Would you mind reporting any new findings at https://github.com/Yoast/wordpress-seo/issues/11767 ?
Still happening with yoast 14.3 and wordpress 5.4.2
We OTOH haven't seen this problem occur for a long time.
Happening on 14.4.1 with WordPress 5.4.1.
Breaks on GER request here:
VM1011:1 GET https://my.yoast.com/api/downloads/file/morphology-v3?plugin_version=14.4.1&site=https%3A%2F%2Fyoursitehere.com 403 (Forbidden)
@Shubalto13 Issues with my.yoast.com should be reported to Yoast support