Skip to content

Conversation

JanJakes
Copy link
Member

@JanJakes JanJakes commented Jun 6, 2025

Require DB_NAME to be set only in the new driver.

As reported in #194 (comment):

I have this plugin on a site, and the Plugins admin page offered me the upgrade. I upgraded, and it broke the site, due to previously I did not have define( 'DB_NAME', '...' ); in wp-config.php.

The error message was:

Error: Undefined constant "DB_NAME" in .../wp-content/plugins/sqlite-database-integration/wp-includes/sqlite/db.php on line 69

@JanJakes JanJakes requested a review from adamziel June 6, 2025 09:15
@adamziel
Copy link
Collaborator

adamziel commented Jun 6, 2025

In the new message let's explain it's about the DB_NAME constant and why do we need it in SQLite

@JanJakes
Copy link
Member Author

JanJakes commented Jun 6, 2025

@adamziel 👍 I improved the comment.

@adamziel adamziel merged commit e401ef1 into develop Jun 6, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants