Passer la navigation

[Résolu] toolset blocks plugin(only) breaks site origin google map display

This support ticket is created Il y a 4 years, 5 months. 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 -

Fuseau horaire du supporter : Asia/Kolkata (GMT+05:30)

Ce sujet contient 6 réponses, a 2 voix.

Dernière mise à jour par Minesh Il y a 4 years, 5 months.

Assisté par: Minesh.

Auteur
Publications
#2251311

I am trying to: keep maps showing under Courts and Prisons - disabling plugins 1 at a time revealed bug in blocks

Link to a page where the issue can be seen:lien caché

I expected to see: I will enable blocks plugin so you can view and edit your self (disable)

Instead, I got: Map will Still display while blocks plugin is active but just on a couple of pages like this (strange): lien caché

#2251573

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Can you please check now: lien caché

The issue was the configuration of the map. I've edit the above post and further edited the "Site Origin Map" setting and set the setting "Static image" and saved the post. As you can see with the following screenshot:
=> lien caché

I can see the map is working as the other post you shared: lien caché

#2251757

Hello,

Please look at the problem. Not as simple as your view. Look a little deeper.
To help you I disabled the toolset blocks plugin so that the site works normally.
I left blocks plugin enabled and then created credentials.
I was hoping you would disable it yourself as I thought I described the problem.
You have created a work around but these maps are interactive.

To help you better understand - now all posts show interactive map as designed.
Plugin is disabled.

They break with toolset. They work now I disabled the blocks plugin.
Why does toolset blocks interfere with theme and break map relationship .. is my question to you?

#2252007

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

I'm not sure whats causing the issue yet when you activate the Toolset Blocks.

However, I see the following JS errors on browser's console when I see the following post:
- lien caché

bootstrap.min.js?ver=5.8.2:6 Uncaught Error: Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 3
    at bootstrap.min.js?ver=5.8.2:6
    at bootstrap.min.js?ver=5.8.2:6

jquery.min.js?ver=3.6.0:2 Uncaught TypeError: $element.tooltip is not a function
    at Object.tooltipInit (scripts.js?ver=5.8.2:1943)
    at HTMLDocument.init (scripts.js?ver=5.8.2:952)

Uncaught TypeError: Cannot read properties of undefined (reading 'Constructor')
    at Object.stickyNavbarPadding (scripts.js?ver=5.8.2:59)
    at init (scripts.js?ver=5.8.2:1953)

I see its coming from the theme "suga".

However, in order to debug this issue further I will require a test site where I can play with it and do further debugging. We do not encourage debugging on live sites.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

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

Or

You can send me duplicator copy of your site.
=> https://toolset.com/faq/provide-supporters-copy-site/

#2254193

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

Could you please check now: lien caché

I've added the following code to "Custom Code" section offered by Toolset:
=> lien caché

add_action( 'wp_enqueue_scripts', 'remove_toolset_maps_scripts', 20 );
  function remove_toolset_maps_scripts() {   
    global $post;
    
    if($post->post_type == "post"){
		wp_dequeue_script( 'views-map-script' );
    	wp_deregister_script( 'views-map-script' );  
    }
}

I can see Map is working now. Can you please confirm.

#2254207

I still need to use toolset maps for displaying results so if that works my issue is resolved but I did not finish yet so I do not know. I hope Toolset Directory maps will not be disabled. I thank you if this fixes issue and I can now use toolset to create database and display results. Thanks?

#2254523

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

Pease note that you should not use both Toolset Maps and Site Origin Map both on the same page otherwise it will have conflict.

You should try to build a page and see if Toolset Maps working as expected.