• Resolved roadlink

    (@roadlink)


    Hi there,

    We started to see this error for every login.

    Fatal error: Uncaught Error: Call to a member function get_page_permastruct() on null in /wp-includes/link-template.php:435
    Stack Trace
    1. _get_page_link()/wp-includes/link-template.php:397
    2. get_page_link()/wp-includes/link-template.php:197
    3. get_permalink()/wp-content/plugins/wp-2fa/includes/classes/class-wp2fa.php:706
    4. WP2FA\WP2FA::replace_email_strings()/wp-content/plugins/wp-2fa/includes/classes/Admin/Helpers/class-user-helper.php:1301
    5. WP2FA\Admin\Helpers\User_Helper::send_expired_grace_email()/wp-content/plugins/wp-2fa/includes/classes/Admin/Helpers/class-user-helper.php:1398
    6. WP2FA\Admin\Helpers\User_Helper::lock_user_account_if_needed()/wp-content/plugins/wp-2fa/includes/classes/Admin/Helpers/class-user-helper.php:2060
    7. WP2FA\Admin\Helpers\User_Helper::update_meta_if_necessary()/wp-content/plugins/wp-2fa/includes/classes/Admin/Helpers/class-user-helper.php:2167
    8. WP2FA\Admin\Helpers\User_Helper::set_proper_user()/wp-content/plugins/wp-2fa/includes/classes/Admin/Helpers/class-user-helper.php:878
    9. WP2FA\Admin\Helpers\User_Helper::get_user_role()/wp-content/plugins/wp-2fa/includes/classes/Admin/Controllers/class-settings.php:252
    10. WP2FA\Admin\Controllers\Settings::get_role_or_default_setting()/wp-content/plugins/wp-2fa/includes/classes/Admin/Methods/class-email.php:89
    11. WP2FA\Methods\Email::WP2FA\Methods\{closure}()/wp-includes/class-wp-hook.php:324
    12. WP_Hook->apply_filters()/wp-includes/plugin.php:205
    13. apply_filters()/wp-content/plugins/wp-2fa/includes/classes/Admin/Controllers/class-methods.php:60
    14. WP2FA\Admin\Controllers\Methods::get_available_2fa_methods()/wp-content/plugins/wp-2fa/includes/classes/Admin/class-user-notices.php:43
    15. WP2FA\Admin\User_Notices::init()/wp-content/plugins/wp-2fa/includes/classes/class-wp2fa.php:232
    16. WP2FA\WP2FA::init()/wp-includes/class-wp-hook.php:324
    17. WP_Hook->apply_filters()/wp-includes/class-wp-hook.php:348
    18. WP_Hook->do_action()/wp-includes/plugin.php:517
    19. do_action()/wp-settings.php:559
    20. require_once('...')/wp-config.php:103
    21. require_once('...')/wp-load.php:50
    22. require_once('...')/wp-blog-header.php:13
    23. require('...')/index.php:17
    24. {main}
    thrown in /wp-includes/link-template.php on line 435
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Lucian Padureanu

    (@lucianwpwhite)

    Hello @roadlink,

    I’m really sorry to hear about the trouble you’re facing — and thank you for reaching out to us!

    In order to better understand and assist with the issue you’re experiencing, could you kindly provide us with a bit more context? Specifically, it would be helpful if you could confirm or clarify the following:

    1. Are you currently running the latest version of the plugin (v2.8.0)? If not, please update to the latest version first and let us know if the issue persists.
    2. Could you share the versions of PHP and WordPress core that are currently running on your site?
    3. Do you recall when this issue began? Was it after a particular change — such as a plugin update, a new plugin installation, or any modifications made to your site’s structure?
    4. Since the error references get_page_permastruct(), this might be linked to your site’s permalink settings.
      • Can you confirm what structure you are using?
      • You can view this under Settings → Permalinks (/wp-admin/options-permalink.php).
      • A screenshot or the permalink setting in text format would be really helpful.
      • Were there any recent changes to this structure or related configuration?
    5. Are you using the default WordPress login form when this issue occurs, or a custom login form provided by another plugin or theme?

      If you’re using a custom login, can you test using the native login page (/wp-login.php) to check if the issue still occurs there during login?

    With this info, we’ll be in a much better position to identify the cause and look for a solution.

    Looking forward to your reply so we can get to the bottom of this!

    Thread Starter roadlink

    (@roadlink)

    Hi there,

    1. Yes, it is 2.8.0. I downloaded it and install again. Didn’t solve.
    2. PHP 8.3 and latest wordpress (6.7.2) / woocommerce (9.8.1)
    3. Started 2 days ago, We keep updating plugins daily basis. I can tell the exact reason.
    4. I saved permalinks again just in case. It is arranged like this. /%post_id%/%postname%/
    5. I am using regular my account page login. But I was using a plugin to limit login numbers. Deactivated it and will try again.

    Plugin Support Lucian Padureanu

    (@lucianwpwhite)

    Hi @roadlink,

    Thanks a lot for the detailed follow-up!

    I’ve opened an internal ticket and shared all the information you’ve provided so far with our team—we’ll definitely look into this further and try to get to the bottom of it. This is the first time we’ve seen this particular issue reported with the context you shared, so your input is super helpful.

    Have you noticed any change in behavior since deactivating the plugin you mentioned (the one that was limiting login attempts)? Just checking whether that had any impact on the issue you’re experiencing.

    Can you also confirm the name of that plugin (we might need it to try and reproduce this ourselves) as well as what “Regular my account login page ” means and it refers to the native WordPress login form or something else? We wanted to ensure we understand the form used in reproducing this error (also helpful for later on while testing).

    We really appreciate your patience and cooperation while we investigate this. Looking forward to your update as well in the meantime.

    Thread Starter roadlink

    (@roadlink)

    The issue is continue with new settings.

    Plugin Support Lucian Padureanu

    (@lucianwpwhite)

    Hi @roadlink,

    Thanks for your reply, and apologies for the delay in getting back to you!

    We’re still unable to reproduce this issue on our side, and since you’re the only user who has reported it so far, your feedback is really valuable in helping us get to the bottom of it. I just wanted to follow up on a few of the questions from my earlier message—any additional details you can provide would be appreciated:

    1. Did you notice any change in behavior after deactivating the plugin that was limiting login attempts?
      Just trying to confirm whether that had any impact at all on the login/2FA process.
    2. Could you please confirm the name of that plugin if it’s the one causing problems indeed?
      We may try to install it locally to reproduce the behavior you’re seeing.
    3. When you say “Regular my account login page,” are you referring to the native WordPress login page (wp-login.php), or is it a custom login form (e.g., WooCommerce, Elementor, or something else)?
    4. Have you tried switching to a different permalink structure temporarily?
      It might be worth testing this on a staging site to see if the issue still occurs under a different setup.
    5. Lastly, for troubleshooting:
      If possible, please try disabling all plugins except WP 2FA and see if the issue persists. Then, re-enable the plugins one by one until the problem comes back. That would give us a much clearer idea of what might be interfering.

    Thanks again for your continued cooperation—we’re doing our best to help, and these extra details will make a big difference.

    Plugin Support Lucian Padureanu

    (@lucianwpwhite)

    Hello @roadlink !

    Just a quick follow-up message to let you know that the newly released WP 2FA version 2.9.0 includes additional code tweaks that should suppress/fix the error reported.

    Feel free to update to the latest version — I’m confident this will take care of it!

    Let me know if anything else comes up.

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

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