Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check if $_ENV['WP_SQLITE_AST_DRIVER'] is defined #37

Merged
merged 1 commit into from
Mar 28, 2025

Conversation

bgrgicak
Copy link
Contributor

If both WP_SQLITE_AST_DRIVER and $_ENV['WP_SQLITE_AST_DRIVER'] aren't defined the SQLite database integration plugin plugin throws a warning on the site.

Warning: Undefined array key "WP_SQLITE_AST_DRIVER" in /var/www/html/wp-content/mu-plugins/sqlite-database-integration/constants.php on line 56

This fix ensures $_ENV['WP_SQLITE_AST_DRIVER'] is set before reading it.

@bgrgicak bgrgicak self-assigned this Mar 28, 2025
@bgrgicak bgrgicak requested a review from JanJakes March 28, 2025 09:38
Copy link
Contributor

@JanJakes JanJakes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, thanks!

@bgrgicak bgrgicak merged commit b87897e into develop Mar 28, 2025
10 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