• Resolved Rasel Siddiqe

    (@rsiddiqe)


    I am trying to test out the plugin on a Local WordPress installation running a backup of my website. I wasn’t able to access the console due to this Critical error on the site.

    This is the error as reported by WordPress to my admin email

    An error of type E_ERROR was caused in line 1253 of the file /Users/…../wp-content/plugins/pexlechris-adminer/inc/adminer.php. Error message: Uncaught TypeError: mysqli::real_connect(): Argument #5 ($port) must be of type ?int, string given in /app/public/wp-content/plugins/pexlechris-adminer/inc/adminer.php:1253

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Pexle Chris

    (@pexlechris)

    Hello, what php version do you use?

    Plugin Author Pexle Chris

    (@pexlechris)

    Also, if you change (is_numeric($gg)?$gg:ini_get("mysqli.default_port")) this string in adminer.php with this (int(is_numeric($gg)?$gg:ini_get("mysqli.default_port"))) , is the problem solved?

    Thread Starter Rasel Siddiqe

    (@rsiddiqe)

    php version: 8.1.23

    Let me test out the solution

    Thread Starter Rasel Siddiqe

    (@rsiddiqe)

    Sorry it took so long for me to get back to this. Swapped the bit of code. Didn’t fix the issue.

    Plugin Author Pexle Chris

    (@pexlechris)

    I don’t know what to do. I cannot reproduce the error…

    Thread Starter Rasel Siddiqe

    (@rsiddiqe)

    I understand it might not be the same on your end. So, I tried it out with a completely fresh install. Only This plugin was added.

    In the previous installs, the critical error page was showing. On the fresh install it’s stuck on this page. Which indicates my backup might be corrupted because it leads to critical error.

    Here’s the config of my Local WP.

    Hope this gives you enough context about Local in general disregarding the issues on my backup.

    Plugin Author Pexle Chris

    (@pexlechris)

    Did you do the attempts from your own? Or automatically tried to connect with wrong passwords?

    Thread Starter Rasel Siddiqe

    (@rsiddiqe)

    I installed the plugin. There was no prompt for any credentials. Trying to access the plugin from the top bar is giving this error. Wasn’t able to access the plugin interface.

    Plugin Author Pexle Chris

    (@pexlechris)

    Is the DB_PASSWORD defined as empty value in your wp-config.php ?

    Is the DB_HOST ‘localhost’ ?

    I cannot reproduce the error. In my WP Local Windows 10 laptop working correctly!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Critical Error on Local WP’ is closed to new replies.