Skip Navigation

[Resolved] Google maps issue and Convert Cache error

This thread is resolved. Here is a description of the problem and solution.

Problem:

The issue here is that the user was getting the error "Progress: An unknown error has happened." when trying to convert maps to the new caching system.

Solution:

This issue can be resolved by running the following sql query.

alter table wp_postmeta convert to character set utf8mb4 collate utf8mb4_unicode_520_ci;
This support ticket is created 5 years, 4 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.69 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)

Tagged: 

This topic contains 22 replies, has 3 voices.

Last updated by Valeriia 5 years, 3 months ago.

Assisted by: Shane.

Author
Posts
#1310425

Well, I would not have added a loop there if there was no need for that, but in some of the posts I planned 2 and more markers, actually.

Anyway, I did what you said and removed the loop:

if ($location[0] != '') {
	echo '<p class="location">' . $location[0] . '</p>';
	echo '<div class="single_map">';
	echo do_shortcode('[wpv-map-render map_id="map-'.$post_id.'" map_width="100%" map_height="400px" single_zoom="'.$map_zoom.'"][/wpv-map-render]');
	echo do_shortcode("[wpv-map-marker map_id='map-".$post_id."' marker_id='marker-1' marker_title='".$location[0]."' address='".$location[0]."'] ".$location[0]." [/wpv-map-marker]");
	echo '</div>';
}

The first line that echoes the $location[0] as a text works fine. But as a part of the shortcode it displays a different location.

Maybe you should check the shortcode with your developers.

Thanks.

#1310543

Hi, Shane is out on public holiday today but will return tomorrow to continue assisting you.

#1311455

Shane
Supporter

Languages: English (English )

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

Hi Valeriia,

Can I grab a copy of this site to run some further tests?

This way i can make a report to our development team about this should I be able to replicate this.

I really don't see a reason for the location to be different even when the variable is giving the correct location?

THanks,
Shane

#1311477

Sure.

You can do it yourself or you want me to prepare it for you?

#1311537

Shane
Supporter

Languages: English (English )

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

Hi Valeriia,

What you can do is to restore the original code with the foreach and I'll just grab the package from your site.

Please let me know when I can do this.

Thanks,
Shane

#1311583

It's done. Thank you.

#1312493

Shane
Supporter

Languages: English (English )

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

Hi Valeriia,

So i'm not able to see the map on my end when I restore the duplicator on my localhost. However changing the theme resolved this for me.

While debugging this I thought of an alternative that might work for you. Why not use a content template to display the map section.

Then load that content template into your page template using the php code for this.
https://toolset.com/documentation/programmer-reference/views-api/#render_view_template

This might end up resolving the issue for you.

Please let me know what you think of this since I'm having some difficulties debugging your instance and i'm not able to replicate on a fresh install.

Thanks,
Shane

#1313811

Hello Shane,

Thanks for trying.

I will try what you suggested.

Have a nice day.