Skip Navigation

[Escalated to 2nd Tier] Map-block and Fields plus JSON issues.

This support ticket is created 2 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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Karachi (GMT+05:00)

This topic contains 4 replies, has 2 voices.

Last updated by Waqar 2 years, 1 month ago.

Assisted by: Waqar.

Author
Posts
#2488915
Support Toolset.JPG

Site:
hidden link

We intend to display the content of a guide for motorhome tourist. The customer can, after logging in, via a map with markers be linked to posts which contain information about places for overnighting (hosts). The posts are dynamically created. On the post there will among other information be a map.

The starting map with markers for all hosts will hav markers with short information on the host together with an image and a link to the host's post.

Is there any documentation that you are following?
Toolset documentation.

Is there a similar example that we can see?
Ther are some pubished issue which looks similar to our problems.

Attach some error presented by WordPress (also as an image):
1. Concerning problem with Map-block and Fields and Text

When trying to use the Map-block, the following shows up inside the selected area.:

Detta block har stött på ett fel och kan inte förhandsgranskas. (Swedish)
This block has encountered an error and cannot be previewed. (Translated)

2. Warnings when opening a post

When open a post the following warnings can be seen for one or two seconds, before the post is displayed. I had to take a photo to be able to read the text.

Warning array map{} [function array map. Expexted parameter 2 to be an array, null given in /var/www.swedestops.nu/public_html/wp-content/plugin/types/vendor/toolset-common/toolset-forms/classes/class.conditional.php on line 325

Warning array unique{} expects parameter 1 to be array given in /var/www.swedestops.nu/public_html/wp-content/plugin/types/vendor/toolset-common/toolset-forms/classes/class.conditional.php on line 326

Warning array intersect key{} (function array intersect key]. Expected parameter 1 to be array, null given in /var/www.swedestops.nu/public_html/wp-content/plugin/types/vendor/toolset-common/toolset-forms/classes/class.conditional.php on line 327

Warning array unique{} expects parameter 1 to be array, null given in /var/www.swedestops.nu/public_html/wp-content/plugin/types/vendor/toolset-common/toolset-forms/classes/class.conditional.php on line 289

3.
Something went wrong while fetching the dynamic content from the selected source, with message: "Svaret är inget giltigt JSON-svar.". = (“The response is not a valid JSON response”.)

Trygve Bringhammar
ab@swedestops.se

#2489305

Hi Trygve,

Thank you for contacting us and I'd be happy to assist.

The error "The response is not a valid JSON response" is very generic and can be caused by a number of reasons.

To troubleshoot this, I'll suggest the following steps:

1. Please make sure that WordPress, active theme, and plugins are all updated to the latest versions.

2. It would be interesting to test this with all non-Toolset plugins disabled and a default theme like Twenty Twenty-One.

If it's fixed, you can start adding the disabled items, one by one, to narrow down to a possible conflicting one.

3. In case the issue still persists, I'll need to see how this Maps block is set up in the admin area. You're welcome to share temporary admin login details and the exact steps, to see the error.

Note: Your next reply will be private and making a complete backup copy is recommended before sharing the access details.

regards,
Waqar

#2491397

I will come back with more information. Been away during the weekend.
TrygveB

#2491771

Sure, please take your time and let me know how it goes.

Note: I've set your next reply as private again.

#2493421

Thank you for sharing these details.

This issue with the "Fields and Text" block was recently discovered and reported to the concerned team. It relates to some changes introduced in WordPress 6.1:
https://toolset.com/errata/fields-and-text-block-broken-with-wordpress-6-1-update/

I'll keep you updated on this issue through this ticket and for now, you can downgrade to WordPress 6.0.3, as suggested in the errata page.
( you can downgrade WP versions with the plugin https://wordpress.org/plugins/wp-downgrade/ )

I hope this helps and please let me know how it goes.