Skip Navigation

[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, 10 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.

Our next available supporter will start replying to tickets in about 0.56 hours from now. Thank you for your understanding.

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 18 replies, has 2 voices.

Last updated by hugoC-3 6 years, 10 months ago.

Assisted by: Shane.

Author
Posts
#603431

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.

This is the view for the veranderaars page:

[wpv-layout-start]
	[wpv-items-found]
[wpv-map-render map_id="map-2" map_height="600px" single_zoom="12"]
	<!-- wpv-loop-start -->
	<div class="wpv-loop js-wpv-loop">
		<wpv-loop>
          [wpv-map-marker map_id="map-2" marker_id="marker-2" marker_title="[wpv-post-title]" marker_field="wpcf-adres" marker_icon="<em><u>hidden link</u></em>"][wpv-post-link][/wpv-map-marker]
		</wpv-loop>
	</div>
	<!-- wpv-loop-end -->
	[/wpv-items-found]
	[wpv-no-items-found]
		<strong>[wpml-string context="wpv-views"]No items found[/wpml-string]</strong>
	[/wpv-no-items-found]
[wpv-layout-end]
#603466

Shane
Supporter

Languages: English (English )

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

Hi Hugo,

Thank you for contacting our support forum.

I took a look at this for you and the map on this page is displaying normally.
hidden link

It doesn't seems that there is a map on this page tho
hidden link

Were you able to resolve the issue?

Please let me know.
Thanks,
Shane

#603475

Are you sure you watched the right version?
Please add 185.26.126.21 hidden link to your hosts file, otherwise you'll see the old site.

In hidden link there should be a map at the bottom of the page.

#603523

Shane
Supporter

Languages: English (English )

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

Screen Shot 2018-01-04 at 1.24.56 PM.png

Hi Hugo,

Yes i've added the information to the host files.

On this page here hidden link its working fine as well.
See Screenshot

#603698
Schermafdruk 2018-01-05 09.34.46.png

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?

#603853

Sorry, marked as resolved but i still need help!

#603913

Shane
Supporter

Languages: English (English )

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

Hi Hugo,

I'm not seeing the issue at all here.

However would you mind providing me with admin access to the site so that I can check on the setup ?

The private fields will be enabled for your next response.

Thanks,
Shane

#604407

Shane
Supporter

Languages: English (English )

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

Hi Hugo,

I tried the credentials but they dont seem to work.

Please note that I have added the host information to my host file.

Thanks,
Shane

#604418

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.

Can you please try again?
Thanks

#604453

Shane
Supporter

Languages: English (English )

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

Hi Hugo,

I was able to get the credentials to work now.

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 ?

Please let me know.

Thanks,
Shane

#604717

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.

#605147

Shane
Supporter

Languages: English (English )

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

Hi Hugo,

Would you mind if I took a duplicator package from the website so that I can test locally?

I also have php 7 installed so I'll see if I can replicate the issue there.

Please let me know.
Thanks,
Shane

#605171

Please, go ahead!

#605190

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.

#605249

Shane
Supporter

Languages: English (English )

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

Hi Hugo,

It might be some issue in creating the child theme but i'm creating the duplicator package to investigate.

Thanks,
Shane