WordPress.org

Ready to get started?Download WordPress

Forums

Google News Sitemap Generator
Error with XML path (3 posts)

  1. RoBorg
    Member
    Posted 3 years ago #

    The plugin seems to be working correctly but occasionally I get this in the error_log.

    Error: PHP Warning: fopen() [function.fopen]: open_basedir restriction in effect.
    File(../google-news-sitemap.xml) is not within the allowed path(s): (/var/www/vhosts/XXX/subdomains/blog/httpdocs:/tmp) in /var/www/vhosts/XXX/subdomains/blog/httpdocs/wp-content/plugins/google-news-sitemap-generator/google-news-sitemap.php on line 205

    I'm guessing the current working directory is wrong - it might possibly be related to /wp-cron.php?doing_wp_cron being run

    Perhaps changing line 204 from
    $xmlFile = "../google-news-sitemap.xml";
    to
    $xmlFile = ABSPATH . "/google-news-sitemap.xml";
    might fix it?

    http://wordpress.org/extend/plugins/google-news-sitemap-generator/

  2. Samuel B
    moderator
    Posted 3 years ago #

    open_basedir restriction in effect.

    this is a host "security" feature
    ask them how to get around it

  3. RoBorg
    Member
    Posted 3 years ago #

    The problem isn't with open_basedir - occasionally the script gets the path it tries to write to wrong.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic