• Resolved whereswaldo

    (@whereswaldo)


    I have numerous GPX and KML route files I wanted to display them on a map within WordPress. The only plugin I could find that will accept GPX or KML files as input, or display a track was XML_Google_Maps. I create a page, Upload the GPX or KML file, then access it via a <a href= code. I have tried to use different formats to specify the uploaded file but always get an fopen error. the errors are as follows

    Warning: fopen(/wp-content/uploads/2007/11/11-02-2007.gpx) [function.fopen]: failed to open stream: No such file or directory in /home/content/w/h/e/whereswaldo/html/wordpress/wp-content/plugins/xml-google-maps/xmlgooglemaps_gpxParser.php on line 26
    Cannot open XML data file: /wp-content/uploads/2007/11/11-02-2007.gpx
    
    Warning: fopen(/home/content/w/h/e/whereswaldo/html/wp-content/uploads/2007/11/11-2-2007.kml) [function.fopen]: failed to open stream: No such file or directory in /home/content/w/h/e/whereswaldo/html/wordpress/wp-content/plugins/xml-google-maps/xmlgooglemaps_kmlParser.php on line 28
    Cannot open XML data file: /home/content/w/h/e/whereswaldo/html/wp-content/uploads/2007/11/11-2-2007.kml
    
    Warning: fopen(./wp-content/uploads/2007/11/11-2-2007.kml) [function.fopen]: failed to open stream: No such file or directory in /home/content/w/h/e/whereswaldo/html/wordpress/wp-content/plugins/xml-google-maps/xmlgooglemaps_kmlParser.php on line 28
    Cannot open XML data file: ./wp-content/uploads/2007/11/11-2-2007.kml
    
    Warning: fopen(./wp-content/uploads/2007/11/11-2-2007.kml) [function.fopen]: failed to open stream: No such file or directory in /home/content/w/h/e/whereswaldo/html/wordpress/wp-content/plugins/xml-google-maps/xmlgooglemaps_kmlParser.php on line 28
    Cannot open XML data file: ./wp-content/uploads/2007/11/11-2-2007.kml
    
    Warning: fopen(/home/content/w/h/e/whereswaldo/html/wp-content/uploads/2007/11/11-2-2007.kml) [function.fopen]: failed to open stream: No such file or directory in /home/content/w/h/e/whereswaldo/html/wordpress/wp-content/plugins/xml-google-maps/xmlgooglemaps_kmlParser.php on line 28
    Cannot open XML data file: /home/content/w/h/e/whereswaldo/html/wp-content/uploads/2007/11/11-2-2007.kml

    Is anyone else using this particular plugin? Have they been successful in getting it to work?

Viewing 1 replies (of 1 total)
  • Thread Starter whereswaldo

    (@whereswaldo)

    I figured out what was going wrong. It seems that WP was handling the 301 redirection wrong, or maybe it was the hosting provider. So as long as I specified the original domain instead of the subdomain it would find the file and then map properly.

    /home/content/w/h/e/whereswaldo/html/wp-content/uploads/2007/11/11-2-2007.kml

    Should have read:

    /home/content/w/h/e/whereswaldo/html/wordpress/wp-content/uploads/2007/11/11-2-2007.kml

Viewing 1 replies (of 1 total)
  • The topic ‘XML_Google_Maps fopen error’ is closed to new replies.