For 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.

RSS feed | Trackback URI

3 Comments »

Comment by Campodiez
2008-06-24 08:07:07

Thanks! It helped a lot!

 
Comment by Brian D
2008-11-12 18:00:50

Works with WP 2.6.3 too. Thanks for the correction and to the author of the plugin.

Comment by James Lewitzke
2008-11-18 20:42:56

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.

 
 
Name (required)
E-mail (required - never shown publicly)
URI
Your Comment (smaller size | larger size)

All Comments about the website in general belong on the Feedback Page, please post them there, or else your comment will be edited or deleted!

Also check to see if you are replying properly. If this comment is a reply to a specific comment, make sure to click the "Reply to this comment" Link underneath the appropriate comment to move the form. Again, comments that do not follow these guidelines are subject for editing or deletion.

Trackback responses to this post