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

Editor sometimes doesn't load #1310

Closed
swissspidy opened this issue Jun 20, 2017 · 1 comment
Closed

Editor sometimes doesn't load #1310

swissspidy opened this issue Jun 20, 2017 · 1 comment

Comments

@swissspidy
Copy link
Member

Sometimes when I click on "Gutenberg" in the post list table to edit a post, the app throws a JavaScript error. Probably 1 out of 4 times. The rest of the time it works fine.

The error in the console is as follows:

[Error] React caught an error thrown by one of your components.

value@https://example.com/content/plugins/gutenberg/editor/build/index.js?ver=1497618704:16:40809
value@https://example.com/content/plugins/gutenberg/editor/build/index.js?ver=1497618704:16:40277
h@https://example.com/content/plugins/gutenberg/vendor/react-dom.min.912dc6cf.js?ver=4.8:7:13401
i@https://example.com/content/plugins/gutenberg/vendor/react-dom.min.912dc6cf.js?ver=4.8:7:18475
l@https://example.com/content/plugins/gutenberg/vendor/react-dom.min.912dc6cf.js?ver=4.8:7:19188
s@https://example.com/content/plugins/gutenberg/vendor/react-dom.min.912dc6cf.js?ver=4.8:7:20102
c@https://example.com/content/plugins/gutenberg/vendor/react-dom.min.912dc6cf.js?ver=4.8:7:20197
m@https://example.com/content/plugins/gutenberg/vendor/react-dom.min.912dc6cf.js?ver=4.8:7:20724
g@https://example.com/content/plugins/gutenberg/vendor/react-dom.min.912dc6cf.js?ver=4.8:7:21090
T@https://example.com/content/plugins/gutenberg/vendor/react-dom.min.912dc6cf.js?ver=4.8:7:23524
t@https://example.com/content/plugins/gutenberg/vendor/react-dom.min.912dc6cf.js?ver=4.8:7:26279
updateContainer@https://example.com/content/plugins/gutenberg/vendor/react-dom.min.912dc6cf.js?ver=4.8:7:26617
https://example.com/content/plugins/gutenberg/vendor/react-dom.min.912dc6cf.js?ver=4.8:5:3246
S@https://example.com/content/plugins/gutenberg/vendor/react-dom.min.912dc6cf.js?ver=4.8:7:23922
In@https://example.com/content/plugins/gutenberg/vendor/react-dom.min.912dc6cf.js?ver=4.8:5:3216
c@https://example.com/content/plugins/gutenberg/editor/build/index.js?ver=1497618704:16:14336
global code@https://example.com/wp-admin/admin.php?page=gutenberg&post_id=1484:1755:31
	Tn (react-dom.min.912dc6cf.js:4:26823)
	C (react-dom.min.912dc6cf.js:7:22597)
	i (react-dom.min.912dc6cf.js:7:18502)
	l (react-dom.min.912dc6cf.js:7:19189)
	s (react-dom.min.912dc6cf.js:7:20103)
	d (react-dom.min.912dc6cf.js:7:20286)
	h (react-dom.min.912dc6cf.js:7:20470)
	m (react-dom.min.912dc6cf.js:7:20741)
	g (react-dom.min.912dc6cf.js:7:21091)
	T (react-dom.min.912dc6cf.js:7:23525)
	t (react-dom.min.912dc6cf.js:7:26280)
	updateContainer (react-dom.min.912dc6cf.js:7:26618)
	(anonymous function) (react-dom.min.912dc6cf.js:5:3247)
	S (react-dom.min.912dc6cf.js:7:23923)
	In (react-dom.min.912dc6cf.js:5:3217)
	c (index.js:16:14337)
	Global Code (admin.php:1755)
[Error] TypeError: undefined is not a constructor (evaluating 'new wp.api.collections.PostRevisions({},{parent:t})')
	g (react-dom.min.912dc6cf.js:7:21446)
	T (react-dom.min.912dc6cf.js:7:23525)
	t (react-dom.min.912dc6cf.js:7:26280)
	updateContainer (react-dom.min.912dc6cf.js:7:26618)
	(anonymous function) (react-dom.min.912dc6cf.js:5:3247)
	S (react-dom.min.912dc6cf.js:7:23923)
	In (react-dom.min.912dc6cf.js:5:3217)
	c (index.js:16:14337)
	Global Code (admin.php:1755)

On that line 1755 on admin.php, there's the inline script that starts the editor:

wp.editor.createEditorInstance( 'editor', window._wpGutenbergPost );

Tested using the current version in the plugin directory and Safari 11.

Let me know if I should build from master or anything to further test this.

@aduth
Copy link
Member

aduth commented Jun 20, 2017

Duplicate of #1235, slated to be fixed by #1245

@aduth aduth closed this as completed Jun 20, 2017
youknowriad pushed a commit that referenced this issue Jan 17, 2020
* update ref

* update ref

* update ref

* Merge branch 'develop' into callstack/media-upload-props

* change git submodule url

* update ref
youknowriad pushed a commit that referenced this issue Jan 17, 2020
…rg-mobile into add/autosave-monitor

* 'develop' of https://github.com/wordpress-mobile/gutenberg-mobile: (56 commits)
  Update gutenberg ref
  Update gutenberg ref
  Update gutenberg ref
  Update gutenberg ref
  Add support for group component (#1335)
  Update gutenberg hash
  fix error generating app name on sauce
  Bump eslint-utils from 1.3.1 to 1.4.2
  Update gutenberg ref
  Update release notes
  Update gutenberg ref to rnmobile/master HEAD
  disable paste tests
  MediaUpload and MediaPlaceholder unify props (#1310)
  Update gutenberg ref (#1340)
  Update gutenberg ref
  disable list tests and enable paste tests
  enable list tests
  enable list end tests
  enable block insertion tests
  enable heading tests
  ...

# Conflicts:
#	gutenberg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants