Conversation
supportYour include statements from line 4 and 5 in plugins/wp-db-driver/inc/db-driver.php are wrong: require( dirname( __FILE__ ) . '/inc/error-handler.php' ); require( dirname( __FILE__ ) . '/inc/interface-wp-db-driver.php' ); There’s no other inc directory in inc. Result is a fatal error: Warning: require(/var/www/wordpress/wp-content/plugins/wp-db-driver/inc/inc/error-handler.php): failed to open stream: No such file or directory in /var/www/wordpress/wp-content/plugins/wp-db-driver/inc/db-driver.php on line 5 Fatal error: require(): Failed opening required '/var/www/wordpress/wp-content/plugins/wp-db-driver/inc/inc/error-handler.php' (include_path='.:/usr/local/lib/php') in /var/www/wordpress/wp-content/plugins/wp-db-driver/inc/db-driver.php on line 5 https://wordpress.org/plugins/wp-db-driver/
Oops. I wanted to keep the history and forgot to update that file. Released new update. Thanks for notifying me.
Same goes for line 577 in wp-db-driver/inc/db-driver.php Need to replace this: require_once( dirname( __FILE__ ) . '/drivers/' . $driver . '.php' ); with this: require_once( dirname( __FILE__ ) . '/../drivers/' . $driver . '.php' );
That whole file was outdated and has been updated now.
That was quick! Can you please point us to the github repo. Thank you.
That would be https://github.com/markoheijnen/wp-db-driver/ .
Thanks, Marko! And thanks for this plugin. You should have 1 million + downloads per month if people knew how important is to make use of the PDO driver instead of what WordPress is using by default.
Oops. I wanted to keep the history and forgot to update that file. Released new update. Thanks for notifying me.
Same goes for line 577 in wp-db-driver/inc/db-driver.php Need to replace this: require_once( dirname( __FILE__ ) . '/drivers/' . $driver . '.php' ); with this: require_once( dirname( __FILE__ ) . '/../drivers/' . $driver . '.php' );
That whole file was outdated and has been updated now.
That was quick! Can you please point us to the github repo. Thank you.
That would be https://github.com/markoheijnen/wp-db-driver/ .
Thanks, Marko! And thanks for this plugin. You should have 1 million + downloads per month if people knew how important is to make use of the PDO driver instead of what WordPress is using by default.