• Resolved Jeff Daigle

    (@jeff-daigle)


    Hi, when upgrading to version 4.4.10 of the plugin we are getting a fatal error.

    The full error is:
    Fatal error: Uncaught Error: Call to undefined function get_user_by() in /wp-includes/meta.php:1660 Stack trace: #0 /wp-includes/meta.php(176): get_object_subtype('user', 1) #1 /wp-includes/user.php(1049): update_metadata('user', 1, 'show_welcome_sc...', 1, '') #2 /wp-content/install.php(33): update_user_meta(1, 'show_welcome_sc...', 1) #3 /wp-admin/includes/upgrade.php(13): require('/nas/content/li...') #4 /wp-content/plugins/all-in-one-wp-security-and-firewall/classes/wp-security-debug-logger.php(43): require_once('/nas/content/li...') #5 /wp-content/plugins/all-in-one-wp-security-and-firewall/classes/wp-security-debug-logger.php(19): AIOWPSecurity_Logger->maybe_create_debug_log_table() #6 /wp-content/plugins/all-in-one-wp-security-and-firewall/wp-security-core.php(135): AIOWPSecurity_Logger->__construct(fal in /wp-includes/meta.php on line 1660

    We’re on WordPress 5.8.3 and the hosting environment is WP Engine.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Support vupdraft

    (@vupdraft)

    Hi,

    Can you try downloading and installing a fresh copy from here: https://www.ads-software.com/plugins/all-in-one-wp-security-and-firewall/
    Do you get the same error?

    Thread Starter Jeff Daigle

    (@jeff-daigle)

    That link goes to a different plugin, but I already tried downloading the latest version of this plugin (4.4.10) from https://www.ads-software.com/plugins/all-in-one-wp-security-and-firewall/ and installing a fresh copy and I continued to get the error.

    Plugin Support vupdraft

    (@vupdraft)

    Hi Jeff,

    Apologies.

    From what I see, there is a call that tries to add the user but this call fails.

    Can you test if you can reproduce the issue in a minimal setup? ( Disabling all not needed plugins and leaving just the All-in-one plugin + a default theme )
    If the issues persists can you the reactive you theme and plugins until the issue re-appears and let us know which one is causing the issue?

    I suspect that there might be a plugin or custom code that might be affecting the working of the site. The function that is generating the error is built into WordPress

    Hi vupdraft – I’m getting the same error as Jeff is. I still see the error when I’m using the default WordPress 2021 theme and when all plugins are deactivated except for the All in One WP Security and Firewall. Please advise any further troubleshooting techniques to narrow down. Our site was running perfectly before we updated this plugin to the latest version. Could there be an issue in the updated code of the plugin?

    Plugin Contributor mbrsolution

    (@mbrsolution)

    Hi, I am curious to know what PHP version is your server running?

    Thank you.

    Hi mbrsolution – Good question. We are running PHP 7.4.27.

    Thread Starter Jeff Daigle

    (@jeff-daigle)

    We are on 7.4.26.

    Plugin Contributor Prashant Baldha

    (@pmbaldha)

    I have tested the All In One WP Security Plugin latest version in PHP 7.4.1, but I am not able to replicate the issue!

    Plugin Support vupdraft

    (@vupdraft)

    Can you try adding the following to your capabilities.php . Add it at the top of the file after the php opening tag:

    include_once(ABSPATH . ‘wp-includes/pluggable.php’);

    Save the file and copy it back up to your wp-includes folder.
    Does that make any difference or is the error still there?

    Hi vupdraft,
    Thanks for your suggestion. I added the line you suggested to the capabilities.php file. And tested again with the WordPress 2021 active and all plugin directories renamed (to simulate deactivating) except for the All in One WP Security & Firewall plugin and I still see the same error. I also see many warning messages in the error_log file. I included the line of code exactly as you had suggested but I’m wondering if it’s not quite correct for my configuration possibly? If you’d like I can send you the text of the error messages in the error_log file or send the file itself somehow.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Fatal Error in AIOWPSecurity_Logger->maybe_create_debug_log_table()’ is closed to new replies.