• Resolved banija

    (@banijadev)


    Fatal error: Uncaught Error: mysqli_query(): Argument #1 ($mysql) must be of type mysqli, bool given

    Call stack:

    1. mysqli_query()
      wp-content/plugins/wptools/functions/functions_benchmark.php:185
    2. wptools_test_mysql()
      wp-content/plugins/wptools/functions/functions_benchmark.php:77
    3. wptools_test_benchmark()
      wp-content/plugins/wptools/functions/functions.php:1084
    4. wptools_options_benchmark()
      wp-includes/class-wp-hook.php:310
    5. WP_Hook::apply_filters()
      wp-includes/class-wp-hook.php:334
    6. WP_Hook::do_action()
      wp-includes/plugin.php:517
    7. do_action()
      wp-admin/admin.php:259
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Bill Minozzi

    (@sminozzi)

    Hi Banija,

    I’m working to discover why it doesn’t work on your server. I will improve the code and let you know later today

    Cheers,

    Bill

    Plugin Author Bill Minozzi

    (@sminozzi)

    Hi again Banija

    I’ve redesigned the function with improvements, including placing all database calls within a protected area and configured it to log any failures to the error_log file.


    This will prevent any fatal errors before record the error log.
    If there’s a failure, you can check why in the ‘Dashboard => WP Tools => Show errors’.
    Additionally, perform a test to check for any issues in your databases using the
    ‘Dashboard => WP Tools => Check Mysql Tables’ menu.

    You can download the new file here:
    https://wptoolsplugin.com/functions_benchmark.zip


    After download that, uncompress and upload (functions_benchmark.php) to this folder:
    wp-content/plugins/WP Tools/trunk/functions/

    Please, let me know if that works on your server or more details about the error.

    Cheers,

    Bill

    Plugin Author Bill Minozzi

    (@sminozzi)

    Hi Banija,

    The new version (404) encapsulates benchmark database calls within a protected area using PHP Try-Catch. In the event of an error, including potential fatal errors, the system first logs the error to the error log file. Subsequently, on our ‘Show Errors’ page, you can review the details of what went wrong with your database call.

    Cheers,

    Bill

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Fatal error: Uncaught Error: mysqli_query()’ is closed to new replies.