• Delighted to see that this simple but very helpful plugin has once again been activated and will get off the ‘deprecated’ list.

    I installed the 1.7 update, but the following error is being displayed on the dashboard page:

    “Warning: mysqli_connect(): (HY000/2002): Connection refused in /…/wp-content/plugins/display-php-version/display-php-version.php on line 38 Warning: mysqli_get_server_info() expects parameter 1 to be mysqli, bool given in /volume1/web/wordpress/wp-content/plugins/display-php-version/display-php-version.php on line 38”

    I don’t know if this is because my system is using MariaDB instead of MySQL as the display returns an blank for the MySQL entry.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author David Gwyer

    (@dgwyer)

    Thanks for reporting. I’ll take a look (from Monday) and get back to you.

    Plugin Author David Gwyer

    (@dgwyer)

    Are you running the plugin on a local WordPress site? If so I’ve had other reports that the DB_HOST value in wp-config.pgp should be set to 127.0.0.1 to fix any issues associated with MariaDB.

    • This reply was modified 3 years, 5 months ago by David Gwyer.
    Thread Starter Ian MP

    (@ianmp)

    Hello David, thanks for getting back.

    I’m running on a development server, but not a localhost as it has an external URL (for checking https etc). However, I have since installed it on my existing live site ( a simple 4-page static site) and it works fine, although that’s running MySQL and not MariaDB.

    To be sure, I tested it on a localhost (with & without your suggested change above but running MariaDB in both instances) and it also worked fine.

    So, back to my development site: it seems that the only difference is, while the original sites (live & localhost) were using the GeneratePress theme and running Elementor, my new site is using the Kadence theme with Kadence Blocks. My conclusion therefore is that it is either the Kadence theme or Kadence plugins. However, as both are integral to my site, I can’t disable either without breaking it but it does seem that Kadence is the problem.

    Hope this helps.

    Plugin Author David Gwyer

    (@dgwyer)

    Thanks for the update.

    However, I’m not sure how the current theme could be the issue as the plugin is querying the DB directly using the PHP function mysqli_get_server_info.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Error with MariaDB’ is closed to new replies.