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
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
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
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
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 ...
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 : http://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
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
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.
@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
http://www.OutMaturity.com
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
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
This topic has been closed to new replies.