[Resolved] [Views] Maps disappeared after migrating site
This thread is resolved. Here is a description of the problem and solution.
Problem:
The issue here is that the user had migrated his site but soon after his google maps disappeared.
Solution:
This can be caused by one of 2 issues or both.
The first is that the url of the website might have changed and if you are using a restricted google maps api key then you will need to change update the key to be used with the new url.
The second is that there could be some code in the theme or other plugins that is causing a conflict or throwing a Javascript error due to the new server environment. In this case it was the user's child theme that was causing the issue.
This support ticket is created 6 years, 11 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.
Link to a page where the issue can be seen: hidden link hidden link
Please add 185.26.126.21 hidden link to your hosts file.
We created a cpt called veranderaars with biographic info a.o. location. After moving the site to a new server the location map works properly in the backend but no longer in the frontend.
The problem persists.
When examining the code of /veranderaars I noticed that the code for the map is there, but still the page remains blank. I tested in Firefox and Chrome but no result.
What could be wrong?
I checked again and I am able to login with these credentials.
When I login into veranderalles.be though I am first redirected to hidden link; don't know why this happens. Maybe domain mapping is badly configured, I'll check that out.
When I change the url to veranderalles.be/wp-admin I can log in as expected.
However the issue that is causing the map to not show up is here.
Uncaught TypeError: b(...).not(...).filter(...).mediaelementplayer is not a function
at HTMLDocument.a (wp-mediaelement.min.js?ver=4.9.1:1)
at j (jquery.min.js:2)
at Object.fireWith [as resolveWith] (jquery.min.js:2)
at Function.ready (jquery.min.js:2)
at HTMLDocument.I (jquery.min.js:2)
If you have any custom player or anything relating to that error there then this is why the map s not showing up. Are you calling the wordpress media player anywhere in your theme ?
I checked the theme code and I don't find any reference to "mediaelement".
The theme is a customized version of the Dyad theme and works well on the actual site, with older versions of the Toolset plugins.
On the new site (php7) the standard Dyad theme works well, but the customized theme (www.veranderalles.be theme) doesn't.
I tested a bit further and found out that the original Dyad theme displays the map but my custom theme doesn't. Not sure where the problem is, because it used to work on the actual site.