WordPress.org

Forums

[resolved] XML_Google_Maps fopen error (2 posts)

  1. WheresWaldo
    Member
    Posted 7 years ago #

    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?

  2. WheresWaldo
    Member
    Posted 7 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic