• Resolved colinswe

    (@colinswe)


    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 to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jeff Farthing

    (@jfarthing84)

    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

    (@colinswe)

    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

    (@colinswe)

    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.