Weird Issue with load balanced WP 3.0 setup

I have a wordpress MU (3.0.1) setup (upgraded from 2.9.2).

It runs on 4 instances, load balanced, and all 4 connect to same database.

Now, when only one instance is running, it is working fine…

When I run multiple instances, I am not able to trash or undo trash or even do any change in settings .. I get this message:

Are you sure you want to do this?

Please try again.

the URL when this occurs is

mblogs.com/testblog/wp-admin/post.php?post=9&action=trash&_wpnonce=8f5a697d1e

What could be the issue and how to fix it?

1 Answer
1

Likely this is result of check_admin_referer() function not recognizing your request as coming from admin area. Since your query clearly contains nonce it is likely what is not being recognized.

Nonces can be locked down in many ways. They are unique to the WordPress install, to the WordPress user, to the action, to the object of the action, and to the time of the action (24 hour window). That means that if any of these things changes, the nonce is invalid. ( Mark Jaquith )

My theory is that your load-balanced installs don’t count as same install for the purpose of generating nonce. If possible try to limit admin area to single server and see if that helps.

Leave a Comment