Skip Navigation

[Resolved] Maps missing and marker popup empty after updating the plugin

This support ticket is created 3 years, 3 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.

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

Last updated by Shane 3 years, 3 months ago.

Assisted by: Shane.

Author
Posts
#2155471

I am trying to:
update the plugin

Link to a page where the issue can be seen:

hidden link
every condo single page (about the neighbourhood section)
hidden link

I expected to see:
the map with markers

Instead, I got:
blank section or when the map loads, the popup in the marker is empty

#2155641

Shane
Supporter

Languages: English (English )

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

Hello,

Thank you for getting in touch.

Would you mind allowing me to have admin access to the site so that I can take a deeper look at this one for you ?

I've enabled the private fields for your next response.

Thanks,
Shane

#2155741

Shane
Supporter

Languages: English (English )

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

Hello,

How was this map added to the page. It would appear that it was added using the template file?

Would it be possible for you to send me a link to the file that contains the file that has the map code?

Thanks,
Shane

#2156415

Hello Shane,

It was added to a template using shortcodes

single page

                    <?php echo do_shortcode('[wpv-map-render map_id="map-4" map_type_control="off" street_view_control="off map_height="100%" map_type="terrain" marker_icon="'.$marker_img.'" general_zoom="17" single_zoom="17"]');?>
                    <?php echo do_shortcode("[wpv-map-marker map_id='map-4' marker_id='pc123' address='".$address."' marker_title='Click to view developer details']".$developer_logo."[/wpv-map-marker]");?>

archive page

                    echo do_shortcode('[wpv-map-marker map_id="map-11" marker_id="cm'.get_the_ID().'" marker_title="This is a marker" address="'.$address.'"]'.$popup_content.'[/wpv-map-marker]');
#2156437

Shane
Supporter

Languages: English (English )

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

Hi Suhela,

Thank you for sharing the code.

What I would recommend doing right now is to check what is being passed into the $developer_logo variable.

If you do a var_dump() on the variable please let me know what is being displayed on the screen. If there is no content in the variable then it is an issue with the content delivery for the marker.

Thanks,
Shane

#2156447

hi Shane,
it should not be the case as it is just an image.

$developer_logo = sprintf('<img src="%s" alt="">', do_shortcode('[types field="developer-logo" size="full" url="true"]'));
#2156449

Shane
Supporter

Languages: English (English )

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

Hi Suhela,

This is why I mention doing a var_dump() on the variable because the marker is displaying correctly. Its just the content of the marker not showing up.

So we need to double check what is being passed. Its usually a good practice to work your way up to find where the fault is which means double checking everything so we can recognise if the fault is with the value in the variable or the declaration of the marker.

Thanks,
Shane

#2156451

Hi Shane,

We recently offloaded our images to a cloud storage, and I noticed that the image field on toolset still uses the local link, is there a way to mass update this? I did a var dump as well as echoing out the variable, and it does not display any think as the link it uses is the local storage and not the cloud storage

#2156453

Hi Shane,

this is the reason why the image is not showing up

#2156473

Shane
Supporter

Languages: English (English )

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

Hi Suhela,

Unfortunately there isn't a way to set our Toolset Types field to get the image url from the cloud storage location unless all the links for the images are updated in the custom field itself.

So you may need to manually go into each post and update the posts with the new URL's for the cloud server that has the images.

Otherwise its assumed that the file is on your server.

Thanks,
Shane

#2157139
Screen Shot 2021-08-30 at 10.34.05 AM.png

Hi Shane,

I tried to switch the url of the image to the one stored on cloud but the map still not showing up.

also can you check the attached image we found on the console?

#2157171

Shane
Supporter

Languages: English (English )

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

Screenshot 2021-09-01 at 9.44.54 AM.png

Hi Suhela,

I checked your console and saw this message.

It would appear that access to the image is being denied. Also your var_dump is printing out
"hidden link"

Which I assume is the image on the cloud server, however if you manually navigate to the image link you will notice that access is denied, so i suspect this denial of access to the image is the root cause of the issue.

Thanks,
Shane

#2158741

Thank you for the support Shane!

#2158785

Hello Shane,

I changed the developer_logo value to a string to test if it will work without the image but the map is still not showing

#2158843

Shane
Supporter

Languages: English (English )

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

Hi Suhela,

Can you resend the credentials for the site ? Also let me know which file contains the code for displaying the map.

I've enabled the private fields once more.

Thanks,
Shane