I am trying to create a WordPress Archive Loop in a Custom Post type and although I can insert blocks, the Update button is getting greyed out. The following errors are found in the console:
Failed to load Resource: the server responded with a status of 500 (Internal Server Error)
Uncaught (in promise) Invalid_Json - The response is not a valid JSON response
I changed to the default theme and deactivated all the plugins except for toolset but the error still persists. The issue started when I made a copy of my virtual server to a different domain with https.
Furthermore the toolset registration is not showing in the Commercial part but instead the WPML registration is shown.
I did update the Toolset now but the issue persists. When I check the site health I also have this error:
Error: [] cURL error 28: Connection timed out after 10001 milliseconds
The loopback request to your site failed, this means features relying on them are not currently working as expected. Error encountered: (0) cURL error 28: Connection timed out after 10000 milliseconds
The above error is shown on the Site Health. I tried to build another page, and while it allows me to input a few blocks of dynamically generated content from my post type, it stops after a while and starts firing that error.
Can you please send me duplicator copy of your site as well as the page link where you are trying to build the block based page and let me see if I can reproduce the issue using your site on my server.
I installed your site on my local server and I do not see any issue saving the archive and update button works fine.
I checked and I found that there is a PHP notice in error log and that looks like coming from the theme you are using.
[17-Jun-2022 07:14:53 UTC] PHP Notice: Function wp_enqueue_script was called <strong>incorrectly</strong>. Scripts and styles should not be registered or enqueued until the [php]wp_enqueue_scripts
,
admin_enqueue_scripts
, or
login_enqueue_scripts
hooks. This notice was triggered by the
jquery
handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.) in C:\wamp64\www\1\wp-includes\functions.php on line 5831
[/php]
I checked and when I switch the theme to default twentytwentytwo I do not see the above notice logged to the error log file.
What if you try to switch the theme to default twentytwentytwo theme and see if that helps to resolve the issue. You should also try to change the WP_DEBUG to false and save the wp-config.php file and Check if that helps as well.
I have a copy locally as well and its working fine. The problem arised when I created another virtual server with an SSL Certificate. This is the error that is continually cropping up. I tried changing to default theme but it did not work
I realised the issue doesn't happen immediately. After I start adding multiple conditional blocks, the problem suddenly appears, where the update button no longer works and the errors I showed you start firing.
Could you please check with your hosting authority that what is blocking those URLs that shows 500 internal server error as this sounds like server configuration issue or something is blocking from your server.