How to Fix the SRG Clean Archives Wordpress 2.5 Plugin Bug
Posted by: James Lewitzke in Blogging, CodingFor those that have recently updated to Wordpress 2.5, you have probably experienced a few bugs and workarounds along the way.
The Plugin
First I want to say that the SRG Clean Archives Plugin is the BEST Archive plugin for wordpress out there. If you don’t have it installed, I’d highly recommend you do.
The Problem
When you download the plugin, everything should be working fine, display-wise. You can still create the page and have a list of all your blog posts in one place.
However, in the administration control panel, you’ll notice that the plugin will NOT allow you to update options. After you check a few off and click “Update Options” It takes you to a completely blank, white screen.
The Solution
The fix for this error is actually pretty simple. Just open up the srg_clean_archives.php file in a text editor, scroll down to approximately line 240 or so. Look for this highlighted portion of the code:
function srg_admin_page() {
if (isset($_POST['srg_submit'])) {
check_admin_referer( ‘$myplugin_nonce’, $myplugin_nonce );
if (isset($_POST['srg_show-comments'])) {
update_option('srg-clean_comment-display', 'true');
} else {
update_option('srg-clean_comment-display', 'false');
}
And add two forward slashes in front of that line, so you’ll end up with this:
function srg_admin_page() {
if (isset($_POST['srg_submit'])) {
// check_admin_referer( ‘$myplugin_nonce’, $myplugin_nonce );
if (isset($_POST['srg_show-comments'])) {
update_option('srg-clean_comment-display', 'true');
} else {
update_option('srg-clean_comment-display', 'false');
}
Now you can change and edit all the plugin options you wish to make.
Lastly, I have to give credit to clowny for finding the error.

Thanks! It helped a lot!
Works with WP 2.6.3 too. Thanks for the correction and to the author of the plugin.
Sure thing. I haven’t upgraded WP yet (no need to), so I’m not familiar with what works on other versions or not. I’m only assuming here it’ll be for everything after 2.5 too, as you said it worked.
It is a great plugin too.