Uncaught Error: Call to a member function get_page_permastruct() on null
-
Hi,
I installed the plugin on a website and it is working perfect, but on another website it give me this error:
Fatal error: Uncaught Error: Call to a member function get_page_permastruct() on null in /home/user/public_html/wp-includes/link-template.php:435 Stack trace: #0 /home/user/public_html/wp-includes/link-template.php(397): _get_page_link(Object(WP_Post), false, false) #1 /home/user/public_html/wp-includes/link-template.php(197): get_page_link(Object(WP_Post), false, false) #2 /home/user/public_html/wp-content/plugins/wp-user-avatar/src/Classes/ModifyRedirectDefaultLinks.php(121): get_permalink(Object(WP_Post)) #3 /home/user/public_html/wp-includes/class-wp-hook.php(310): ProfilePress\Core\Classes\ModifyRedirectDefaultLinks->set_login_url_func('https://theauhc...', '', false) #4 /home/user/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters('https://theauhc...', Array) #5 /home/user/public_html/wp-includes/general-template.php(467): apply_filters('login_url', 'https://theauhc...', '', false) #6 /home/user/public_html/wp-content/plugins/wpo365-msgraphmailer/Services/Options_Service.php(173): wp_login_url() #7 /home/user/public_html/wp-content/plugins/wpo365-msgraphmailer/Services/Options_Service.php(576): Wpo\Services\Options_Service::get_default_options() #8 /home/user/public_html/wp-content/plugins/wpo365-msgraphmailer/Services/Options_Service.php(529): Wpo\Services\Options_Service::ensure_options_cache() #9 /home/user/public_html/wp-content/plugins/wpo365-msgraphmailer/Services/Options_Service.php(31): Wpo\Services\Options_Service::get_global_var('debug_log', false) #10 /home/user/public_html/wp-content/plugins/wpo365-msgraphmailer/Services/Request_Service.php(38): Wpo\Services\Options_Service::get_global_boolean_var('debug_log', false) #11 /home/user/public_html/wp-content/plugins/wpo365-msgraphmailer/wpo365-msgraphmailer.php(76): Wpo\Services\Request_Service::get_instance(true) #12 /home/user/public_html/wp-content/plugins/wpo365-msgraphmailer/wpo365-msgraphmailer.php(56): Wpo\MsGraphMailer->cache_dependencies() #13 /home/user/public_html/wp-includes/class-wp-hook.php(310): Wpo\MsGraphMailer->load('') #14 /home/user/public_html/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters(NULL, Array) #15 /home/user/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #16 /home/user/public_html/wp-settings.php(495): do_action('plugins_loaded') #17 /home/user/public_html/wp-config.php(96): require_once('/home/theauhclu...') #18 /home/user/public_html/wp-load.php(50): require_once('/home/theauhclu...') #19 /home/user/public_html/wp-admin/admin.php(34): require_once('/home/theauhclu...') #20 /home/user/public_html/wp-admin/plugins.php(10): require_once('/home/theauhclu...') #21 {main} thrown in /home/user/public_html/wp-includes/link-template.php on line 435
After some troubleshooting, I found that the error vanishes when I disable all the plugins. However, when I attempt to reactivate the other plugins individually, I can’t pinpoint which one is conflicting with yours, as the error seems to occur randomly.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Uncaught Error: Call to a member function get_page_permastruct() on null’ is closed to new replies.