aaemnnosttv / wp-sqlite-db

A single file drop-in for using a SQLite database with WordPress. Based on the original SQLite Integration plugin.
561 stars 94 forks source link

db_connect method not being overridden #40

Closed mioxyz closed 2 years ago

mioxyz commented 2 years ago

I'm new to wordpress. I'm getting the following error when initializing the database over the wordpress web setup tool:

Wed Sep 14 15:51:38 2022] [::1]:45770 [500]: POST /wp-admin/setup-config.php?step=2 - Uncaught Error: Call to undefined function mysql_connect() in /home/mio/code/wordpress/wp-includes/wp-db.php:1788
Stack trace:
#0 /home/mio/code/wordpress/wp-admin/setup-config.php(308): wpdb->db_connect()
#1 {main}
  thrown in /home/mio/code/wordpress/wp-includes/wp-db.php on line 1788

it seems as though wp-db.php isn't being overridden by db.php (line 1788 is within the db_connect method of wp-db.php and not of db.php) I used composer to install the plugin, which copied db.php to ./wp-content/db.php.