From mwheeler@startext.co.uk Wed Jan 21 21:44:37 2009 From: Martin Wheeler To: openguides-dev@lists.openguides.org Subject: [OGDev] Perl modules... Date: Wed, 21 Jan 2009 21:44:30 +0000 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8409358728443422936==" --===============8409358728443422936== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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. -- Martin Wheeler - G5FM +44 1458 83-1103 - Glastonbury - BA6 9PH - England mwheeler(a)startext.co.uk http://martinwheeler.net/ http://avalonit.net/ GPG pub key : 01269BEB 6CAD BFFB DB11 653E B1B7 C62B AC93 0ED8 0126 9BEB - Share your knowledge. It's a way of achieving immortality. - --===============8409358728443422936==-- From kake@earth.li Fri Jan 23 18:44:39 2009 From: Kake L Pugh To: openguides-dev@lists.openguides.org Subject: Re: [OGDev] Perl modules... Date: Fri, 23 Jan 2009 18:44:35 +0000 Message-ID: <20090123184435.GB21976@the.earth.li> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5335187632506888049==" --===============5335187632506888049== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On Wed 21 Jan 2009, Martin Wheeler wrote: > I've activated Google Maps using my API key, and maps duly appear for > those nodes with geo-data supplied (lat/long format). >=20 > 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_8= BZ 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.=20 http://avalonit.net/cgi-bin/openguides/wiki.cgi?action=3Dindex;index_type= =3Dlocale;index_value=3DCentral;format=3Dmap I get: Error: unterminated string literal Source File: http://avalonit.net/cgi-bin/openguides/wiki.cgi?action=3Dindex;i= ndex_type=3Dlocale;index_value=3DCentral;format=3Dmap Line: 201, Column: 28 Source Code: var htmlString1 =3D "Abundanc= e BnB, BA6 9JG (edit)
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=3Dindex;format=3Dmap;index_= type=3Dlocale;index_value=3DLeicester%20Square > 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 --===============5335187632506888049==-- From mwheeler@startext.co.uk Fri Jan 23 22:24:03 2009 From: Martin Wheeler To: openguides-dev@lists.openguides.org Subject: Re: [OGDev] Perl modules... Date: Fri, 23 Jan 2009 22:23:58 +0000 Message-ID: In-Reply-To: <20090123184435.GB21976@the.earth.li> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8430359733443237060==" --===============8430359733443237060== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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= _8BZ > 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. --=20 Martin Wheeler - G5FM +44 1458 83-1103 - Glastonbury - BA6 9PH - England mwheeler(a)startext.co.uk http://martinwheeler.net/ http://avalonit.net/ GPG pub key : 01269BEB 6CAD BFFB DB11 653E B1B7 C62B AC93 0ED8 0126 9BEB - Share your knowledge. It's a way of achieving immortality. - --===============8430359733443237060==-- From mwheeler@startext.co.uk Fri Jan 23 22:50:05 2009 From: Martin Wheeler To: openguides-dev@lists.openguides.org Subject: Re: [OGDev] Perl modules... Date: Fri, 23 Jan 2009 22:49:59 +0000 Message-ID: In-Reply-To: <20090123184435.GB21976@the.earth.li> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2130131286150928713==" --===============2130131286150928713== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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. -- Martin Wheeler - G5FM +44 1458 83-1103 - Glastonbury - BA6 9PH - England mwheeler(a)startext.co.uk http://martinwheeler.net/ http://avalonit.net/ GPG pub key : 01269BEB 6CAD BFFB DB11 653E B1B7 C62B AC93 0ED8 0126 9BEB - Share your knowledge. It's a way of achieving immortality. - --===============2130131286150928713==-- From kake@earth.li Tue Jan 27 06:49:18 2009 From: Kake L Pugh To: openguides-dev@lists.openguides.org Subject: Re: [OGDev] Perl modules... Date: Tue, 27 Jan 2009 06:49:15 +0000 Message-ID: <20090127064915.GC29127@the.earth.li> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3967504515126773538==" --===============3967504515126773538== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On Fri 23 Jan 2009, Martin Wheeler 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 %] (gmap) (multimap) [% 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 --===============3967504515126773538==-- From bob@randomness.org.uk Fri Jan 30 13:49:59 2009 From: Bob Walker To: openguides-dev@lists.openguides.org Subject: Re: [OGDev] Perl modules... Date: Fri, 30 Jan 2009 13:47:09 +0000 Message-ID: In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5994555409365563790==" --===============5994555409365563790== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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. -- Bob Walker http://london.randomness.org.uk - http://tech.randomness.org.uk http://rwc.randomness.org.uk - http://londonjoinery.com for great beery justice! - meh! bah! indeeed! --===============5994555409365563790==-- From mwheeler@startext.co.uk Fri Jan 30 15:25:26 2009 From: Martin Wheeler To: openguides-dev@lists.openguides.org Subject: Re: [OGDev] Perl modules... Date: Fri, 30 Jan 2009 15:25:22 +0000 Message-ID: In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4237535918561130095==" --===============4237535918561130095== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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, -- Martin Wheeler - G5FM +44 1458 83-1103 - Glastonbury - BA6 9PH - England mwheeler(a)startext.co.uk http://martinwheeler.net/ http://avalonit.net/ GPG pub key : 01269BEB 6CAD BFFB DB11 653E B1B7 C62B AC93 0ED8 0126 9BEB - Share your knowledge. It's a way of achieving immortality. - --===============4237535918561130095==--