Skip to content
This repository has been archived by the owner on Oct 10, 2022. It is now read-only.

is this works on WordPress 5.0 ? #101

Open
aramvr opened this issue Oct 25, 2018 · 6 comments
Open

is this works on WordPress 5.0 ? #101

aramvr opened this issue Oct 25, 2018 · 6 comments

Comments

@aramvr
Copy link

aramvr commented Oct 25, 2018

Hi. is this supports or will support in wordpress 5.0. I installed beta version and it shows an error when I enabling the plugin.

Here is the Error message:
TypeError: Cannot read property 'addQueryArgs' of undefined at http://localhost/wordpress/wp-includes/js/dist/core-data.min.js?ver=5.0-beta1-43823:1:4253 at http://localhost/wordpress/wp-includes/js/dist/core-data.min.js?ver=5.0-beta1-43823:1:3837 at http://localhost/wordpress/wp-includes/js/dist/core-data.min.js?ver=5.0-beta1-43823:1:4527 at http://localhost/wordpress/wp-includes/js/dist/core-data.min.js?ver=5.0-beta1-43823:1:4758 at d (http://localhost/wordpress/wp-includes/js/dist/core-data.min.js?ver=5.0-beta1-43823:1:15222) at ee (http://localhost/wordpress/wp-includes/js/dist/core-data.min.js?ver=5.0-beta1-43823:1:11295) at http://localhost/wordpress/wp-includes/js/dist/data.min.js?ver=5.0-beta1-43823:1:6285 at http://localhost/wordpress/wp-includes/js/dist/data.min.js?ver=5.0-beta1-43823:1:7296 at http://localhost/wordpress/wp-includes/js/dist/editor.min.js?ver=5.0-beta1-43823:55:185727 at n (http://localhost/wordpress/wp-includes/js/dist/data.min.js?ver=5.0-beta1-43823:1:14950)

@philbraun
Copy link

I also got this error, but only when I tried to create or edit a page. Posts seem to work fine.

@dennyf
Copy link

dennyf commented Oct 29, 2018

I got the same error too (on both pages and posts), then I enabled SCRIPT_DEBUG in wp-config.php so I can try to trace the issue and the error did not happen anymore:
define('SCRIPT_DEBUG', true);
Any thoughts?

@philbraun
Copy link

SCRIPT_DEBUG does the trick.
Create-Guten-Block seems to not like something if script_debug doesn't load a zillion unminified/unconcatenated JS files before wp-polyfill-ecmascript.min.js runs.

@philbraun
Copy link

Besides activating SCRIPT_DEBUG there's another way to get Create-Guten-Block to work in WordPress 5 Beta 1: install and activate the Gutenberg plugin (additionally to the built-in Gutenberg).
Seems silly and redundant, but it works for me.
Maybe this bug is related in some way to the Metaboxes missing WP5 bug?

@ahmadawais
Copy link
Owner

I always suggest people to use create-guten-block with the development version of Gutenberg. I am away due to the launch of my VSCode.pro course and not sure why this is happening. It'll take a couple weeks before I can get to it. I'd love to get a PR for this.

@richtabor would love your help on this.

@bfintal
Copy link

bfintal commented Oct 30, 2018

I got the error too. May be related to WordPress/gutenberg#11069

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants