• Resolved sgb02

    (@sgb02)


    Just updated the plgin a few days ago. We found that disabling this plugin removed the fatal error.

    see:
    Mon Sep 02 01:48:01.012342 2019] [php7:error] [pid 3205] [client 172.31.86.154:26144] PHP Fatal error: Uncaught Error: Call to a member function get_page_permastruct() on null in /var/app/current/wp-includes/link-template.php:373\nStack trace:\n#0 /var/app/current/wp-includes/link-template.php(335): _get_page_link(Object(WP_Post), false, false)\n#1 /var/app/current/wp-includes/link-template.php(146): get_page_link(Object(WP_Post), false, false)\n#2 /var/app/current/wp-content/plugins/userswp/includes/class-templates.php(321): get_permalink(Object(WP_Post))\n#3 /var/app/current/wp-includes/class-wp-hook.php(286): UsersWP_Templates->wp_login_url(‘https://srv04.s…’, ”, false)\n#4 /var/app/current/wp-includes/plugin.php(208): WP_Hook->apply_filters(‘https://srv04.s…’, Array)\n#5 /var/app/current/wp-includes/general-template.php(405): apply_filters(‘login_url’, ‘https://srv04.s…’, ”, false)\n#6 /var/app/current/wp-content/plugins/wp-security-audit-log/wp-security-audit-log.php(388): wp_login_url()\n#7 /var/app/current/wp-content/plugins/wp-security-audit-log/wp-security-audit-log.php(228): WpSecurityAuditLog::is_log in /var/app/current/wp-includes/link-template.php on line 373

    The page I need help with: [log in to see the link]

Viewing 9 replies - 16 through 24 (of 24 total)
  • Plugin Support robertabela

    (@robert681)

    Thank you all. We can confirm that currently there is an issue with custom login pages. We are working on it and should have a fix within a few days.

    Sorry for the inconvenience caused.

    Hello,

    We are also using Theme My Login and UsersWP on one website, and also got this fatal error after the last update. Removing the plugin and installing it again fixed the issue.

    Thank you all
    David Duarte

    Plugin Support robertabela

    (@robert681)

    Hello @sgb02 @adalist @tmuka @1bjk903

    We have just released update 3.5, which addresses the issue you were encountering. Please update the plugin and let me know should you encounter any issues.

    Hi @robert681

    I had the same issue after updating from 3.4.2 to 3.5 with wp-cli resulting in the website frontend failing.
    `
    Stack trace:
    #0 /var/www/example.com/htdocs/wp-includes/link-template.php(335): _get_page_link(Object(WP_Post), false, false)
    #1 /var/www/example.com/htdocs/wp-includes/link-template.php(146): get_page_link(Object(WP_Post), false, false)
    #2 /var/www/example.com/htdocs/wp-content/mu-plugins/includes/class-theme-my-login.php(954): get_permalink(Object(WP_Post))
    #3 /var/www/example.com/htdocs/wp-content/mu-plugins/includes/class-theme-my-login.php(690): Theme_My_Login::get_page_link(‘login’, Array)
    #4 /var/www/example.com/htdocs/wp-includes/class-wp-hook.php(288): Theme_My_Login->site_url(‘https://example.com’, ‘wp-login.php’, NULL)
    #5 /var/www/example.com/htdocs/wp-includes/plugin.php(208): WP_Hook->apply_filters(‘https://example.com’, Array)
    #6 /var/www/example.com/htdocs/wp-includes/link-template.php(3190): apply_filters(‘site_u in /var/www/example.com/htdocs/wp-includes/link-template.php on line 373
    Error: The site is experiencing technical difficulties.
    `

    to fix it i reverted to the older version with wp plugin install --force --version=3.4.2 wp-security-audit-log

    Plugin Support robertabela

    (@robert681)

    Thank you for your answer @tmuka

    I have tried a vanilla WordPress install with our plugin and Theme My Login, and there are no issues.

    In fact we no longer wp_login_url either. Do you have a staging site where we can run some tests? If yes, please send us the details on [email protected] referring this ticket. We’d like to nail down this issue if it is caused by our plugin.

    Thread Starter sgb02

    (@sgb02)

    The Fatal Error seems to be gone in my quick testing – on our vanilla test site.

    • This reply was modified 5 years, 2 months ago by sgb02.
    Plugin Support robertabela

    (@robert681)

    Thank you for the update @sgb02

    Should you encounter any other issues please let me know.

    Hey @robert681

    Sorry I missed your reply about this last week. Unfortunately I’m unable to share access to my site or hosting environment, but I wonder if it helps to know it’s a WPMU install? Have you tested with WPMU? I can see if i can setup a vanilla MU site to see if I can recreate the issue.

    the debug.log look like this…

    
    [25-Sep-2019 17:01:07 UTC] PHP Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; AT_Audit has a deprecated constructor in /var/www/wpmu.example.com/htdocs/wp-content/plugins/audit-trail/models/audit.php on line 29
    [25-Sep-2019 17:01:13 UTC] PHP Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; AT_Audit has a deprecated constructor in /var/www/wpmu.example.com/htdocs/wp-content/plugins/audit-trail/models/audit.php on line 29
    [25-Sep-2019 17:01:16 UTC] PHP Fatal error:  Uncaught Error: Call to a member function get_page_permastruct() on null in /var/www/wpmu.example.com/htdocs/wp-includes/link-template.php:373 Stack trace:
    #0 /var/www/wpmu.example.com/htdocs/wp-includes/link-template.php(335): _get_page_link(Object(WP_Post), false, false)
    #1 /var/www/wpmu.example.com/htdocs/wp-includes/link-template.php(146): get_page_link(Object(WP_Post), false, false)
    #2 /var/www/wpmu.example.com/htdocs/wp-content/mu-plugins/includes/class-theme-my-login.php(954): get_permalink(Object(WP_Post))
    #3 /var/www/wpmu.example.com/htdocs/wp-content/mu-plugins/includes/class-theme-my-login.php(690): Theme_My_Login::get_page_link('login', Array)
    #4 /var/www/wpmu.example.com/htdocs/wp-includes/class-wp-hook.php(288): Theme_My_Login->site_url('https://wpmu.exa...', 'wp-login.php', NULL)
    #5 /var/www/wpmu.example.com/htdocs/wp-includes/plugin.php(208): WP_Hook->apply_filters('https://wpmu.exa...', Array)
    #6 /var/www/wpmu.example.com/htdocs/wp-includes/link-template.php(3190): apply_filters('site_u in /var/www/wpmu.example.com/htdocs/wp-includes/link-template.php on line 373
    [25-Sep-2019 17:01:18 UTC] PHP Fatal error:  Uncaught Error: Call to a member function get_page_permastruct() on null in /var/www/wpmu.example.com/htdocs/wp-includes/link-template
    

    Thanks!

    • This reply was modified 5 years, 2 months ago by tmuka.
    Plugin Support robertabela

    (@robert681)

    No problem at all @tmuka

    However, this is getting a bit complex. So can you please contact us via email on [email protected]?

    We’d like to learn more about your setup so we can replicate this in our testing environment.

    Looking forward to hearing from you.

Viewing 9 replies - 16 through 24 (of 24 total)
  • The topic ‘Fatal Error with WP Security Audit Log’ is closed to new replies.