Title: Fatal error
Last modified: August 20, 2016

---

# Fatal error

 *  [wpnovice2](https://wordpress.org/support/users/wpnovice2/)
 * (@wpnovice2)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/fatal-error-664/)
 * When I activate the plugin, it crashes my site with this message:
 * Fatal error: Call to a member function get_page_permastruct() on a non-object
   in /home/MYSITENAME/wp-includes/link-template.php on line 271
 * where MYSITENAME is my website URL
 * This plugin looks very promising. I’m surprised to not read others with this 
   problem…?
 * [http://wordpress.org/extend/plugins/wp-user-frontend/](http://wordpress.org/extend/plugins/wp-user-frontend/)

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

 *  [professor99](https://wordpress.org/support/users/professor99/)
 * (@professor99)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/fatal-error-664/#post-3521714)
 * Try disabling all other plugins and then trying again after clearing your recent
   history (cache specifically).
 *  Thread Starter [wpnovice2](https://wordpress.org/support/users/wpnovice2/)
 * (@wpnovice2)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/fatal-error-664/#post-3521782)
 * Thanks for the suggestion but it didn’t help. Not sure if that line of code is
   something that’s specific to the theme I’m using, but I decided to edit link-
   template.php which was generating the error.
 * I commented out the line of code that was generating the error:
 * $link = $wp_rewrite->get_page_permastruct();
 * This line of code is within the function _get_page_link
 * This stops the fatal error.
 * However (perhaps related to that) on the page I have [wpuf_edit] that ends up
   editing its own page page!
 * Creating a new post is fine, and displaying a list of all posts created on a 
   dashboard is fine, but then trying to edit the list of posts will point back 
   to that [wpuf_edit] page which just tries to edit the content of the page (which
   is just the shortcode) rather than the post.
 *  [professor99](https://wordpress.org/support/users/professor99/)
 * (@professor99)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/fatal-error-664/#post-3521816)
 * Could you please tell us which theme you are using as this may help other users
   who may experience this problem.
 * This more than likely is related to your theme or WordPress settings if it happens
   when all other plugins are deactivated.
 * Could you test to see if it happens with the WordPress 2011 and 2012 themes.
 * If it happens for all themes it could be related to WordPress settings for rewriting
   links. get_page_permastruct() is a member of class WP_Rewrite and for some unknown
   reason that hasn’t been defined before this function is called.
 * link-template.php is a standard WordPress file and it is generally a bad idea
   to edit this as it may be overwritten on the next upgrade so be wary.
 * Not sure what your really talking about when you state the following.
 * > However (perhaps related to that) on the page I have [wpuf_edit] that ends 
   > up editing its own page page!
 * If it’s related to the standard WordPress edit link on the bottom of each page
   the [development](http://wordpress.org/support/topic/frontend-updates-2rrr-fork?replies=66)
   version fixes this. See the code for wpuf_suppress_edit_post_link() in wpuf_functions.
   php if you dont want to use the development version.
 *  Thread Starter [wpnovice2](https://wordpress.org/support/users/wpnovice2/)
 * (@wpnovice2)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/fatal-error-664/#post-3521935)
 * Hi Professor99
 * Thanks for your help troubleshooting. I use the Azul theme.
 * I once had buddypress activated plus a buddypress theme plugin that was supposed
   to help make it work for various themes. I notice that even though I deactivated
   all buddypress stuff, there are still buddypress templates in my theme folder
   so I wonder if maybe this has something to do with it — which might explain why
   I’m having these unusual issues
 * RE my last comment that was confusing:
 * The wordpress page with [wpuf_dashboard] nicely displays a list of the posts 
   I have authored, with links to edit them. Links to edit them correctly point 
   to the wordpress page that has the shortcode [wpuf_edit]. However that page with
   the shorcode attempts to edit its own page content — not the content of a post.
   The contents in the “title” and “description” boxes of the form are the title
   of the page, and the content of the page “[wpuf_edit]” I suspect this might have
   to do with me messing around with permalinks to get the plugin working.
 * I really like the promise of this plugin, particularly its dashboard feature 
   to show a person’s posts. I tried other plugins but they don’t offer the power
   that this one promises. I wish I were more of a wordpress expert to spend more
   time trying to figure out why it isn’t working for me. I will check back for 
   future versions in case that ends up working.
 * Best wishes.
 *  [professor99](https://wordpress.org/support/users/professor99/)
 * (@professor99)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/fatal-error-664/#post-3521953)
 * Hi wpnovice,
 * For reference the edit links on my dashboard are of the [http://%site%/%editPage%/?pid=136&_wpnonce=08420925a6](http://%site%/%editPage%/?pid=136&_wpnonce=08420925a6).
 * Did you try using the 2010/2011 themes to see if any problems disappeared?
 * Also FrontEnd version 1.1 needs permalinks to have %postname% in them. The latest
   [development](http://wordpress.org/support/topic/frontend-updates-2rrr-fork?replies=73)
   version doesn’t require this.
 * Worth trying the [development](http://wordpress.org/support/topic/frontend-updates-2rrr-fork?replies=73)
   version anyway as it has lots of new features and bug fixes

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

The topic ‘Fatal error’ is closed to new replies.

 * ![](https://ps.w.org/wp-user-frontend/assets/icon-256x256.gif?rev=3578622)
 * [User Frontend – Membership, User Registration, User Profile, User Directory & Content Restriction with Frontend Post Submission](https://wordpress.org/plugins/wp-user-frontend/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-user-frontend/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-user-frontend/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-user-frontend/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-user-frontend/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-user-frontend/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [professor99](https://wordpress.org/support/users/professor99/)
 * Last activity: [13 years, 5 months ago](https://wordpress.org/support/topic/fatal-error-664/#post-3521953)
 * Status: not resolved