Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot read property 'getCollectionByRoute' of undefined #10867

Closed
bodiam opened this Issue Aug 31, 2018 · 8 comments

Comments

Projects
None yet
9 participants
@bodiam
Copy link

bodiam commented Aug 31, 2018

  • [x ] I've read and understood the contribution guidelines.
  • [x ] I've searched for any related issues and avoided creating a duplicate issue.

Please give us a description of what happened.

I'm trying to edit my post in Wordpress with Yoast installed, and I get the message:
TypeError: Cannot read property 'getCollectionByRoute' of undefined

Please describe what you expected to happen and why.

I expect to be able to edit my post, which is no longer possible.

How can we reproduce this behavior?

  1. Create new post
  2. Crash

Technical info

  • WordPress version: 4.9.8
  • Yoast SEO version: 8.1
  • If relevant, which editor is affected (or editors):
  • Classic Editor
  • [x ] Gutenberg
  • Classic Editor plugin
  • Which browser is affected (or browsers):
  • IE11
  • Edge
  • [x ] Chrome
  • Firefox
  • Safari
TypeError: Cannot read property 'getCollectionByRoute' of undefined
    at t.value (https://www.usbctoday.com/wp-content/plugins/wordpress-seo/js/dist/wp-seo-post-scraper-810.min.js?ver=8.1:1:145344)
    at t.value (https://www.usbctoday.com/wp-content/plugins/wordpress-seo/js/dist/wp-seo-post-scraper-810.min.js?ver=8.1:1:144551)
    at jc (https://www.usbctoday.com/wp-content/plugins/gutenberg/vendor/react-dom.min.82e21c65.js:134:123)
    at gc (https://www.usbctoday.com/wp-content/plugins/gutenberg/vendor/react-dom.min.82e21c65.js:127:223)
    at vb (https://www.usbctoday.com/wp-content/plugins/gutenberg/vendor/react-dom.min.82e21c65.js:126:230)
    at ub (https://www.usbctoday.com/wp-content/plugins/gutenberg/vendor/react-dom.min.82e21c65.js:126:65)
    at zd (https://www.usbctoday.com/wp-content/plugins/gutenberg/vendor/react-dom.min.82e21c65.js:124:449)
    at ra (https://www.usbctoday.com/wp-content/plugins/gutenberg/vendor/react-dom.min.82e21c65.js:123:319)
    at Object.enqueueSetState (https://www.usbctoday.com/wp-content/plugins/gutenberg/vendor/react-dom.min.82e21c65.js:189:231)
    at r.q.setState (https://www.usbctoday.com/wp-content/plugins/gutenberg/vendor/react.min.ab6b06d4.js:18:441)
@GlennMartin1

This comment has been minimized.

Copy link

GlennMartin1 commented Aug 31, 2018

When will a bug-fix be released for this?

@Xyfi

This comment has been minimized.

Copy link
Member

Xyfi commented Aug 31, 2018

@GlennMartin1 We do not have an ETA at this moment.

@Xyfi

This comment has been minimized.

Copy link
Member

Xyfi commented Aug 31, 2018

@GlennMartin1 @bodiam

Temporary workaround: Install the following file as a plugin.

enqueue-wp-api.zip

IMPORTANT
This is a possible workaround until we have released the fix. Please keep in mind that we always advise you to create a staging environment if you are testing workarounds that are not yet released.

If you're not familiar with a staging site, this article will help you get started: http://www.wpbeginner.com/wp-tutorials/how-to-create-staging-environment-for-a-wordpress-site/

@leninnair

This comment has been minimized.

Copy link

leninnair commented Sep 1, 2018

I am getting the same issue. WP 4.9.8, Yoast 8.1, theme: Hestia. The post editor (Gutenberg or the TinyMCE) don't show up on Chrome & Chrome Incognito. It works on Firefox, but interface looks kinda weird with no icons.

@rmarcano

This comment has been minimized.

Copy link

rmarcano commented Sep 1, 2018

Please inform the customer of conversation # 421101 when this conversation has been closed.

@iamazik

This comment has been minimized.

Copy link
Member

iamazik commented Sep 1, 2018

Please inform the customer of conversation # 421139 when this conversation has been closed.

@iamazik

This comment has been minimized.

Copy link
Member

iamazik commented Sep 1, 2018

Please inform the customer of conversation # 421155 when this conversation has been closed.

@iamazik

This comment has been minimized.

Copy link
Member

iamazik commented Sep 2, 2018

Please inform the customer of conversation # 421298 when this conversation has been closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.