Skip Navigation

[Resuelto] Toolset Maps Presenting White Page with Errors in a Toolset Single Post Layout

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

Problem:

The issue here is that Toolset Maps was creating errors on the customer's site.

Solution:

In this user's case they were using an outdated version of our maps plugin and the recommendation was to update to the latest available version.

This support ticket is created hace 6 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)

Este tema contiene 8 respuestas, tiene 2 mensajes.

Última actualización por zacharyL hace 6 años, 4 meses.

Asistido por: Shane.

Autor
Mensajes
#949321

Let me preface this by stating that I had this working just fine up until this point. No changes were made to the site prior to updating Divi and Toolset. So I know the functionality I had worked, but now it simply doesn't.

So upon hearing from the client that their site "was not working", I reviewed and noticed that the single post pages were displaying nothing. Just a white screen. The inspector's console did not display any relevant warnings or error messages, so I pulled an error log from my server, which presented me with this:

[17-Jul-2018 18:15:04 UTC] PHP Fatal error:  Call to a member function get() on null in /www/wp-content/plugins/toolset-maps/includes/toolset-maps-views.class.php on line 1399

I found that after disabling the Toolset Maps plugin, the page would load just fine. Commenting out the maps shortcode allows the page to load as well. Here's the markup:

[wpv-map-render map_id="unit-map" map_height="600px" marker_icon="/wp-content/uploads/2018/02/location.png"][/wpv-map-render]      
[wpv-map-marker map_id="unit-map" marker_id="unit-marker" marker_title="[wpv-post-title output='sanitize' id='$property'] [wpv-post-taxonomy type='unit-style' format='name']s" marker_field="wpcf-property-address" id="$property"][/wpv-map-marker]

I did notice, however that with the plugin enabled, it loads just fine elsewhere on the site on the homepage, which leads me to believe that it may have something to do with the shortcode referring to dynamic values found in the custom post type layout, versus the static values utilized on the homepage's map.

Just a reminder, this is a live production site. We do have active backups, but we can't afford to have any major outages.

#949348

Shane
Supporter

Idiomas: Inglés (English )

Zona horaria: America/Jamaica (GMT-05:00)

Hi Zachary,

Thank you for contacting our support forum.

Normally when we get fatal errors I would recommend that you manually download a fresh copy of the plugin from our site below and upload it using FTP.
https://toolset.com/account/downloads/

Please try this and let me know if the issue still remains.

Thanks,
Shane

#949350

That didn't make a difference.

#950337

Shane
Supporter

Idiomas: Inglés (English )

Zona horaria: America/Jamaica (GMT-05:00)

Hi Zachary,

Noticed you provided a duplicator package however I need a link to a page where I can see the issue.

Could you send this so that I can check on the package locally?

Thanks,
Shane

#950504

Oh, oops. Here: enlace oculto

I currently have the Maps shortcode commented out, so in order to see the page crash, you'll need to edit the layout and remove the comment tags.

Because it's a live production site, I needed to do this in order to retain site functionality, even when one component is not operating properly.

#951589

Shane
Supporter

Idiomas: Inglés (English )

Zona horaria: America/Jamaica (GMT-05:00)

Hi Zachary,

Since this is a live site I would like to create a clone of it so that I can test it locally.

I wouldn't want to crash your live site. With your permission can I create the clone?

Thanks,
Shane

#953657

Yeah, you can go right ahead.

#953899

Shane
Supporter

Idiomas: Inglés (English )

Zona horaria: America/Jamaica (GMT-05:00)

Hi Zachary,

Could you update to the latest versions of our Toolset plugins and try again as I tested this on the clone and it works fine.

Thanks,
Shane

#956577

I'm not sure what happened, but it is indeed working now. Thanks for the help.