Title: WordPress 5.2 Reporting
Last modified: May 14, 2019

---

# WordPress 5.2 Reporting

 *  Resolved [colinswe](https://wordpress.org/support/users/colinswe/)
 * (@colinswe)
 * [7 years ago](https://wordpress.org/support/topic/wordpress-5-2-reporting/)
 * Hi
    WordPress 5.2 is reporting an error as follows – this is AFTER I updated 
   to TML 7.0.14.
 * “WordPress caught an error with one of your plugins, theme-my-login-custom.php.
 * Error Details
    ============= An error of type E_ERROR was caused in line 5 of
   the file /home1/wsassoci/public_html/wp-content/plugins/theme-my-login-custom.
   php. Error message: Call to a member function get_login_page_link() on null”
 * The site would run fine, and I could login via the TML login page but the error
   occurred on the default WordPress login page (/wp-login.php)
 * I also saw this error message before the latest update to TML
 * I have disabled TML for now and the (/wp-login.php) page is now available.
 * Any comments?
 * Colin
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwordpress-5-2-reporting%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Jeff Farthing](https://wordpress.org/support/users/jfarthing84/)
 * (@jfarthing84)
 * [7 years ago](https://wordpress.org/support/topic/wordpress-5-2-reporting/#post-11539071)
 * The file `theme-my-login-custom.php` is not part of TML – it includes arbitrary
   code that you, or the developer of your site, added to alter TML/WP. You’ll need
   to inspect that file to see what is going on.
 *  Thread Starter [colinswe](https://wordpress.org/support/users/colinswe/)
 * (@colinswe)
 * [7 years ago](https://wordpress.org/support/topic/wordpress-5-2-reporting/#post-11539157)
 * Hi the code is the file is as follows
 * <?php function tml_init() {
    global $pagenow, $theme_my_login;
 *  if ( ‘wp-login.php’ == $pagenow ) {
    $redirect_to = $theme_my_login->get_login_page_link();
   wp_redirect( $redirect_to ); exit; } } add_action( ‘init’, ‘tml_init’ ); ?>
 *  Thread Starter [colinswe](https://wordpress.org/support/users/colinswe/)
 * (@colinswe)
 * [7 years ago](https://wordpress.org/support/topic/wordpress-5-2-reporting/#post-11540365)
 * I have just realized that this is a file that was created a long time ago, several
   years, to solve a problem with a much earlier version of TML, the next TML update
   solved the issue but this file was never deleted.
 * It only came up now because of WP 5.2
 * I going to close this and offer my apologies for bothering you.
 * Thanks for your input though – helped me remember. 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘WordPress 5.2 Reporting’ 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/)

 * 3 replies
 * 2 participants
 * Last reply from: [colinswe](https://wordpress.org/support/users/colinswe/)
 * Last activity: [7 years ago](https://wordpress.org/support/topic/wordpress-5-2-reporting/#post-11540365)
 * Status: resolved