Forums

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

  1. sadupa
    Member
    Posted 5 months 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. pmenard
    Member
    Posted 5 months 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 5 months ago #

    commenting those lines fix the issue.

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

  4. pmenard
    Member
    Posted 5 months 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.

Reply

You must log in to post.

About this Plugin

About this Topic