The module Smart IP Views Bridge have a file README.txt with a guide/example for use Smart IP into views and cretate a filters with Location module in step 9 "In Configure filter criterion: Location: Country, scroll down at the bottom of the Country list box and select Smart IP: visitor's country code. And select Is one of from Operator radio selection (click Apply button)."

step 9

I receipt this error "No valid values found on filter: Location: Country"

error

I use those modules:

  • Location 7.x-3.7
  • Location CCK 7.x-3.7
  • Device Geolocation 7.x-2.42
  • Smart IP 7.x-2.42
  • Smart IP Views Bridge 7.x-2.42
  • Views 7.x-3.13
CommentFileSizeAuthor
#10 error.png31.59 KBhimangshu.dutta19
error.jpg135.66 KBLAguilar
step_9.jpg289.22 KBLAguilar
README.txt2.81 KBLAguilar

Comments

LAguilar created an issue. See original summary.

birdsnbees’s picture

Status: Active » Fixed

Please see this instructions instead:
https://www.webfoobar.com/node/41

LAguilar’s picture

But only I need filtering the content based in the location of the current user, I really need those modules like Openlayers, Geofield and those others?

In my content type I have a field of type location, (I prefer to use the countries field through Countries module Countries), the content creator selects the country or countries where you can show content, and at the view want to filter content based on the location (country) of the visitor user and show only the content created for that specific country.

arpeggio’s picture

@LAguilar yes, "OpenLayers Proximity" module wont install alone because it requires those modules.

Bishupz1’s picture

I have tested out as many things as i can to get Smart IP working. From modules to modifying scripts in within the modules to load the SESSION data as default for the latitude & longitude. at the core of it, I don't think the Smart IP is loading any data..? As far as I can see.

I have tried this tutorial numerous times with no success, all fresh installs of Drupal 7.
https://www.webfoobar.com/node/41

I have tried to print the information, and nothing displays. One guess at this point, typing this out, is that the data is retrieved and stored within Geolocations (the HTML5) geo data. I am not sure if the EU laws have afflicted the US with having to have an opt-in for geo-data, but it seems the only way that I am able to have the prepacked "your location" blocks show up, without Smart IP spamming errors down the top of the test site. Again, I do think this is because there is no... data...

I did have the question of, do wamp installations maybe have some aspect where this module won't work, and remote Apache servers this problem would not exist..? I guess that is my next step..

{there are modules that need to be added to that list for this setup to work, but I found them rather easily, along with the settings for various aspects the "Address Tokens" was a must to pass the "Address" information for geocoding.}

I have not tried the "Locations" module yet, I don't know if that works any different with its scripting, in relation to smart ip and maybe SESSION data.

Please let me know if you have found any other information, tutorials, or solutions (lol - it would probably be posted, but never hurts to ask)

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

arpeggio’s picture

@Bishupz1, I have just tried the tutorial at https://www.webfoobar.com/node/41 and it works.

If you are testing in locahhost, your localhost IP 127.0.0.1 wont return geolocation data as this IP is used by each computer to refer to itself, so it cannot be located. In this case, you may want to enable the "Admin debug" and enter an IP address to spoof (eg. 8.8.8.8) in "IP address to use for testing" field.

NoSeb’s picture

Hi,

I have exactly the same issue as LAguilar's.
The City Location filter works perfectly but the Country Location doesn't.

I'm sure that the Open Layers Proximity solution works but it's not what I'm looking for. I want to sort content on user's country and not user's X miles area.

Is there something I'm missing in my view and/or content type configuration ?

arpeggio’s picture

Hi NoSeb,

I want to sort content on user's country and not user's X miles area.

What is your idea on this "sort content on user's country"? Usually we sort content by ranking, distance, alphabetically, etc. Only that I can think of "sort content on user's country" is by alphabetical order, is that what you are looking for?

himangshu.dutta19’s picture

StatusFileSize
new31.59 KB

Hi,

I want to filter my product catalog based on country, but i am receiving the same error mentioned above.

Can someone help me out fix this issue?

himangshu.dutta19’s picture

Hi,

I want to filter my product catalog based on country, but i am receiving the same error mentioned above.

Can someone help me out fix this issue?

Only local images are allowed.

himangshu.dutta19’s picture

Component: User interface » Code
sohal khatwani’s picture

Did this issue get solved? It shows closed fixed but still does not seem to work and this error still shows.