Forum Moderators: open

Message Too Old, No Replies

akismet recheck queue - No response to check spam with akismet

akismet on wordpress out of memory

         

Jasmine228

8:57 am on Mar 18, 2010 (gmt 0)

10+ Year Member



Hi

Recently i start to use WordPress plugin Akismet on my blog to prevent spams on my blog . But whenever I click the "Check for Spam" button ( landing on /wp-admin/admin.php?action=akismet_recheck_queue ), a totally blank page is returned.

anyone can help? thanks a lot!

ergophobe

4:35 pm on Mar 18, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Welcome to WebmasterWorld Jasmine!

One first question - you say in the subtitle that WP is out of memory. What makes you think so? Are you getting some error message?

Typically, a blank page is the result of a fatal PHP error, but you have PHP set up to log errors, rather than to output them to the screen, so there's no output at all.

Do you have access to your PHP error logs? Typically, it will give you a file name and line number for the fatal error.

In the meantime, though, have you simply uninstalled and reinstalled akismet? Is it possible you're just missing a file or have some corrupted file?

Jasmine228

2:12 am on Mar 19, 2010 (gmt 0)

10+ Year Member



Thank Ergophobe

1. I say the WP is out of memory because i have searched for the question online before and someone said that, i don't get some error message but a blank page after i click the button.(the url of blank page is .../wp-admin/admin.php?action=akismet_recheck_queue)

2. I have too many spam messages (over 124,000) in my blog. So i think this maybe a reason why the blank page appears.

3. I don't know where to see the PHP error logs, as Akismet is just a plugin...

4. I have uninstalled and reinstalled akismet, but the problem continues.

PS: the same question i found online:http://wordpress.org/support/topic/322333 , i don't familiar with mysql, so i hope to find some easier ways to solve the problem.

ergophobe

4:11 pm on Mar 19, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



1. Can't answer to that... I'm wondering why memory usage relates to this. I guess that the plugin is returning the whole result set as an object or array.

I see two solutions to that, depending on your hosting setup. If you have the privileges, you could try bumping up your PHP memory allocation to 256MB temporarily, processing the queue, and then putting it back somewhere reasonable (128 or 64MB).

I don't know what your skill level is with PHP, but you can monitor memory usage

[php.net...]

You can increase your PHP memory limit in any context
php.ini way: memory_limit = 256M
.htaccess way: php_value memory_limit 256M

Those numbers may be higher than your host allows and almost certainly higher than your shared host will allow regularly, so you'll want to reset the values.

2. You could just get rid of all unapproved messages via the MySQL client or PHPMyAdmin. I believe Akismet has settings for how long to hold comments before auto-deleting. Turn that down so that you don't build up to such huge numbers before processing.

3. PHP error logs are at the server level and have nothing to do with Akismet or Wordpress per se. If you don't know where they are, contact your tech support and ask them. You should be looking at them periodically anyway to check for issues.

4. well, it was worth a try

PS - he still doesn't say how he knows or exactly what error he has, but it seems you're right.

The query he offers
mysql> delete from wp_comments where comment_approved = 0
AND comment_date < '2010-1-1';


will allow you to accomplish what I mention in #2. Obviously back up your database before you do this - sorry to shout ;-)

Jasmine228

1:44 am on Mar 29, 2010 (gmt 0)

10+ Year Member



At last i solved this problem by executing the delete command via MySQL client. By the way, i have backed up my database before i did this. (with the help of one of our support, i am really not very familiar with PHP and MySQL)
And thanks again,ergophobe. You're very kind. :-)

ergophobe

4:50 pm on Mar 29, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I'm glad it worked out. It's possible you deleted some legitimate comments in there, but with the huge number you have, there's not much to be done about that.

One thing - did you look into setting the Akismet auto-delete to a shorter period so it doesn't happen again?

Another option is to try switching to Mollom, which may or may not work better - it definitely works *well* for me, but I'm not sure it works *better*, but since Akismet is throwing you fits, it might be worth looking into.

Finally, I find WP hash cash (hash cache?) also knocks a lot of spam out right from the get go, without bothering your users with a CAPTCHA puzzle. If you set up that plugin correctly, it can drop your spam volume dramatically.