Support » Plugin: Theme My Login » Fatal error: Call to a member function is_main_query() on a non-object

  • Hello,

    Today while I tried to login into WordPress dashboard, I saw below error in browser:
    Fatal error: Call to a member function is_main_query() on a non-object in /home/user/public_html/plugins/theme-my-login/includes/class-theme-my-login.php on line 264

    Can anyone please suggest how to fix this and why I am suddenly getting such error?

    Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • +1

    It seems that the 6.4.9 update fixes the error. Thank you Jeff!

    • This reply was modified 5 years, 9 months ago by kreestal.

    So! my sites are down as of 5 hours ago, and the version 6.4.9, which is responsible for this is also the fix?

    Thread Starter Kushal Jayswal

    (@kutec)

    So anything should I change to get this error fixed? Sorry but your comments didn’t clear that how to fix…

    Kindly suggest.

    Thanks.

    What I had to do ssh into plugins folder, and delete the folder named theme-my-login and then refresh the site to get it to start working again. After that, just reinstall the plugin and it should be fine.

    • This reply was modified 5 years, 9 months ago by krisdeveloper.
    Plugin Author Jeff Farthing

    (@jfarthing84)

    Sorry about that. 6.4.9 was released shortly after this was discovered to fix it.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Fatal error: Call to a member function is_main_query() on a non-object’ is closed to new replies.