Skip Navigation

[Resolved] Toolset blocks Invalid JSON and Internal Server Error

This support ticket is created 3 years, 2 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 16 replies, has 2 voices.

Last updated by Minesh 3 years, 2 months ago.

Assisted by: Minesh.

Author
Posts
#2386151

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.

#2386285

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

After checking the debug information you shared with us, I found that you are using outdated Toolset plugin version.

Could you please first update ALL Toolset plugins to latest version. Please check the following Doc:
=> https://toolset.com/faq/how-to-install-and-register-toolset/#automatic-installation-once-you-have-types-plugin-installed

Once you update all Toolset plugins, please try to check and test if you see the same issue again.

#2386289

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

#2386359

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Where do you see the error you mentioned:

Error: [] cURL error 28: Connection timed out after 10001 milliseconds

Do you see the above error on installer debug log?

Also, what if you try to build another page/content template using blocks, do you see the same invalid JSON error?

#2387027

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.

#2387031

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Does it stop you to build the site using blocks?

Can you please check if you are using latest cURL version with your hosting as well as do you see the same issue on different server?

#2387037

It stops me from saving the new blocks. The block is created but the update button is greyed out. Curl version is 7.68.0

#2387041

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

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.

Can you please send me 1:1 copy of your site. Please follow the instructions given with the following Doc:
- https://toolset.com/faq/provide-supporters-copy-site/

I have set the next reply to private which means only you and I have access to it.

#2387085

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Could you please tell me on what page/post you experience the issue - Can you please share URL of that?

#2387089

Yes the issue is on the Archive page All_Items_Catalogue for the Item Custom Post Type

#2387119

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

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.

#2387125
Capture.JPG

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

#2387135

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.

#2387181

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I see with the screenshot you shared there is a 500 Internal server error:
- https://toolset.com/wp-content/uploads/2022/06/2387125-Capture_17.jpg

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.

#2388813

I have access to the server which is on Webmin. All this happened after I changed to https.