Support » Plugin: Theme My Login » Update from today crashed my site

Viewing 13 replies - 1 through 13 (of 13 total)
  • Mine too – is there a way we can revert back to the old version – 6.4.7?

    Issue just after the update

    Undefined variable: wp_query in /home/mysite.com/wp-content/plugins/theme-my-login/includes/class-theme-my-login.php on line 264

    Fatal error: Call to a member function is_main_query() on null in /home/mysite.com/wp-content/plugins/theme-my-login/includes/class-theme-my-login.php on line 264

    mine too – the error log says:
    [19-Feb-2017 18:53:38 UTC] PHP Fatal error: Call to a member function is_main_query() on null in …/wordpress/wp-content/plugins/theme-my-login/includes/class-theme-my-login.php on line 264

    Had to revert to v6.4.7 (by copying the folder from a backup with ftp) to get the site back.

    No doubt we’ll get a fix soon?

    thanks,
    Roy

    I deleted it by ftp, looking to downgrade as well…anyone?

    Great that somebody actually tests their releases before they break stuff…

    Anyway this is the error:
    Notice: Undefined variable: wp_query in /wp-content/plugins/theme-my-login/includes/class-theme-my-login.php on line 264

    Fatal error: Uncaught Error: Call to a member function is_main_query() on Null

    TO FIX THIS IS EASY:

    This is a typo in class-theme-my-login.php file the variable should be $query not $wp_query….

    open file: theme-my-login/includes/class-theme-my-login.php
    go to line 264…

    edit:
    // Bail if not the main query
    if ( ! $wp_query->is_main_query() )
    return;

    change to:

    // Bail if not the main query
    if ( ! $query->is_main_query() )
    return;

    • This reply was modified 2 years, 11 months ago by marketsys.
    • This reply was modified 2 years, 11 months ago by marketsys.

    Thanks for your help!

    LOL, I was just about to post the same fix. Good job.

    Great!!! Thanks for the fix!

    Thank you @marketsys 🙂

    EDIT: I was able to get it disabled following these steps, (in case someone runs into the same issue)

    1- Disable TML Plugin.
    2- Change its foldername.
    3- Remove TML Plugin from within WordPress dashboard.
    4- Delete its folder.

    Hello everybody,

    I have made the changes in the “class-theme-my-login.php”

    However the problem was not resolved, I even deleted the whole plugin and it still does not seem to work :/

    Website is “www.mozys.ca”

    • This reply was modified 2 years, 11 months ago by nizoo.

    Version 6.4.9 works on my site(s)…thanks for the quick fix!

    @marketsys you rock! I was freaking out, but that was an easy fix…I am taking automatic updates off…this is the second time in less than a year that this kind of thing has happened…just to risky.

    Plugin Author Jeff Farthing

    (@jfarthing84)

    Sorry people! 6.4.9 was released shortly after to remedy this issue.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Update from today crashed my site’ is closed to new replies.