Cannot add new block on Widget

Posted in: Newspaper
Post count: 10

Hi,

1. I tried to add a new block to a sidebar — [Newspaper default] by using Widgets, /wp-admin/widgets.php
2. After adding, I clicked Update, and I got this error: There was an error. The response is not a valid JSON response
3. Then I checked on browser debug console, I saw this error: /wp-json/batch/v1?_locale=user 405

I would be grateful if anyone of you would help me to fix the problem.
Thanks.

Post count: 21065

Hello!

Please make sure you have the latest version of the theme and plugins(11.2).
Sometimes, the issue can be from a plugin conflict also, that’s why, please deactivate ALL plugins except tagDiv ones, also if you are using child theme or cache plugin, deactivate them, clear all cache(also from your browser) and try again.
If this problem is not solved after that, then we need to take a look and see what happened there.
Please contact us via email at contact@tagdiv.com and provide the following:
– admin url and credentials
– cPanel url and credentials
– a link to this topic in order to identify you
Our team will take a look!

Thank you!

Post count: 10

Thanks for the reply.

When I load this page:
/wp-admin/widgets.php

I got this 404 error
/wp-json/wp/v2/types/null?context=edit&_locale=user

And I checked for the details, this’s the error response:
{“code”:”rest_type_invalid”,”message”:”Invalid post type.”,”data”:{“status”:404}}

Post count: 10

1. I tried to add a new block to a sidebar — [Newspaper default] by using Widgets, /wp-admin/widgets.php
2. After adding, I clicked Update, and I got this error: There was an error. The response is not a valid JSON response
3. Then I checked on browser debug console, I saw this error: /wp-json/batch/v1?_locale=user 405

Details of the response from browser console:


<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>405 Method Not Allowed</title>
</head><body>
<h1>Method Not Allowed</h1>
<p>The requested method OPTIONS is not allowed for this URL.</p>
</body></html>

Post count: 10

OK, problem solved after enabling Options method in apache

Viewing 5 posts - 1 through 5 (of 5 total)
The forum ‘Newspaper’ is closed to new topics and replies.