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
After upgrading to PHP 8.1 from 7.4 I’m getting this warning many, many times in my error log whenever I load the adminer interface:Trying to access array offset on null in C:\wamp64\www\redacted\wp-content\plugins\pexlechris-adminer\inc\adminer.php on line
On lines: 1183, 1775, 1776, 1781
Not sure if it’s related, but it also corresponded to me creating a database with this structure:
$blast_sends_table_name = $wpdb->prefix . 'redacted';
$blast_sends_sql = "CREATE TABLE IF NOT EXISTS $blast_sends_table_name (
userId VARCHAR(32) NOT NULL,
campaignId INT NOT NULL,
PRIMARY KEY (userId, campaignId),
INDEX campaignId (campaignId),
INDEX userId (userId)
) $charset_collate;";
]]>
Followed instructions on WP dashboard to install plugin.
Adminer link installed on top menu and in the Tools menu of Dashboard.
Clicking link = “The requested URL was not found on this server”
Don’t know why. The linked folder for site/wp-adminer was not found with a file manager on my server.
This is a fresh WP site with Divi theme installed and Adminer and nothing? else.
The site is hosted on my Ubuntu 20.04 server managed with Webmin/Virtualmin which is also a fresh install.
If Chris wants the password to fiddle with the site he is welcome.
]]>I use this nice plugin on my website. However, It works not on a WordPress installed on a subdomain. How can I fix this?
Example:
fmbb.be here it works fine
2024.fmbb.be here it is not working.
Hello,
I would like to create an INSERT INTO Routine with both “IN” and “OUT”.
What’s the correct syntax?
https://imageupload.io/UKQQx4rAuzJ0iRL
Thanks
]]>Hello,
on pressing “SQL Command” after running a query, the result is a page fault with this message “Oops, looks like the page is lost. – This is not a fault, just an accident that was not intentional.”
<?php
function extend_configuration() {
function adminer_object() {
include_once PEXLECHRIS_ADMINER_DIR . '/inc/class-pexlechris-adminer.php';
include_once "./plugins/plugin.php";
include_once "./plugins/login-password-less.php";
class AdminerCustomization extends \AdminerPlugin {
function loginFormField($name, $heading, $value) {
return parent::loginFormField($name, $heading, str_replace('value="server"', 'value="sqlite"', $value));
}
function database() {
return WP_CONTENT_DIR . '/database/.ht.sqlite';
}
}
return new AdminerCustomization(array(
new \Pexlechris_Adminer(),
new \AdminerLoginPasswordLess(password_hash("password", PASSWORD_DEFAULT)),
));
}
}
add_action('pexlechris_adminer_before_adminer_loads', 'extend_configuration', 999);
Following setup for Adminer Plugins, I cannot get this work for sqlite ??
]]>Hi, i wanted to check the current version of this plugin is safe to use with WP 6.2.2 (the plugin says it has only been tested to 6.1.3).
]]>I’m using a plugin to rename and block access to wp-admin. there is no other way to use Adminer unless I unblock wp-admin temporarily.
So is there any specific rule that I can use in .htaccess so that I can force Adminer to use the new wp-admin path instead ?
Or is it possible for you to put a new feature in your plugin for that matter in case wp-admin is blocked and redirected to a new path ?
]]>First of all, thank you for your plugin.
I made a new site on Local(by flywheel) and installed this plugin.
And I clicked “Open Adminer in a new tab” button in plugin’s option screen, then I encountered wp_die screen saying “There has been a critical error on this website. ...
” after an auto-redirection from adminer login screen.
The error from error.log is below.
[29-Dec-2022 02:15:23 UTC] PHP Fatal error: Uncaught TypeError: mysqli::real_connect(): Argument #5 ($port) must be of type ?int, string given in /Users/{user_id}/Local Sites/{site_dir}/app/public/wp-content/plugins/pexlechris-adminer/inc/adminer.php:1253
My environment is here.
Am I missing something to do?
Is it possible to limit the access to an user (or, if not possible, to admin too) to some table and, better, to some table in a DB different from the one used by WP?
I need to allow some user to edit some DB data, but don’t want them to delete other tables content for mistake.
It would be ok on wp-config too.
Thanks
]]>The /iframe/wp-adminer
page just pre-fills the form, so it means users may continue to have access to the database even if you revoke their access to the plugin.
The permission you’ve used (manage_options
) grants subsite admins access to other sites’ data on multisite installs, too.
Hi Chris,
I created a similar plugin with one of the Adminer themes, but slighly modified here and there to achieve a cleaner look. Would you be interested to incorporate that into this/your plugin?
https://github.com/qriouslad/database-admin
~Bowo
]]>