WordPress.org

Ready to get started?Download WordPress

Forums

Maintenance Mode
can't login to /wp-admin/ when active --- get_page_permastruct() on (18 posts)

  1. Mike Stop Continues
    Member
    Posted 3 years ago #

    Here's the error at site.com/wp-admin/

    Call to a member function get_page_permastruct() on a non-object in /homepages/31/d163972550/htdocs/mikestopcontinues.com/wp-includes/link-template.php on line 276

  2. Bryan Hadaway
    Member
    Posted 3 years ago #

    This just happened to me too...

    Let me ask, did you install the Theme My Login plugin around the time of this error?

    Thanks, Bryan

  3. Mike Stop Continues
    Member
    Posted 3 years ago #

    Yes! Any suggestions?

    Also, thanks for responding so quickly.

  4. Bryan Hadaway
    Member
    Posted 3 years ago #

    Okay, problem solved... we need to delete out Theme My Login manually via FTP. Reinstall at a later time when maintenance mode is not needed.

    Kind of dumb and obvious in retrospect, but we are only human after all ;).

    Thanks, Bryan

  5. Mike Stop Continues
    Member
    Posted 3 years ago #

    Is there a way to unregister the theme my login hooks when maintenance mode is active?

  6. Bryan Hadaway
    Member
    Posted 3 years ago #

    I'm sure there is a number of things you could do.

    But, the bottom line is you can't use Theme My Login in maintenance mode nor should you.

    Like I said, in retrospect... it doesn't make any sense and there's an obvious conflict.

    Thanks, Bryan

  7. PooLP
    Member
    Posted 3 years ago #

    Hi,
    I have same problem, you have issue for this ? I absolutely need both.
    Thanks,
    PooLP

    PS: i'm post a similar post on Jeff Farthing website ;)

  8. PooLP
    Member
    Posted 3 years ago #

    I use a 503.php in my theme and i have no error ...

  9. Mike Stop Continues
    Member
    Posted 3 years ago #

    PooLP, do you mean to say that you can have maintenance mode and theme-my-login active at the same time if you use a 503.php? Or that you just don't get the error message?

  10. PooLP
    Member
    Posted 3 years ago #

    I have no error message if use a 503.php page ... i have error message if use a normal mode.

    I have a last version of WordPress, Theme My login and Maintenance mode.

    [EDIT] exemple : http://pp-poolp.themeloon.net/

  11. Jeff Farthing
    Member
    Posted 3 years ago #

    This is happening because maintenance mode takes over at the plugins_loaded hook, before WordPress has finished loading. It then calls site_url( 'wp-login.php' ) which TML filters to change to the TML page. This filter function calls get_page_link() which expects the WP_Rewrite object to exist. Unfortunately, this object isn't populated at the time of the plugins_loaded hook being run.

    Ideally, maintenance mode should run on init or wp_loaded. But until that happens or if it never does, this should work as a workaround. Create a file called theme-my-login-custom.php in your /plugins directory ( i.e. /plugins/theme-my-login-custom.php). Then. add the following to it:

    <?php
    
    remove_action( 'plugins_loaded', array( $GLOBALS['myMaMo'], 'ApplyMaintenanceMode' ) );
    add_action( 'init', array( $GLOBALS['myMaMo'], 'ApplyMaintenanceMode' ) );
    
    ?>
  12. Free Spirit Beauty
    Member
    Posted 3 years ago #

    I am so new to this trouble shooting. I am trying to log into my website admin and get this message. It appeared after I I tried to update my plug ins. Now I can't get into my site admin...this is my livelihood !! Help.

    The website is up and running fine. Just no admin access.

    Here is the message:
    Fatal error: Call to undefined function is_network_admin() in D:\Hosting\6328448\html\wp-admin\includes\menu.php on line 10

  13. Mike Stop Continues
    Member
    Posted 3 years ago #

    Thanks Jeff. That should be a great help!

  14. KathyW
    Member
    Posted 3 years ago #

    Yet another work-around:
    In the Maintenance Mode plug-in settings page, "Paths to be still accessable", add
    http://path-to-your-site/login
    and go there to log in.

    Also, you do not have to delete the TML directory to get back-end access back, just re-name it.

  15. DivaVocals
    Member
    Posted 2 years ago #

    @Jeff Farthing you are as cool as your plugin.. I was JUST about to trash this plugin because as much as I like this maintenance mode plugin, I like Theme My Login more.. I had found an "okay" alternative maintenance mode plugin that does NOT interfere with Theme My Login (which is now a MUST have for all my blog installs!!). Now thanks to you I can have BOTH.. thanks for posting the fix.. It did the trick!!! Whoo hoo!!!

    Posted by: Jeff Farthing
    This is happening because maintenance mode takes over at the plugins_loaded hook, before WordPress has finished loading. It then calls site_url( 'wp-login.php' ) which TML filters to change to the TML page. This filter function calls get_page_link() which expects the WP_Rewrite object to exist. Unfortunately, this object isn't populated at the time of the plugins_loaded hook being run.

    Ideally, maintenance mode should run on init or wp_loaded. But until that happens or if it never does, this should work as a workaround. Create a file called theme-my-login-custom.php in your /plugins directory ( i.e. /plugins/theme-my-login-custom.php). Then. add the following to it:

    <?php
    
    remove_action( 'plugins_loaded', array( $GLOBALS['myMaMo'], 'ApplyMaintenanceMode' ) );
    add_action( 'init', array( $GLOBALS['myMaMo'], 'ApplyMaintenanceMode' ) );
    
    ?>
  16. mikey1atl
    Member
    Posted 2 years ago #

    I cannot log into my site after updating a plug-in on the 15th. I get the following error message:

    Parse error: syntax error, unexpected T_SL in /home/content/04/6671704/html/wp-content/plugins/tweet-old-post/tweet-old-post.php on line 7

    How can I log in to deactivate this plugin?

    Thanks in advance for your help!

    Michael
    http://www.OutMaturity.com

  17. DivaVocals
    Member
    Posted 2 years ago #

    Micheal your post is unrelated to this topic.. (you are having a DIFFERENT issue than the error being discussed in this thread..) It's best if you create a NEW post with your issue with a subject that indicates what the issue is you are reporting..

    Posted by: mikey1atl
    I cannot log into my site after updating a plug-in on the 15th. I get the following error message:

    Parse error: syntax error, unexpected T_SL in /home/content/04/6671704/html/wp-content/plugins/tweet-old-post/tweet-old-post.php on line 7

    How can I log in to deactivate this plugin?

    Thanks in advance for your help!

    Michael
    http://www.OutMaturity.com

  18. mikey1atl
    Member
    Posted 2 years ago #

    Thanks, but something you said made me think again about the problem and believe it or not, I was able to get it fixed!

    Thanks so much for commenting, but it did allow me to get it worked out and now http://www.OutMaturity.com is back up and running! : )

    Have a super day!

    Michael
    OutMaturity

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic