Forum Replies Created
I activated the hotfix again, but if the technical team wants to take a look, please tell them to go into the code snippets plugin and deactivate Download manager HOTFIX
Thank you for the quick replies, unfortunately updating didn’t resolve the issue
PHP Fatal Uncaught Error: Call to a member function get_page_permastruct() on null
Stack trace:
#0 /wp-includes/link-template.php(397): _get_page_link(Object(WP_Post), false, false)
#1 /wp-content/plugins/download-manager/src/User/Login.php(322): get_page_link(Object(WP_Post))
#2 /wp-includes/class-wp-hook.php(324): WPDM\User\Login->loginURL(‘https://profoun…’, ”, false)
#3 /wp-includes/plugin.php(205): WP_Hook->apply_filters(‘https://profoun…’, Array)
#4 /wp-includes/general-template.php(467): apply_filters(‘login_url’, ‘https://profoun…’, ”, false)
#5 /wp-content/plugins/translatepress-personal/add-ons-advanced/seo-pack/includes/class-slug-manager.php(1408): wp_login_url()
#6 /wp-includes/class-wp-hook.php(324): TRP_IN_SP_Slug_Manager->verify_if_is_admin_link_for_slug_translation(false, ‘https://profoun…’)
#7 /wp-includes/plugin.php(205): WP_Hook->apply_filters(false, Array)
#8 /wp-content/plugins/translatepress-personal/add-ons-advanced/seo-pack/includes/class-slug-manager.php(1353): apply_filters(‘trp_is_admin_li…’, false, ‘https://profoun…’)
#9 /wp-includes/class-wp-hook.php(324): TRP_IN_SP_Slug_Manager->translate_request_uri(”)
#10 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
#11 /wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#12 /wp-settings.php(578): do_action(‘plugins_loaded’)
#13 /wp-config.php(97): require_once(‘/data/sites/web…’)
#14 /wp-load.php(50): require_once(‘/data/sites/web…’)
#15 /wp-blog-header.php(13): require_once(‘/data/sites/web…’)
#16 /index.php(17): require(‘/data/sites/web…’)
#17 {main} thrown in /wp-includes/link-template.php on line 435
WordPress core
File: /wp-admin/link-template.php
Line: 435
Alright, please let me know when there is an update because people can get this error now because I disabled the fix
I disabled our snippet. Now if you use the language switcher from English to Dutch it will generate the critical error. Please reply asap so either you can fix it or I will enable the snippet again, as this problem is now visible for users.
Can I safely share the login details here? For now I implemented this snippet. It seems to solve the problem but it surely isnt ideal.
add_filter(‘login_url’, function ($url) {
// Stop any remaining callbacks from running on this hook
remove_all_filters(‘login_url’);
return $url;
}, PHP_INT_MIN, 3);