Title: Bug report and fix (Logout Loop)
Last modified: August 21, 2016

---

# Bug report and fix (Logout Loop)

 *  [waldermort](https://wordpress.org/support/users/waldermort/)
 * (@waldermort)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/bug-report-and-fix-logout-loop/)
 * Tested on WordPress 3.6, PHP 5.4, TML 6.3.8.
 * As a few posts have mentioned, when clicking `logout` we are faced with the “
   Are you sure” page followed by a closure of WP (That’s why it loops). The problem
   is caused by the nonce, and all other queries, being stripped from the URL as
   it’s being converted to permalink format.
 * In `class-theme-my-login.php` change line 602 from `$logout_url = self::get_page_link('
   logout' );` to `$logout_url = self::get_page_link( 'logout', parse_url( $logout_url,
   PHP_URL_QUERY ) );`. Problem solved.
 * Also, minor bugs (more like PHP complaining while in strict mode), the `get_object()`
   methods of the classes have no default arguments yet the base class does. Changing
   them to `get_object( $s = __CLASS__ ) return parent::get_object( $s );` Makes
   the warning go away.
 * [http://wordpress.org/plugins/theme-my-login/](http://wordpress.org/plugins/theme-my-login/)

The topic ‘Bug report and fix (Logout Loop)’ is closed to new replies.

 * ![](https://ps.w.org/theme-my-login/assets/icon-256x256.png?rev=1891232)
 * [Theme My Login](https://wordpress.org/plugins/theme-my-login/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/theme-my-login/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/theme-my-login/)
 * [Active Topics](https://wordpress.org/support/plugin/theme-my-login/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/theme-my-login/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/theme-my-login/reviews/)

## Tags

 * [bug fix](https://wordpress.org/support/topic-tag/bug-fix/)

 * 0 replies
 * 1 participant
 * Last reply from: [waldermort](https://wordpress.org/support/users/waldermort/)
 * Last activity: [12 years, 8 months ago](https://wordpress.org/support/topic/bug-report-and-fix-logout-loop/)
 * Status: not resolved