Project:storefinder
Version:5.x-1.1
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

warning: Missing argument 1 for storefinder_location_form() in /home/sitepath/public_html/modules/storefinder/storefinder_build_ui.inc on line 44.
-------------

line 44 = function storefinder_location_form($dvalues) {

Any ideas? I haven't been able to get this module to work at all. Should it still be in development stage?
Thanks.

Comments

#1

Hello,

I just got the notifications on this, I have this working in two production sites and know a couple others that are using it. I'll look into this issue this week.

#2

Can you send me a link to a working version from a site. I have the module installed but when I go to www.mysite.com/storefinder I get a 404 error like the module doens't exist. I've never had a module do that.
Thanks for the reply.

#3

try going to /locations there is no /storefinder alias, but you can create one.

#4

Thanks for the reply. Well the form shows up. I get an error when using it however.

Fatal error: Cannot instantiate non-existent class: simplexmlelement in /home/breadcom/public_html/modules/storefinder/storefinder_view_ui.inc on line 61

line 61 = $xml = new SimpleXMLElement($gmappage);

Is there something wrong with the Google API?

#5

No, it sounds like the php Module to do xml is not loaded, can you create a file and place the following in it and check for XML

<?php
phpinfo
();
?>

#6

xml
XML Support active
XML Namespace Support active
EXPAT Version expat_1.95.7

#7

Edit it is provided by SimpleXML available in PHP version 5.

#8

I get the following error when trying to view the map:

user warning: Unknown column 'distance' in 'having clause' query: SELECT COUNT(*) FROM storefinder HAVING distance < '25' in C:\_vhosts\drupal-5.12\includes\database.mysql.inc on line 174.

Any thoughts? Thanks - KJ

#9

Hi Guys,

Please see the attached file, it should fix any of the issues above.
Rename with the .inc extension.

Regards

OT

AttachmentSize
storefinder_build_ui.txt 7.09 KB

#10

Seems to be working ok. I need to load locations into the db. Just in time for me to update my site to D6. Any chance this module will go to D6?
Thanks.

#11

Also it would be nice if there was
1. a separate screen for when no results are found instead of showing blank results
2. a link to "return to search form"

#12

Sorry one more thing. Is there a way to either get rid of the 'range' selection or hide the array? I just want the closest location to show up regardless of distance. Thanks.

  $form['range'] = array(
    '#type' => 'select',
    '#title' => t('Distance'),
   '#options' => drupal_map_assoc(array(50000)),
  );

#13

Working with latest Drupal 5 version (5.19), and the revised storefinder_build_ui.inc, but still receive this error:

user warning: Unknown column 'distance' in 'having clause' query: SELECT COUNT(*) FROM storefinder HAVING distance < '25' in C:\htdocs\drupal5\includes\database.mysql.inc on line 174.

Can anyone help me along here?

Thanks!