I cannot log out of my wordpress website

Avatar
  • Answered
My website is built with wordpress and I have just added the woocommerce plugin. However, it seems whenever I want to log out of my user account from http://www.mywebsite.com/my-account, there is an error thrown by wordpress, and I'm redirected to the page saying:
"You are attempting to log out of [mywebsite] Do you really want to log out?"

FYI, I'm not even customising the my-account page of woocommerce, and the same setup works just fine on my virtual machine running ubuntu 12.04 (I actually reproduced the environment by copying everything from public_html/blog, and restoring the mysql database).
Avatar
johnpaulb-imhs1
Hello, Thank you for contacting us about issues logging out of WordPress. I found many results of this issue in WordPress when using Woocommerce (such as these: WordPress Failure Notice - Can not logout, Logout link no longer works). The following are some of the solutions that worked:
  • Login and try this...http://www.yoursite.com/?customer-logout=true (be sure to replace yoursite.com with your actual domain name)
  • Clear your browser cache
Most of the other similar error were related to the specific Theme/Plugins you are using in WordPress. Out Common WordPress Troubleshooting Techniques guide explains how to test this, it also includes additional troubleshooting steps. Let us know if you have any further questions. Thank you, John-Paul