Title: Error get_page_permastruct
Last modified: August 18, 2023

---

# Error get_page_permastruct

 *  Resolved [cintyatakahaschi](https://wordpress.org/support/users/cintyatakahaschi/)
 * (@cintyatakahaschi)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/error-get_page_permastruct/)
 * I’m getting the same error of [this ](https://wordpress.org/support/topic/error-about-get_page_permastruct-when-activating-maintenance-mode/)
   post – i.e. get the error: “Call to a member function get_extra_permastruct()
   on null” when Activate the Status of LightStart. After pressing the F5 key everything
   is okay, and the plugin seems to be working.
 * I don’t have the plugin WP Super Cache, so I can’t apply the same solution of
   the other post.
 * The error I get, with all plugins disabled except LightStart and WP Debugging
   disabled is:
 *     ```wp-block-code
       Fatal error: Uncaught Error: Call to a member function get_extra_permastruct() on null in /var/www/my_domain/wp-includes/taxonomy.php:4602 Stack trace: #0 /var/www/my_domain/wp-includes/nav-menu.php(921): get_term_link() #1 [internal function]: wp_setup_nav_menu_item() #2 /var/www/my_domain/wp-includes/nav-menu.php(732): array_map() #3 /var/www/my_domain/wp-includes/nav-menu.php(1144): wp_get_nav_menu_items() #4 /var/www/my_domain/wp-includes/class-wp-hook.php(310): _wp_auto_add_pages_to_menu() #5 /var/www/my_domain/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters() #6 /var/www/my_domain/wp-includes/plugin.php(517): WP_Hook->do_action() #7 /var/www/my_domain/wp-includes/post.php(5381): do_action() #8 /var/www/my_domain/wp-includes/post.php(4913): wp_transition_post_status() #9 /var/www/my_domain/wp-content/plugins/wp-maintenance-mode/includes/classes/wp-maintenance-mode.php(101): wp_publish_post() #10 /var/www/my_domain/wp-content/plugins/wp-maintenance-mode/includes/classes/wp-maintenance-mode.php(167): WP_Maintenance_Mode->__construct() #11 /var/www/my_domain/wp-includes/class-wp-hook.php(310): WP_Maintenance_Mode::get_instance() #12 /var/www/my_domain/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters() #13 /var/www/my_domain/wp-includes/plugin.php(517): WP_Hook->do_action() #14 /var/www/my_domain/wp-settings.php(495): do_action() #15 /var/www/my_domain/wp-config.php(115): require_once('…') #16 /var/www/my_domain/wp-load.php(50): require_once('…') #17 /var/www/my_domain/wp-admin/admin.php(34): require_once('…') #18 {main} thrown in /var/www/my_domain/wp-includes/taxonomy.php on line 4602
   
       Notice: Function is_embed was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /var/www/my_domain/wp-includes/functions.php on line 5905
   
       Notice: Function is_search was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /var/www/my_domain/wp-includes/functions.php on line 5905
   
       There has been a critical error on this website. Please check your site admin email inbox for instructions.
       ```
   
 * I’m using WordPress 6.3, PHP-FPM 8.0.30, MySQL 8.0.34.
 * Is there anything I can do to avoid this error?

Viewing 1 replies (of 1 total)

 *  [luciamarinescu](https://wordpress.org/support/users/luciamarinescu/)
 * (@luciamarinescu)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/error-get_page_permastruct/#post-17014852)
 * Hi [@cintyatakahaschi](https://wordpress.org/support/users/cintyatakahaschi/),
 * Thanks for choosing LightStart!
 * This is not a general issue with the plugin, so it occurs due to something from
   your environment. Please try to make a fresh install of the plugin and check 
   if this helps solve the issue.
 * I hope this helps!

Viewing 1 replies (of 1 total)

The topic ‘Error get_page_permastruct’ is closed to new replies.

 * ![](https://ps.w.org/wp-maintenance-mode/assets/icon-256x256.gif?rev=3027645)
 * [LightStart - Maintenance Mode, Coming Soon and Landing Page Builder](https://wordpress.org/plugins/wp-maintenance-mode/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-maintenance-mode/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-maintenance-mode/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-maintenance-mode/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-maintenance-mode/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-maintenance-mode/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [luciamarinescu](https://wordpress.org/support/users/luciamarinescu/)
 * Last activity: [2 years, 9 months ago](https://wordpress.org/support/topic/error-get_page_permastruct/#post-17014852)
 * Status: resolved