Arrg... I must be missing something, been working on this several days and ready to tear my hair out. Currently using V. 6, and have tried both the Beta and Dev versions.

I seem to be able to set everything up except the "Address Search". I have made sure I have views that work, have tried the default views, and also cloned and modified views for the Country and State to display nodes by Country and Nodes by state. I have tested the views and they come up as valid paths that work, however, whenever I try to set the Listings/Address Search configurations, it comes up with:

"The selected state / province view does not appear to have a url
•The selected country view does not appear to have a url"

Need some help here. In the location search configuration, I have tried unticking and ticking showing both the state and country in the url, doesn't seem to make a difference.

One possible area, in the zipcode database, I only uploaded data for California, but everything else seems to be working.

I also noticed that when I install the module, I get two listings for the Job Application module... one for the beta, one for the Dev... not sure why. I have tried several clean installs, a new database, etc... any ideas? Help...

..

Comments

Tander1’s picture

Still hoping someone has an idea about what the problem is... probably something simple, but really stuck here...

Tander1’s picture

Assigned: Tander1 » Unassigned
NewZeal’s picture

The module will be very actively developed over the next month or so, so I hope that whatever is causing the problem can be ironed out. As a precaution, delete the entire module and all submodules before uploadeding beta6.

dfasoro’s picture

Status: Active » Fixed

Edit the File listing\listing_address\listing_address.admin.inc in the listing module folder:

In the function listing_address_settings_validate($form, $form_state)

Change the contents to

  //  We store the urls for the selected views
  $view = views_get_view(@$form_state['values']['listing_address_province_view']);
  
  if ($view->display['page_1']->display_options['path'] == '') form_set_error('listing_address_province_view', t('The selected state / province view does not appear to have a url'));
  
  $view = views_get_view(@$form_state['values']['listing_address_country_view']);
  if ($view->display['page_1']->display_options['path'] == '') form_set_error('listing_address_country_view', t('The selected country view does not appear to have a url'));

The problem was trying to use variable_get to get the form values at at time at which it has not been set into the variables array.

Status: Fixed » Closed (fixed)

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

NewZeal’s picture

Fix noted. Thanks.