missing argument error

fuquam - August 18, 2008 - 22:29
Project:storefinder
Version:5.x-1.1
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

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.

#1

bmagistro - August 19, 2008 - 12:32

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

fuquam - August 19, 2008 - 15:44

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

bmagistro - August 20, 2008 - 02:44

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

#4

fuquam - August 20, 2008 - 22:28

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

bmagistro - August 28, 2008 - 00:42

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

fuquam - August 28, 2008 - 20:43

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

#7

bmagistro - August 28, 2008 - 21:53

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

#8

kmfj1 - November 12, 2008 - 18:54

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

thompsono - August 25, 2009 - 12:29

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

fuquam - August 28, 2009 - 19:36

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

fuquam - August 28, 2009 - 19:54

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

fuquam - August 28, 2009 - 21:40

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

nelslynn - September 9, 2009 - 06:29

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!

 
 

Drupal is a registered trademark of Dries Buytaert.