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/
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();
}
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.
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.