Plugin is blocking REST API, can’t create any new posts
-
Hello,
All posts on my site are failing to save when updated, and new ones are not saved when created. My web hosts were able to report the following.
I was able to find the cause of the update error. It is related to one of your plugins – woo-gutenberg-products-block (WooCommerce Blocks).
It seems the plugin is blocking REST API and thus the update failed.
Here is the error as well:
===================================================================
When testing the REST API, an unexpected result was returned:
REST API Endpoint: https://www.prettyme.ph/wp-json/wp/v2/types/post?context=edit
REST API Response: (500) Internal Server Error
===================================================================
Once the plugin has been disabled I was able to update the changes on the page.
The plugin is currently enabled as you requested earlier.
I locate Stack trace in the error log which is related.
I will share it with you with advice to contact the plugin support/developers for further insights on what may cause the issue:
===================================================================PHP Fatal error:? Uncaught Error: Call to a member function get() on null in /home/prettyme/public_html/wp-content/themes/legenda-child/functions.php:170\n
Stack trace:
\n#0 /home/prettyme/public_html/wp-includes/class-wp-hook.php(308):
bbloomer_gateway_disable_shipping_326()\n#1
/home/prettyme/public_html/wp-includes/plugin.php(205):
WP_Hook->apply_filters()\n#2
/home/prettyme/public_html/wp-content/plugins/woocommerce/includes/class-wc-payment-gateways.php(163):
apply_filters()\n#3
/home/prettyme/public_html/wp-content/plugins/woo-gutenberg-products-block/src/StoreApi/Schemas/V1/CheckoutSchema.php(122):
WC_Payment_Gateways->get_available_payment_gateways()\n#4
/home/prettyme/public_html/wp-content/plugins/woo-gutenberg-products-block/src/StoreApi/Schemas/V1/AbstractSchema.php(62):
Automattic\WooCommerce\StoreApi\Schemas\V1\CheckoutSchema->get_properties()\n#5 /home/prettyme/public_html/wp-content/plugins/woo-gutenberg-products-block/src/StoreApi/Routes/V1/AbstractRoute.php(85):
Automattic\WooCommerce\StoreApi\Schemas\V1\AbstractSchem in /home/prettyme/public_html/wp-content/themes/legenda-child/functions.php on line 170\n
===================================================================Disabling the plugin allows posts to be saved again.
Thanks
- The topic ‘Plugin is blocking REST API, can’t create any new posts’ is closed to new replies.