Closed dovy closed 1 year ago
Hey @dovy, Thanks for mentioning this, I will definitely take another look at it! 👍
Thanks, I will take a look at this and get back to you! 🤞
I'm also having this issue also. On my local development machine I can't use the plugin. Is there a workaround or any way to circumvent the exception? For me this is kind of a blocker.
I'm also willing to work on a pull request. Just not sure what makes sense?!
ErrorException thrown with message "register_rest_route was called <strong>incorrectly</strong>. Namespace must not start or end with a slash. Please see <a href="https://wordpress.org/support/article/debugging-in-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 5.4.2.)"
Stacktrace:
#15 ErrorException in /var/www/html/public/wordpress/wp-includes/functions.php:5663
#14 trigger_error in /var/www/html/public/wordpress/wp-includes/functions.php:5663
#13 _doing_it_wrong in /var/www/html/public/wordpress/wp-includes/rest-api.php:51
#12 register_rest_route in /var/www/html/public/wp-content/plugins/gutenberg-forms-local/controllers/entries/entries.summary.controller.php:25
#11 cwp_gf_Entries_Summary_Controller:register_routes in /var/www/html/public/wp-content/plugins/gutenberg-forms-local/controllers/entries/entries.controller.php:54
#10 cwp_gf_Entries_Controller:register_routes in /var/www/html/public/wp-content/plugins/gutenberg-forms-local/controllers/index.php:16
#9 {closure} in /var/www/html/public/wordpress/wp-includes/class-wp-hook.php:303
#8 WP_Hook:apply_filters in /var/www/html/public/wordpress/wp-includes/class-wp-hook.php:327
#7 WP_Hook:do_action in /var/www/html/public/wordpress/wp-includes/plugin.php:470
#6 do_action in /var/www/html/public/wordpress/wp-includes/rest-api.php:537
#5 rest_get_server in /var/www/html/public/wordpress/wp-includes/rest-api.php:495
#4 rest_do_request in /var/www/html/public/wordpress/wp-includes/rest-api.php:2832
#3 rest_preload_api_request in [internal]:0
#2 array_reduce in /var/www/html/public/wordpress/wp-includes/block-editor.php:444
#1 block_editor_rest_api_preload in /var/www/html/public/wordpress/wp-admin/edit-form-blocks.php:68
#0 require in /var/www/html/public/wordpress/wp-admin/post.php:187
EDIT: When I set WP_DEBUG=false
. I can progress.
;)