johnbillion/query-monitor

Compatibility with WordPress Playground

johnbillion opened this issue · 0 comments

WordPress Playground uses SQLite which QM is already compatible with, but it doesn't load the mysqli extension like a regular installation of PHP running WordPress. This causes QM to fatal because it unconditionally calls mysqli_get_client_version() which doesn't exist on WPPG.

Let's improve compatibility with WPPG and only call mysqli functions if they exist.

Looks like $_SERVER isn't fully populated too so need to look into that.

Screenshot

Screenshot_20230725_002923_Brave