[Resuelto] View (with Maps) Didn't Work After Import from Module
This support ticket is created hace 5 años. 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.
I am trying to:
Use a view I set up on a different site.
Link to a page where the issue can be seen:
View Working correctly on enlace oculto (at bottom)
Saved to Module, Exported From 'Test.dd' and Imported to 'Dev.dd'
View Not working on enlace oculto
I expected to see:
It's a simple view with some style tweaks...
You search using your address and it shows locations nearest to you on both a map and a list next to the map.
Instead, I got:
It shoes no results. The configuration is identical.
The only message I'm getting is:
"This View has some query filters that are missing from the form. Maybe you have removed them:
Filter by wpcf-dealer-address"
And it's showing up on both dev.dd and test.dd.
Hello. Thank you for contacting the Toolset support.
Have you registered the Google map API key on your dev site?
I need to check why its not working and for that I need access details.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
The main problem is that you are rendering the map after the results are being displayed. In order for this to work you must render the map before the [wpv-layout-meta-html] shortcode.
Also your view i returning no results so no markers will show up either.
I logged in, moved the code, it didn't work. Feel free to try it yourself.
I have created another new view on dev.dd (not transferred ) and gave it identical code and settings in every way to another view that's working on the test.dd site
Please compare the code and the result...
enlace oculto - see all images starting with testdd
view 101 on test
enlace oculto - see all images starting with devdd
view 961 on dev
I believe the problem is in the connection of CPT to the View.
Hi, Shane is out on holiday so I'm checking in on his tickets. I hope that's okay. I will pass you my IP in a private message in a moment, but I wanted to mention one thing that hasn't been discussed yet. If the addresses have not been geocoded by Google on the dev site, the results will not appear in a View with a distance filter. This is because the distance calculations rely on the cached addresses, which may exist in the other site but were not migrated to the dev site. A module does not include the cached addresses, for example. I don't see anything obviously wrong in your code or configurations, so I'm suspicious that this may be the underlying issue.
To test if this is the underlying issue, go to Toolset > Settings > Maps and click "Load cached data". If this is the underlying problem, you will not be able to find an address that corresponds to any post that is missing from the expected View results. This means the addresses have not been geocoded or cached. To resolve this problem, you must trigger a new geocoding event for each address. You can go into wp-admin and edit a post that should appear in the results but does not appear. Scroll down and make sure the location is mapped successfully, then reload the View. That item should appear in the results now.
If you have just a few posts, you can edit each one in the post editor screen to solve the problem. Just opening the post should be enough to trigger a new geocoding event, and that geocoded location will be cached.
If you have more than just a few posts, this process is not practical. In this case, I recommend you temporarily delete the distance filter from the Query Filter panel of this View, and delete the distance filter control from the Search and Pagination panel as well. If you cannot see the Query Filter panel, please scroll to the top right corner and click "Screen Options". You can activate the panel here. You will find one Query Filter that corresponds to the distance filter controls. Delete both the Query Filter and the filter control shortcode. Then reload the view on the front-end of the site. You may need to reload it multiple times to trigger geocoding for all results, as there is a 10 address/second limit imposed by Google.
Once you have reloaded the View a few times and you see most of the results appearing, use the Search and Pagination panel to add a new distance filter to the View. The corresponding Query Filter will be generated automatically. I'll send my IP in just a moment.
...and now I can't get to page two of this ticket to confirm my last message was posted...
Long story short, I followed every step, I could see the results until I re-added the filters, so it almost works, but not quite, you're now whitelisted, please let me know what you find.