I have installed:
- cb_1_1_0-unzip1st.zip
- com_google_maps.zip
- plug_geocoder-1.2.zip
When the user clicks "Update" when they edit their profile. This error message appears:
Warning: Missing argument 1 for geocoder::geocodeAddress(), called in \xampp\htdocs\mywork\subdomains\isoracing\iso3.4\website\components\com_comprofiler\plugin\user\plug_geocoder\geocoder.php on line 67 and defined in \xampp\htdocs\mywork\subdomains\isoracing\iso3.4\website\administrator\components\com_google_maps\google_maps.class.php on line 370
DB function failed with error number 1146
Table 'isomk3v4_actual.jos__conf' doesn't exist SQL=SELECT APIKey, geocodeProvider FROM jos__conf WHERE id = 1
I obtained and entered the API key in the "com_google_maps" everything works fine - UNTIL
The clue to solving the problem was in the query "FROM jos__conf WHERE id = 1"
The table wasn't specified.
I changed line 67 in geocoder.php from:
$loc->geocodeAddress();
to:
$loc->geocodeAddress("com_google_maps");
The error message disappears and the user can now update their details successfully.
Was I correct to make the amendment? It does mean the table name for the google maps is now hardcoded into the code, but does this matter?
Post edited by: Diesel9a1, at: 2008/11/28 20:58