Skip Navigation

[Resuelto] Google maps issue and Convert Cache error

Este hilo está resuelto. Aquí tiene una descripción del problema y la solución.

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 hace 5 años, 4 meses. 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.

Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.

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)

Etiquetado: 

Este tema contiene 22 respuestas, tiene 3 mensajes.

Última actualización por Valeriia hace 5 años, 3 meses.

Asistido por: Shane.

Autor
Mensajes
#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

Idiomas: Inglés (English )

Zona horaria: 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

Idiomas: Inglés (English )

Zona horaria: 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

Idiomas: Inglés (English )

Zona horaria: 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.