Sauter la navigation

[Résolu] Toolset Maps Presenting White Page with Errors in a Toolset Single Post Layout

Ce fil est résolu. Voici une description du problème et la solution proposée.

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 Il y a 6 années et 5 mois. 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.

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)

Ce sujet contient 8 réponses, a 2 voix.

Dernière mise à jour par zacharyL Il y a 6 années et 5 mois.

Assisté par: Shane.

Auteur
Publications
#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

Les langues: Anglais (English )

Fuseau horaire: 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

Les langues: Anglais (English )

Fuseau horaire: 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: lien caché

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

Les langues: Anglais (English )

Fuseau horaire: 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

Les langues: Anglais (English )

Fuseau horaire: 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.