Hi,
I was using the maps widget from the widget bundle for a few months without any problems. Because of an issue (not related to this) I had to restore a database backup and afterwards I don’t seem to get the maps widget working as it should any more. I’m not sure if the database issue has anything to do with it, but I noticed the problem after.
After fiddeling around a bit and regenerating the API key I got to the point where I do get the map setup correct when I add the widget in a widget area. I can set the map center and adjust the different settings without any problems.
But I was also using the widget in pages and for some reason they didn’t show up anymore. They were still ‘visible’ in de page source, but with an error “InvalidValueError: in property address: not a string” and not showing anything on the actual page. And for some reason the address i put in the map center field isn’t saved: evertime I reopen the widget the address is gone and i didn’t get any map visible on the page.
After removing the widgets from the pages and adding them again, I do get a map visible on my page, but set to a default map center (Cape Town or New York) because no map center is set. When I open the widget I see there is so map center set, but for some reason I’m still unable to give that field a value? If I type something in the text box nothing seems to happen. I don’t get the list with the suggestions (which I do get when the widget is placed in the widget area), and nothing I type is saved.
I can adjust the other settings of the widget on the page without any problems, exept the things that have to do with actual locations (map center, markers). I don’t see any errors in the console or anything so I’m running out of ideas. Because the widget is working as it should in the widget area I’m asuming the API settings are correct.
When typing in the map center field with the widget in a widget area (working):
When typing in the map center filed with the widget on a page (not working?):
Hi Rupie
Sorry to hear about the hassle. Please, could you export a Page Builder page that is presenting this problem? On the page go to LayoutsImport/ExportDownload Layout. You could use https://wetransfer.com to send us the layout, any email address can be inputted. Once uploaded, please, send the link and we’ll take a look.
There is a Widgets Bundle release going out this evening. Please, could you update the Widgets Bundle once it appears at DashboardUpdates and then check the problem for any improvements after the update? Thanks :)
I managed to ‘fix’ the issue by exporting the layout, creating a new page and then importing the layout. After importing the layout I could insert an address as map center as expected. I threw away the old pages and the exported layouts. I will check if the pages are still in the trash, if so I will send you the export.
Super, thanks for making a plan. Sorry for the hassle. If the issue isn’t persisting and you’ve completed this problem then it’s all good. But, if you’re still dealing with this problem, please send a layout.
Thanks again for working through this.
Hi,
well, because i have the site up and running it doesn’t really has that much priority. But, being a software developer myself, I am interested to see if it has anything to do with something I did or there was some other problem. I’m not sure if you can troubleshoot anything with the json file, as importing the json into a new paged ‘solved’ my problem, but here it is: https://we.tl/t-Hv5KXP6c1i
The pages are still in thrash, so I was also able to check with the last update (version 1.15.5), but still no luck with the ‘corrupt’ map widgets on pages. The corrupt widgets don’t show at all and adding a new maps widget to the pages does show a map, but I’m still unable to set the map center.
I’ve been trying to retrace my steps to figure out if it was caused by something I did. The thing is, it has worked until last Tuesday. I was editing the pages (a text in a different row of the layout) and at some point I realized the maps weren’t showing anymore. I’m absolutely sure they where working when I started editing the page. It didn’t took long to find errors in the firefox console saying the website wasn’t authorized to use the api key. That made some sense: the API key showing was an api key from my other domain. I originally build the website where i was having the problem in a subdomain of my other website in December (so let say otherwebsite.com/newwebsite). I migrated the website to it’s own domain (newwebsite.com) in February using All-in-One WP Migration. Apparently I never changed the API key, so since February I was using an API key restricted to otherwebsite.com* on newwebsite.com (I guess that should never have worked? But somehow it did until Tuesday?). So on Tuesday I created a new API key for newwebsite.com* and after a few minutes the errors about the authorization disappeared. But I then got the error “InvalidValueError: in property address: not a string”.
I’m wondering if my problem had anything to do with, for example, changing the API key in the bundle settings page or using an API key that, at one point was valid, but isn’t anymore. But there have been more changes on the pages in the last few months that didn’t cause this problem.
What did happen between the other page changes and last Tuesday is that I had to restore my website last Sunday (files and database) because of a rookie mistake with moving another website to the wrong domain, overwriting the entire website that was now causing my problems. A full backup was restored from Direct Admin.
As said, I now have working versions of the pages but I’m feeling slightly apprehensive about editing them again because I don’t know what went wrong.
Thanks for the clear run through of events. To test the new layouts, you could create a new testing page then click LayoutsClone: Pages and clone one of the working pages. You could then edit the layout to check if it’s breaking in the way it did originally. This should be quite a quick test, hopefully, the issue doesn’t repeat.