Active
Project:
Mapping kit
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
6 Nov 2008 at 14:29 UTC
Updated:
10 Nov 2008 at 15:55 UTC
upon enabling the modules in modules admin, when I hit save, this is the message, it appears to be at this URL:
admin/build/modules/list/confirm
Fatal error: Call to a member function debug() on a non-object in /var/www/sparcs/sites/all/modules/mappingkit/geodata/google_projection.inc.php on line 13
Hitting the back button puts me back in the modules admin with all mods checked and everything looks ok.
in this case, I am using Drupal 6.6 on PGsql 8.3.x and postgis 1.3.x on Ubuntu 8.10, apache2 and php 5.6
D6 contrib mods in use: Admin role, Views, mapping kit.
I will attempt to recreate the error on similar stack in windows later today.
Comments
Comment #1
spydmobile commentedrefreshing the admin modules page after this shows that the enabling of the modules did not actually occur.....
trying one at a time in this order,mapping kit, map client, map context, openlayers map client, geodata
this looks simply like this part was successfull the first time.
next was wms, then map layer, then left it at that. seems to be installed.
Comment #2
spydmobile commentedThe geo data module is coming up as : Geodata Geodata requires a PostgreSQL database.
It has a PostGIS-Postgresql back end, so it is becuase I am using 8.3 instead of 8.2? I cant downgrade BTW since much of the rest of my system is based on 8.3 and I know many drupal authors have had issues with changes in 8.3.x
Comment #3
jpulles commentedThe fatal error on the non-object is due to a logger object which is not defined. This happens when geodata is installed as the first module of the mappingkit and will be solved.
Your #1 comment is correct; you can ignore the warnings because the table and folder were already created.
Comment #2 surprises me. The postgresql version does not make a difference and you don't need to downgrade. The message 'Geodata requires a PostgreSQL database' is only given when the scheme part of the db_url is NOT equal to 'pgsql'. You may want to check the geodata_requirements function in the geodata.install file to check what happens in your case.
Comment #4
spydmobile commentedHi John,
My comment #2 stems from a series of problems created by a recent change to the postgres SQL language between 8.2 and 8.3 it has been a problem for many module authors and even core authors, I only meant that it might be related to that, and it seems that it is not. Since you actively develop on postgres (thank you so much for your contributions, your work will be the foundation of mine) this is not I belive a valid concern for mapping kit.
my big problem right now is the geodata module which continues to report
Geodata requires a PostgreSQL databaseeven thought it is configured. May I point out that you provide us an example beneath the geodata database configuration field that reads :what is name? is name pgsql?
Should we use quotes or not?
is it one entry per line?
you reference the line in the settings.php but this is not the same format.
the format in settings is:
$db_url = 'pgsql://username:password@localhost/databasename'Your excellent documentation on http://aardbodem.nl seems only weak in one area, geodata.
I have a postgis database called geodata on a machine called localhost, owned by a user called mapper with a password of mapper.
i have tried all of these with no success:
I still cannot seem to solve the issue.
Comment #5
spydmobile commentedHi John,
I am on the dev version now and same problem.
Franco
Comment #6
jpulles commentedHi Franco,
The dev and 1.1 versions are not much different. The non-dev version only do not change too frequently.
True that the geodata is not well documented but I sofar didn't have much indication of it being used by others than myself; I expect that the main use is the map viewer part.
For geodata you can enter one database per line, without quotes:
A line as
geodata=mapper:mapper@localhost/geodatawill be equivalent to a settings.php definition as
$db_url['geodata'] = 'pgsq://mapper:mapper@localhost/geodata';Apparently, this doesn't work as it should be, so you could for the time being try to put the 2nd line in the settings file and change the default $db_url into $db_url['default'].
John.
Comment #7
jpulles commentedChanged title.
Comment #8
jpulles commentedI submitted a possible fix to cvs for the dev release. Problem seems to be that if parse_url gets a database url with line feeds in it, it doesn't correctly parse the database url. Adding a trim() function solves this.
Comment #9
spydmobile commentedThanks John,
we are back to work monday and will try it out and report back then.
franco
Comment #10
spydmobile commentedHi John,
I installed the latest Dev release, ran the update script. and set my config to:
geodata=mapper:mapper@localhost/geodataand still get the error.
I also tried the more intricate suggestion of:
put the line:
$db_url['geodata'] = 'pgsq://mapper:mapper@localhost/geodata';in the settings file and change the default $db_url into $db_url['default'].
This is good workaround, but the config mechanism is still broken.
For now though I can at least use the geodata module!