The plugin will through warnings in PHP 7 or newer. To apply a fix, change:
$ddsg_lang_file = trim(get_option(ddsg_language));
to:
$ddsg_lang_file = trim(get_option(‘ddsg_language’));
plugins/sitemap-generator/sitemap-generator.php line 55
Notice: has_cap was called with an argument that is deprecated since version 2.0! Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead.
Change:
add_options_page('Dagon Design Sitemap Generator', 'DDSitemapGen', 8, __FILE__, 'ddsg_options_page');
To:
add_options_page('Dagon Design Sitemap Generator', 'DDSitemapGen', 'Administrator', __FILE__, 'ddsg_options_page');
to correct it.
thanks
Ray
https://twentyfiveautumn.com
Notice: Use of undefined constant ddsg_language – assumed ‘ddsg_language’ in sitemap-generator/sitemap-generator.php on line 44
change
from:
$ddsg_lang_file = trim(get_option(ddsg_language));
to:
$ddsg_lang_file = trim(get_option('ddsg_language'));
thanks
]]>I’ve set Excluded Pages to five different IDs. They are all posts and are still showing up in the site map. How can I force them out?
Thanks.
]]>How can I include Home page to the sitemap ???
Thanks in advance
]]>Hi…
I started using this plugin yesterday, but I’ve got a problem.
The pagination of this plugin haven’t worked like usual.
check this out…
https://belajar-sendiri.com/about/sitemap-2/
let me know if there are some solutions…
thanks…
]]>Catchable fatal error: Object of class WP_Error could not be converted to string in /wp-content/plugins/sitemap-generator/sitemap-generator.php on line 513
]]>Hi,
With WP 3.0.1 and Dagon 3.15, I get this error (WP_DEBUG on) :
Notice: Use of undefined constant ddsg_language - assumed 'ddsg_language' in /var/www/vhosts/capdelahague.org/httpdocs/wp-content/plugins/sitemap-generator/sitemap-generator.php on line 45
To fix it in sitemap-generator.php, I replace :
$ddsg_lang_file = trim(get_option(ddsg_language));
with :
$ddsg_lang_file = trim(get_option('ddsg_language'));
because the argument of get_option() must be a string.
Do you agree with me ?
]]>Do not use Dagon’s plug-in. It is highly destructive and forced me to re-upload my entire database plus files. See step-by-step below. Thank God for paranoid backups.
1. Installed latest version of Dagon’s Sitemap Generator Plugin for WordPress.
2. Activated plug-in.
3. Customized to my needs. Set to domain.com/sitemap/ and linked up to my sitemap XML generator.
4. Suddenly all pages in my install routed to domain.com/sitemap/. Realized it’s time for some backpedaling.
5. Deactivated Dagon’s monster and cleared local and wp-cache & cookies. No effect. Not good.
6. Uninstalled Dagon’s monster and cleared local and wp-cache & cookies. No effect.
7. Re-installed database from my last fresh install. Cleared local and wp-cache & cookies. No effect.
Working on overwriting files now.
]]>