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

Gutenberg link in posts table takes you to a blank page #1235

Closed
Kluny opened this issue Jun 17, 2017 · 7 comments · Fixed by #1245
Closed

Gutenberg link in posts table takes you to a blank page #1235

Kluny opened this issue Jun 17, 2017 · 7 comments · Fixed by #1245
Assignees
Labels
[Type] Bug An existing feature does not function as intended

Comments

@Kluny
Copy link
Contributor

Kluny commented Jun 17, 2017

Gutenberg link in posts table takes you to a blank page. Expected: a Gutenberg editor with the text of the old post, which was written using the TinyMCE editor, ready to edit in Gutenberg.

Using WordPress.org install on PHP 7 with WP 4.8.

Screencap of the link I'm talking about:
screen shot 2017-06-18 at 00 16 56

Screencap of the blank page I get after clicking it:
screen shot 2017-06-18 at 00 19 06

@westonruter
Copy link
Member

I notice this sometimes happening as well. Usually it is fixed by doing a hard reload.

@westonruter westonruter added the [Type] Bug An existing feature does not function as intended label Jun 19, 2017
@westonruter
Copy link
Member

In my console I see an error:

Uncaught TypeError: wp.api.collections.Posts is not a constructor

@westonruter
Copy link
Member

The error can be reproduced when loading the screen after doing sessionStorage.clear(). The issue is in the latest-posts block. It's not deferring for the WP-API to be initialized.

@westonruter
Copy link
Member

@Kluny please test #1235

@Kluny
Copy link
Contributor Author

Kluny commented Jun 21, 2017

Tested. Blog is located at http://rocketships.ca and hosted by Webfaction. I uninstalled the plugin, and reinstalled, but there was no difference - I assume this fix hasn't made it into the public download yet.

I removed it and installed using git clone [email protected]:WordPress/gutenberg.git.

After activating the plugin I see these errors on my dashboard at http://rocketships.ca/wp-admin/plugins.php?plugin_status=all&paged=1&s

Warning: filemtime(): stat failed for /home/kluny/webapps/rocketblog/wp-content/plugins/gutenberg/utils/build/index.js in /home/kluny/webapps/rocketblog/wp-content/plugins/gutenberg/lib/client-assets.php on line 51

Warning: filemtime(): stat failed for /home/kluny/webapps/rocketblog/wp-content/plugins/gutenberg/date/build/index.js in /home/kluny/webapps/rocketblog/wp-content/plugins/gutenberg/lib/client-assets.php on line 57

Warning: filemtime(): stat failed for /home/kluny/webapps/rocketblog/wp-content/plugins/gutenberg/i18n/build/index.js in /home/kluny/webapps/rocketblog/wp-content/plugins/gutenberg/lib/client-assets.php on line 89

Warning: filemtime(): stat failed for /home/kluny/webapps/rocketblog/wp-content/plugins/gutenberg/element/build/index.js in /home/kluny/webapps/rocketblog/wp-content/plugins/gutenberg/lib/client-assets.php on line 95

Warning: filemtime(): stat failed for /home/kluny/webapps/rocketblog/wp-content/plugins/gutenberg/components/build/index.js in /home/kluny/webapps/rocketblog/wp-content/plugins/gutenberg/lib/client-assets.php on line 101

Warning: filemtime(): stat failed for /home/kluny/webapps/rocketblog/wp-content/plugins/gutenberg/blocks/build/index.js in /home/kluny/webapps/rocketblog/wp-content/plugins/gutenberg/lib/client-assets.php on line 107

Warning: filemtime(): stat failed for /home/kluny/webapps/rocketblog/wp-content/plugins/gutenberg/components/build/style.css in /home/kluny/webapps/rocketblog/wp-content/plugins/gutenberg/lib/client-assets.php on line 115

Warning: filemtime(): stat failed for /home/kluny/webapps/rocketblog/wp-content/plugins/gutenberg/blocks/build/style.css in /home/kluny/webapps/rocketblog/wp-content/plugins/gutenberg/lib/client-assets.php on line 

The errors are still there after refreshing the page and clearing the cache; they are present on all pages on the site.

@youknowriad
Copy link
Contributor

@Kluny Did you try installing from the plugin repository? see #1220

@Kluny
Copy link
Contributor Author

Kluny commented Jun 21, 2017

@youknowriad, I did try it that way first, but I got the same result (blank page when clicking the link in the posts table). I can try it again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants