WordPress.org

Ready to get started?Download WordPress

Forums

Simply Exclude
conflict with Google XML Sitemap Plugin beta version (4 posts)

  1. sadupa
    Member
    Posted 3 years ago #

    Plugin cannot be activated when Google XML Sitemap Plugin (4.0beta8 version) is active. it gives following error,

    Fatal error: Call to private GoogleSitemapGenerator::__construct() from invalid context in /<site_directory>/wp-content/plugins/simply-exclude/simplyexclude.php on line 2072

    http://wordpress.org/extend/plugins/simply-exclude/

  2. Paul Menard
    Member
    Plugin Author

    Posted 3 years ago #

    Hmm, Sorry to hear there is a fatal error. Best option for you is to edit the simplyexclude.php file and comment out the lines 2069-2074

    if (is_file(WP_PLUGIN_DIR . '/google-sitemap-generator/sitemap-core.php'))
    {
    include (WP_PLUGIN_DIR. '/google-sitemap-generator/sitemap-core.php');
    $simplyexclude->GA_generatorObject = new GoogleSitemapGenerator();
    $simplyexclude->GA_generatorObject->LoadOptions();
    }

  3. sadupa
    Member
    Posted 3 years ago #

    commenting those lines fix the issue.

    I think better if there is a solution for this in a future release.

  4. Paul Menard
    Member
    Plugin Author

    Posted 3 years ago #

    Yes, of course the better solution is to patch the official released code. But as the Google XML plugin is also still in beta that will have to wait.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic