[SOLVED] Fehlermeldung - Google Maps
[SOLVED] Fehlermeldung - Google Maps
Hallo Forum,
ich habe mir gerade das Google-Maps-Module 0.1.4 insalliert, und bekomme beim Ausfüllen eines neuen Markers folgende Meldung:
Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in /...bla/www.knoppe-berlin.de/modules/GoogleMaps ... .class.php on line 1220
Warning: file_get_contents(http://maps.google.com/maps?output=js&q ... button.gif) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in /...bla/www.knoppe-berlin.de/modules/GoogleMaps ... .class.php on line 1220
Habe ich vielleicht vergessen, in den php-Files etwas einzustellen?
Schöne Grüße
Nichess
ich habe mir gerade das Google-Maps-Module 0.1.4 insalliert, und bekomme beim Ausfüllen eines neuen Markers folgende Meldung:
Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in /...bla/www.knoppe-berlin.de/modules/GoogleMaps ... .class.php on line 1220
Warning: file_get_contents(http://maps.google.com/maps?output=js&q ... button.gif) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in /...bla/www.knoppe-berlin.de/modules/GoogleMaps ... .class.php on line 1220
Habe ich vielleicht vergessen, in den php-Files etwas einzustellen?
Schöne Grüße
Nichess
Last edited by nichess on Thu Sep 13, 2007 2:41 pm, edited 1 time in total.
Re: Fehlermeldung - Google Maps
Hmm, sieht aus, als würde dein Server diese Art Verbindungen nicht erlaubennichess wrote: Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in /...bla/www.knoppe-berlin.de/modules/GoogleMaps ... .class.php on line 1220
Warning: file_get_contents(http://maps.google.com/maps?output=js&q ... button.gif) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in /...bla/www.knoppe-berlin.de/modules/GoogleMaps ... .class.php on line 1220

Re: Fehlermeldung - Google Maps
Das Problem kenne ich, habe die Lösung von einer anderen CMS übernommen, dessen Namen man hier nicht nennen soll. 
1. Classe Snoopy downloaden und nach lib/snoopy kopieren
2. in GoogleMapAPI.class.php die Funktion FetchUrl wie folgt ändern:
und das war es auch schon.

1. Classe Snoopy downloaden und nach lib/snoopy kopieren
2. in GoogleMapAPI.class.php die Funktion FetchUrl wie folgt ändern:
Code: Select all
function fetchURL($url) {
$ok=false;
if (get_cfg_var('cfg_file_path') <>'')
$ok= get_cfg_var('allow_url_fopen');
if (!$ok)
{
include "lib/snoopy/Snoopy.class.php";
$snoopy = new Snoopy;
$snoopy->fetch($url);
return $snoopy->results;
}
else
return file_get_contents($url);
}
Re: Fehlermeldung - Google Maps
Danke für den Tipp, hab es gleich mal ausprobiert, allerdings kommt jetzt:
Parse error: syntax error, unexpected ';', expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /.....bla/www.knoppe-berlin.de/modules/GoogleMaps ... .class.php on line 1235
Kann eine Google-Map auch statisch in CMSmadesimple eingebaut werden?
Vielen Dank
Nichess
Parse error: syntax error, unexpected ';', expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /.....bla/www.knoppe-berlin.de/modules/GoogleMaps ... .class.php on line 1235
Kann eine Google-Map auch statisch in CMSmadesimple eingebaut werden?
Vielen Dank
Nichess
Re: Fehlermeldung - Google Maps
Die Antwort findest du hier 
http://maps.google.de/support/bin/answe ... swer=26392
Hat bei mir auch soweit funktioniert
http://test.cmsmadesimple.de/index.php?page=googlemaps

http://maps.google.de/support/bin/answe ... swer=26392
Hat bei mir auch soweit funktioniert
http://test.cmsmadesimple.de/index.php?page=googlemaps
Re: Fehlermeldung - Google Maps
Danke für die Antwort, ich werde wohl nach dieser Methode vorgehen:
http://forum.cmsmadesimple.org/index.php/topic,5366.0.html
Allerdings habe ich noch das Problem, dass die Google Map in IE 7 angezeigt wird, in Firefox nicht.
Beste Grüße
Nichess
http://forum.cmsmadesimple.org/index.php/topic,5366.0.html
Allerdings habe ich noch das Problem, dass die Google Map in IE 7 angezeigt wird, in Firefox nicht.
Beste Grüße
Nichess
Re: Fehlermeldung - Google Maps
Mit welchem Firefox arbeitest du?nichess wrote: Allerdings habe ich noch das Problem, dass die Google Map in IE 7 angezeigt wird, in Firefox nicht.
Ich entwickle nur mit FF2 und kann die Google Map bestens sehen!
Re: [SOLVED] Fehlermeldung - Google Maps
Hi ich arbeite mit FF 2.0.0.6
Denke, Du hast gerade drauf geschaut, als ich den Fehler an der map.js gefunden hatte
.
So funktionierte es auch mit IE7:
Unter FF2 aber nur mit:
... und natürlich die "}" am Ende nicht vergessen. 
Denke, Du hast gerade drauf geschaut, als ich den Fehler an der map.js gefunden hatte

So funktionierte es auch mit IE7:
Code: Select all
if (GBrowserIsCompatible()) {
usw. usv.
Code: Select all
function load() {
if (GBrowserIsCompatible()) {
usw. usv.

Re: [SOLVED] Fehlermeldung - Google Maps
Hatte hier mal gezeigt, wie ich es gemacht habe - funzt unter FF2 und IE7
http://forum.cmsmadesimple.org/index.ph ... l#msg74569
http://forum.cmsmadesimple.org/index.ph ... l#msg74569
Re: [SOLVED] Fehlermeldung - Google Maps
Ja so habe ich es für mich nun auch umgesetzt, vielen Dank!Hatte hier mal gezeigt, wie ich es gemacht habe - funzt unter FF2 und IE7
http://forum.cmsmadesimple.org/index.ph ... l#msg74569
Habe allerdings die Java-Anweisungen in einer map.js ausgelagert ( // //]]>), da ich Smarty Fehlermeldungen erhalten habe.
Re: [SOLVED] Fehlermeldung - Google Maps
Hast du das Javascript mit den {literal} Tags maskiert?
Re: [SOLVED] Fehlermeldung - Google Maps
Habs nochmal nachgespielt, und ja, ich habe beim kopieren ein {/literal} zuviel eingefügt und dadurch etwas Javascript außen vor gelassen


