• 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

Viewing 15 replies - 1 through 15 (of 17 total)
  • 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

    Thread Starter Mike Stop Continues

    (@mike-stop-continues)

    Yes! Any suggestions?

    Also, thanks for responding so quickly.

    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

    Thread Starter Mike Stop Continues

    (@mike-stop-continues)

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

    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

    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 ??

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

    Thread Starter Mike Stop Continues

    (@mike-stop-continues)

    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?

    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 : https://pp-poolp.themeloon.net/

    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' ) );
    
    ?>

    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

    Thread Starter Mike Stop Continues

    (@mike-stop-continues)

    Thanks Jeff. That should be a great help!

    Yet another work-around:
    In the Maintenance Mode plug-in settings page, “Paths to be still accessable”, add
    https://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.

    @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' ) );
    
    ?>

    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
    https://www.OutMaturity.com

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘[Plugin: Maintenance Mode] can't login to /wp-admin/ when active — get_page_permastruct() on’ is closed to new replies.