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

AJAX post but only got a 500 error - 5.0 Beta1 #11236

Closed
foreverpinetree opened this issue Oct 30, 2018 · 2 comments
Closed

AJAX post but only got a 500 error - 5.0 Beta1 #11236

foreverpinetree opened this issue Oct 30, 2018 · 2 comments
Labels
[Type] Help Request Help with setup, implementation, or "How do I?" questions.

Comments

@foreverpinetree
Copy link

foreverpinetree commented Oct 30, 2018

Just tesed with wp5.0-Beta1. My theme includes a page builder, it disables Gutenberg (use 'use_block_editor_for_post' filter) for some specified pages. It needs to connect the backend via AJAX when editing these pages, but everytime I opened the builder and only got a 500 error.

Error logs:
POST http://localhost/xampp/test/wp5.0/wp-admin/admin-ajax.php 500 (Internal Server Error)

[30-Oct-2018 08:57:54 UTC] PHP Fatal error: Uncaught Error: Call to a member function is_block_editor() on null in D:\xampp\htdocs\xampp\test\wp5.0\wp-includes\script-loader.php:2194 Stack trace: #0 D:\xampp\htdocs\xampp\test\wp5.0\wp-includes\class-wp-hook.php(286): wp_common_block_scripts_and_styles('') #1 D:\xampp\htdocs\xampp\test\wp5.0\wp-includes\class-wp-hook.php(310): WP_Hook->apply_filters('', Array) #2 D:\xampp\htdocs\xampp\test\wp5.0\wp-includes\plugin.php(453): WP_Hook->do_action(Array) #3 D:\xampp\htdocs\xampp\test\wp5.0\wp-includes\script-loader.php(2040): do_action('wp_enqueue_scri...') #4 D:\xampp\htdocs\xampp\test\wp5.0\wp-includes\class-wp-hook.php(286): wp_enqueue_scripts('') #5 D:\xampp\htdocs\xampp\test\wp5.0\wp-includes\class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array) #6 D:\xampp\htdocs\xampp\test\wp5.0\wp-includes\plugin.php(453): WP_Hook->do_action(Array) #7 D:\xampp\htdocs\xampp\test\wp5.0\wp-includes\general-template.php(2614): do_action('wp_head')

@foreverpinetree foreverpinetree changed the title AJAX post but only got a 500 error. AJAX post but only got a 500 error - 5.0 bata1 Oct 30, 2018
@foreverpinetree foreverpinetree changed the title AJAX post but only got a 500 error - 5.0 bata1 AJAX post but only got a 500 error - 5.0 Beta1 Oct 30, 2018
@earnjam earnjam added the [Type] Help Request Help with setup, implementation, or "How do I?" questions. label Oct 30, 2018
@designsimply
Copy link
Member

Noting that if this problem happens only with WP 5.0 betas and not with the standalone Gutenberg plugin, then we will want to report the issue at https://core.trac.wordpress.org/

Before we do that, would it be possible for you to provide some better testing steps including some basic code snippets that show the problem a bit better?

@designsimply designsimply added the [Status] Needs More Info Follow-up required in order to be actionable. label Nov 6, 2018
@foreverpinetree
Copy link
Author

I will report to there and provide more info, thank you. I close this issue.

@designsimply designsimply removed the [Status] Needs More Info Follow-up required in order to be actionable. label Mar 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Help Request Help with setup, implementation, or "How do I?" questions.
Projects
None yet
Development

No branches or pull requests

3 participants