I have exact the same issue. Just disabling the Plugin helps and the maps are shown again.
Please fix.
Hello AIOS Team, ,
looking at the linked site I have seen there are some Javascript files from the OSM plugin not loaded. I am the developer of WP OSM Plugin – let me know if you need any information.
Br, Michael
Hey everyone,
Can you try adding the code snippet for this filter hook to your child theme’s functions.php file?
https://aioseo.com/docs/aioseo_disable_shortcode_parsing/
Seems that this solution works at my website. But what will happen when I will update the theme? Will functions.php be overwritten during update? If yes, then this is a partial solution… But glad that it works, thanx @arnaudbroes
It will if you don’t use a child theme. In that case you can use the Code Snippets plugin (https://nl.wordpress.org/plugins/code-snippets/) for a permanent solution.
Thanx for response. I’m not going to flood my WordPress site with plugins which are doing only one small job…
Hello @arnaudbroes ,
thank you for your answere. Thank you @pawelriversedge for testing. I still do not understand the problem nor the solution.
It looks like both plugins, AIOS and OSM, worked fine together – then after some update the map was not shown anymore since Javascript files from OSM plugin are not loaded in time.
Was this caused by the update of AIOS or OSM?
Now there is a conflict with these two components and the idea is to involve another component, the theme with some coding. Or even add another plugin.
@pawelriversedge , did you test what happens if you have added this line of code but deactivate the AIOS plugin – this might also lead to a problem.
@arnaudbroes can you explain what this line of code is doing. It sounds like it is not just considering the OSM plugin but all shortcodes. Do you have settings about loading Javascript files?
Br, Michael
@photoweblog the issue is that we parse the shortcodes in the page title and content to autogenerate our title/description. That sometimes causes issues because scripts can be enqueued multiple times, functions can be defined twice, etc.
It’s a feature that AIOSEO has had for years and it causes conflicts occasionally. It has taken us a long time but we’ve finally come up with a solution to address this issue permanently, which we’ll start working on soon and include in a future update.
If you’d like to prevent this issue from your end, you can register your shortcodes using this hook – https://aioseo.com/docs/aioseo_conflicting_shortcodes/
@photoweblog I’ve disablet AIOSEO plugin with that function line added and maps are displayed correctly.