Skip Navigation

[Resolved] Maps not working

This support ticket is created 6 years, 7 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 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 8 replies, has 2 voices.

Last updated by Shane 6 years, 6 months ago.

Assisted by: Shane.

Author
Posts
#905157

I have toolset maps installed. It has always worked fine. If you go here, hidden link you should see a map on that page from it, but instead just see the code. Ever since I installed smartslider3, this happens. If I deactive smartslider, it works. Can you see what in smartslider is causing problems with your map software? It's like the maps program stops working completely (address field doesn't even show up as an option to add as a custom field) when smartslider is activated.

I have enclosed file here. hidden link

I played around with settings in smartslider but changing all different things didn't work.

Thanks!

#905196

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Mike,

Thank you for contacting our support forum.

From what I can see there isn't any errors being generated on the page. Could you open a ticket with the smartslider forum as well since its their plugin that is causing the conflict here.

Thanks,
Shane

#905214

There are no errors. It's that the plugin becomes deactivated even though it really is activated in the wordpress plugins area. It is your plugin that is breaking and not smartslider, so I don't think they can help. Did you try installing it and using toolset maps to confirm it works on your end?

#905234

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Mike,

Usually its advised to open a ticket on both forums for a plugin in conflict so that both teams can have a look at the issues.

I'm currently having a look at this for you.

Thanks,
Shane

#905243

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Mike,

Actually this plugin completely breaks our Toolset Maps.

I'm escalating this for further debugging by our team.

Thanks,
Shane

#906837

Looking for an update on this matter?

#907048

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Mike,

The most I have right now is that this issue has been raised with our developers but with many issues arising from our recent update on monday they are a bit loaded at the moment trying provide patches to the plugins .

Thanks,
Shane

#917510

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Mike,

Sorry for the delay but our team is asking if you could provide us with another copy of the plugin ? The smartslider plugin so that they can have a look?

Thanks,
Shane

#920342

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Mike,

Our development team has looked at this and this was the response.

The problem with this plugin is not just with Toolset Maps, but with any plugin who has a hook into the plugis_loaded action with a priority higher than 20. Maps has one with priority 25, used to initialize the plugin once we check we have the right dependencies for it (Types, Views, or Forms).

This plugin has the following code:

add_action('plugins_loaded', 'smart_slider_3_pro_plugins_loaded', 20);
function smart_slider_3_pro_plugins_loaded() {
        //...
        remove_action('plugins_loaded', 'smart_slider_3_pro_plugins_loaded', 20);
        //...
}

In other words:
It hooks a callback to an action.
It fires the callback.
The callback unhooks the callback from the action.

This is problematic. The action plugins_loaded is executed just once. Removing the callback that you are just executing will do nothing as it is never going to be fired again.
By removing an action, you tell WordPress to remove the calback from its internal cache for hooks and callbacks. After removing it, it needs to reindex that cache. One side effect of that cache re-generation is that the current index of the callbacks being fird for the current hook is lost.
This means that any callback added to this plugins_loaded action with a priority higher than 20 will never get fired.

In other words, this is not a problem we can solve.

What was recommended is that you contact the plugin developer and explain this issue to them so that they can resolve it there.

Thanks,
Shane