Skip Navigation

[Resolved] View (with Maps) Didn't Work After Import from Module

This support ticket is created 5 years 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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 16 replies, has 4 voices.

Last updated by Christian Cox 5 years ago.

Assisted by: Christian Cox.

Author
Posts
#1388355
test.dd working.JPG
dev.dd not working.JPG
view content template.JPG
search and pagination.JPG
output editor.JPG
loop editor.JPG
custom search settings and message.JPG
content selection and ordering.JPG

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 hidden link (at bottom)
Saved to Module, Exported From 'Test.dd' and Imported to 'Dev.dd'
View Not working on hidden link

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.

#1388423
example of dealer address field on CPT.JPG
dealers list backend dev.dd.JPG

Also, just to show there are Dealers set up in the list, see images attached.

#1388569

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

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.

#1388965

Is there anyway I can be assigned to someone closer to my own time zone? No offense intended, I'm just wanting to have a quicker back-and-forth.

#1389543

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Yes, sure. I'm passing this ticket to Shane who works closely with your timezone.

#1389567

Shane
Supporter

Languages: English (English )

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

Hi Shawn,

Minesh had assigned this ticket to me.

I tried to look at the website but i'm getting an error 403 forbidden.

Could you check on this and let me know ? Perhaps my IP is being blocked.

Thanks,
Shane

#1389853

Thank you Minesh.

Yes, Shane, we'll need to white list your IP address. Please send that so we can add it.

#1390029

Done. You should be good to go.

#1390037

Shane
Supporter

Languages: English (English )

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

Hi Shawn,

I'm able to see the site now.

However the log in credentials dont work. Could you check on them and let me know?

Thanks,
Shane

#1390043

I just tested, copy pasting the info from previous post.

I was able to login from an incognito window at wp-admin using the info...
"username" / "password"
...without issue.

If you want me to provide a new account, I can set that up, just set my next message to private.

#1390103

Shane
Supporter

Languages: English (English )

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

Hi Shawn,

I found the issue.

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.

Thanks,
Shane

#1391631
testdd-testlocator-07.JPG
testdd-testlocator-10.JPG
testdd-testlocator-09.JPG
testdd-testlocator-08.JPG
testdd-testlocator-06.JPG
testdd-testlocator-05.JPG
testdd-testlocator-04.JPG
testdd-testlocator-03.JPG
testdd-testlocator-02.JPG
testdd-testlocator-01b.JPG
testdd-testlocator-01a.JPG
devdd-testlocator-10.JPG
devdd-testlocator-09.JPG
devdd-testlocator-08.JPG
devdd-testlocator-07.JPG
devdd-testlocator-06.JPG
devdd-testlocator-05.JPG
devdd-testlocator-04.JPG
devdd-testlocator-03.JPG
devdd-testlocator-02.JPG
devdd-testlocator-01.JPG

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...

hidden link - see all images starting with testdd
view 101 on test

hidden link - see all images starting with devdd
view 961 on dev

I believe the problem is in the connection of CPT to the View.

#1393273

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.

#1393601

...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.

#1393623

And just to be clear, I should be looking on dev., not test., correct?