• Resolved georgemocanu

    (@georgemocanu)


    After adding plugin via Plugin management inside WordPress, this is the message i get when i try to activate:

    Plugin could not be activated because it triggered a fatal error.

    Fatal error: Uncaught Error: Call to undefined function error_log() in /home/xxx/wp-includes/wp-db.php:1489 Stack trace: #0 /home/xxx/wp-includes/wp-db.php(1997): wpdb->print_error() #1 /home/xxx/wp-content/plugins/nextend-facebook-connect/nextend-social-login.php(547): wpdb->query() #2 /home/xxx/wp-includes/class-wp-hook.php(303): NextendSocialLogin::install() #3 /home/xxx/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters() #4 /home/xxx/wp-includes/plugin.php(470): WP_Hook->do_action() #5 /home/xxx/wp-admin/plugins.php(193): do_action() #6 {main} thrown in /home/xxx/wp-includes/wp-db.php on line 1489

    This error happens when i set PHP 8.0 as default version, if i switch to 7.4 all good. Any thoughts?

Viewing 1 replies (of 1 total)
  • Plugin Support Laszlo

    (@laszloszalvak)

    Hi @georgemocanu

    In our latest build we have fixed a bug exactly at the place where your error message points in our file.
    The problem was that we had some backwards compatibility codes that started running on clean installs, too.
    When I tested it on my local test site, it didn’t cause any problems, but if the error reporting is enabled on the site, the error will be logged. After the plugin activation the problem should no longer occur, since after the installation the condition to get into the backwards compatibility part will no longer be met, so it shouldn’t trigger an error either.

    Anyways if you still receive this error pointing to our file, even after you have already installed and activated the plugin, then please get in touch with us directly over the ticket system:

    and I will send you the installer of our latest build, that already contains the fix for this problem.

    Note:
    In your case I am not really sure if that is the only problem, since the error message you received actually points to a Core WordPress file, as your site won’t recognize the the PHP default error_log() function for some reason:

    in the print_error() function of WordPress:

    and that problem is not caused by Nextend Social Login. Just when we tried to run our database query, there was an error that your site tried to log. And since your site can not recognize the error_log() PHP function for some reason, it will cause this fatal error.

    Best regards,
    Laszlo.

Viewing 1 replies (of 1 total)
  • The topic ‘Fatal error when activating plugin’ is closed to new replies.