Thread Starter
ericwb
(@ericwb)
I’ve found out that the content of the schema_name field in information_schema.schemata is not the same as the name of the database in $wpdb->dbname.
As I can’t change information_schema of the DB, any other idea to fix that ?
Hi Eric,
Where are you getting this error? Is this a remote or a local database? Can you add a screenshot? You can use the plugin website if you prefer to send it in private.
Thanks,
Peter
Thread Starter
ericwb
(@ericwb)
Hey Peter,
Thank you for your answer.
I’ve been reading your php scripts and I think I’ve found out the “why” but now i’m searching for the “how” !
It seems you suppose that the schema_name field in information_schema.schemata should be the same than the dbname of the WP database (found in WPDA_Dictionary_Exist.php for instance).
Unfortunately in my Mysql DB the value of this field is “information_schema” (obtained via the following query “SELECT * FROM information_schema.schemata”) that is not the same as the DB name in the wp-config.php file.
The database is the WP database hosted at sql.free.fr.
I tried to modify the WPDA_Dictionary_Exist.php script (removing “WHERE schema_name = %s”) and it works but, of course, I’ve some other issues in other scripts using information_schema.
What can be the best and more evolutive way to solve this as I cannot change the information_schema data and cannot change the DB name. I don’t think that modifying all needed scripts is the good way…
Hi Eric,
So this is a local database that does not contain your WordPress tables? Is that correct?
On which pages are you getting this error?
Thanks,
Peter
Thread Starter
ericwb
(@ericwb)
Peter,
It’s local DB that contains the WP tables.
I’ve the error on …wp-admin/plugins.php when trying to activate WPDA.
Rgds,
Hi Eric,
The plugin repository tables are installed in the same database as your WordPress tables and access through the same class wpdb. If your WordPress tables are found, your repository tables should be found as well. I wonder what is going wrong?
Can you give me temporary access to your dashboard? You can use the contactform on the plugin website to send information in private.
Thanks,
Peter