I've been playing with OpenGuides 0.62 for about a week now, and have a few questions to ask.
[I installed it on a regularly updated Debian testing machine, running Linux 2.6.23.1-bytemark-uml, with Apache2, MySQL 5.0.51a-21-log and Perl 5.10.0 installed. Choice of kernel is not under my control.]
I've activated Google Maps using my API key, and maps duly appear for those nodes with geo-data supplied (lat/long format).
However -- these maps do NOT have any location info. present with the 'pin' shown on the map; nor can I produce any map at all when displaying an index of any category formatted for map display. (The index list appears; plus an empty box to its left. That's all I get.)
Other OpenGuides sites *do* display this information for me correctly for their own nodes (Milton Keynes; Boston, etc.), so I'm assuming something incorrect with my particular server setup.
Any clues, anyone?
Can anyone supply me with a list of all the perl modules I should have available and enabled to implement a full working version of Openguides? Or is there something else I should be looking at to get this working?
Any information gratefully received.
On Wed 21 Jan 2009, Martin Wheeler mwheeler@startext.co.uk wrote:
I've activated Google Maps using my API key, and maps duly appear for those nodes with geo-data supplied (lat/long format).
However -- these maps do NOT have any location info. present with the 'pin' shown on the map; nor can I produce any map at all when displaying an index of any category formatted for map display. (The index list appears; plus an empty box to its left. That's all I get.)
The first problem seems to be sorted now - at least, when I go to http://avalonit.net/cgi-bin/openguides/wiki.cgi?Chalice_Hill_House%2C_BA6_8B... I see a little Google map with a red pin, and clicking on the pin gives me a popup window with "Chalice Hill House, BA6 8BZ" in it.
As for the second problem... have you edited the templates at all? When I check out Firefox's error console for e.g. http://avalonit.net/cgi-bin/openguides/wiki.cgi?action=index;index_type=loca...
I get:
Error: unterminated string literal Source File: http://avalonit.net/cgi-bin/openguides/wiki.cgi?action=index;index_type=loca... Line: 201, Column: 28 Source Code: var htmlString1 = "<a href="?Abundance_BnB,_BA6_9JG">Abundance BnB, BA6 9JG</a> <a style='text-decoration:none;' href="?id=Abundance_BnB,_BA6_9JG;action=edit">(edit)</a><br />Pammy Dini
This might have something to do with it - I don't see the same error on e.g. RGL: http://london.randomness.org.uk/wiki.cgi?action=index;format=map;index_type=...
Other OpenGuides sites *do* display this information for me correctly for their own nodes (Milton Keynes; Boston, etc.), so I'm assuming something incorrect with my particular server setup.
It's worth noting that Milton Keynes and Boston are (as far as I know) both running on hacked versions of old versions of OpenGuides, rather than current code, so they may well behave differently to your install.
Kake
On Fri, 23 Jan 2009, Kake L Pugh wrote:
The first problem seems to be sorted now - at least, when I go to http://avalonit.net/cgi-bin/openguides/wiki.cgi?Chalice_Hill_House%2C_BA6_8B... I see a little Google map with a red pin, and clicking on the pin gives me a popup window with "Chalice Hill House, BA6 8BZ" in it.
I may have unwittingly corrected this when I did a 'dpkg-reconfigure openguides' this afternoon. Anyway, as you say -- it now works.
HOWEVER -- when I click on the 'Powered by Google' logo, the satellite map I get does NOT display the red pin. Is this the default behaviour? (Because if so, it's not much use to those trying to pin down an exact location.) Is there anything I can do to transfer the pin data over to the Google satellite map?
As for the second problem... have you edited the templates at all?
No. But thanks for pointing out the output of your version of Firefox's error console though; that wasn't the problem, but it put me onto where the problem lay. (Dodgy literal strings and invisible rubbish in one of the node files.) Plus the fact that 'Bed and Breakfast' doesn't work as a category -- it has to be 'Bed And Breakfast', in true wiki-style...
(My problem is I was educated in the 1940s and 50s -- and am therefore instinctively literate. Writing in CamelCaps doesn't come easy!)
It's worth noting that Milton Keynes and Boston are (as far as I know) both running on hacked versions of old versions of OpenGuides, rather than current code, so they may well behave differently to your install.
Noted.
My next problem is -- why can't I get the directory re-write to function? I put the directive as given in the documentation into my apache2.conf file (moodified to fit local conditions); Apache2 then finds the re-direction to the correct location, and goes there; but then Perl flatly refuses to run wiki.cgi, and posts a little box saying how do I want to read the file?
Any clues on why this may be so, anyone? I'd really rather re-direct than have a visible cgi-bin location in the address.
Again, thanks in advance for any help.
On Fri, 23 Jan 2009, Kake L Pugh wrote:
As for the second problem... have you edited the templates at all?
I forgot to add here -- my biggest mistake was in cutting and pasting addresses from existing websites into the editing box -- the addresses I copied contained line feeds and hard carriage returns -- this *definitely* prevents Google from displaying a map (although OpenGuides itself seems to handle their presence in the data stream very well).
Just thought I'd better mention this.
On Fri 23 Jan 2009, Martin Wheeler mwheeler@startext.co.uk wrote:
HOWEVER -- when I click on the 'Powered by Google' logo, the satellite map I get does NOT display the red pin. Is this the default behaviour? (Because if so, it's not much use to those trying to pin down an exact location.) Is there anything I can do to transfer the pin data over to the Google satellite map?
I think that's something set by the Google javascript thingy that we include, rather than by the javascript in OpenGuides itself (though I may be wrong). What we have on RGL is a little snippet amending the default display_metadata.tt template:
[% IF wgs84_lat AND wgs84_long %] (<a href="http://maps.google.co.uk/maps?q=[% wgs84_lat %],[% wgs84_long %]&z=15">gmap</a>) (<a href="http://www.multimap.com/maps/#t=l&map=[% wgs84_lat %],[% wgs84_long %]|16|4&loc=GB:[% wgs84_lat %]:[% wgs84_long %]:15">multimap</a>) [% END %]
which includes gmap and multimap links next to the address.
My next problem is -- why can't I get the directory re-write to function?
One of the sysadmins will have to answer this one!
Kake
On Fri, 23 Jan 2009, Martin Wheeler wrote:
My next problem is -- why can't I get the directory re-write to function? I put the directive as given in the documentation into my apache2.conf file (moodified to fit local conditions); Apache2 then finds the re-direction to the correct location, and goes there; but then Perl flatly refuses to run wiki.cgi, and posts a little box saying how do I want to read the file?
Any clues on why this may be so, anyone? I'd really rather re-direct than have a visible cgi-bin location in the address.
Either ExecCGI is not set for that directory or your not using Script Alias.
Want to send me your config snippets. Also point me at which bit of the documentation.
On Fri, 30 Jan 2009, Bob Walker wrote:
Either ExecCGI is not set for that directory or your not using Script Alias.
I'm not using ScriptAlias :(
Maybe someone could change the code snippet I just cut and pasted (without really reading) from :
/usr/share/doc/openguides/examples/apache.openguides.conf
and alter 'Alias' to 'ScriptAlias' ?
Thanks for pointing me the right way, though.
Cheers,
openguides-dev@lists.openguides.org