Open SamTyurenkov opened 8 months ago
I haven't tested this yet either tbh but I'm hopeful it was fixed by https://github.com/PostgreSQL-For-Wordpress/postgresql-for-wordpress/pull/101
There's a few bugs in 3.4 to patch though before re-testing deeper, most notably the regex case insensitive change mentioned here: https://github.com/PostgreSQL-For-Wordpress/postgresql-for-wordpress/issues/109#issuecomment-1989150761
Deprecated issue still exists, this is a change which can be added to 3.4.1
This line could be changed to pull connection from the global variable, but actually I think this line should not be there https://github.com/PostgreSQL-For-Wordpress/postgresql-for-wordpress/blob/c7e3fbd50bb5363c84b39a611f65b9c699c7f63f/pg4wp/driver_pgsql_rewrite.php#L95
This is the rewrite class and as such any calls to pg_ should not live here. This seems to be the only such case and is left in by accident.
I think instead maybe this code can be moved to https://github.com/PostgreSQL-For-Wordpress/postgresql-for-wordpress/blob/c7e3fbd50bb5363c84b39a611f65b9c699c7f63f/pg4wp/driver_pgsql.php#L559
Maybe wpsqli_query could be recursive so at the bottom it would contain
if(isset($GLOBALS['pg4wp_queued_query'])) {
$queuedSQL = $GLOBALS['pg4wp_queued_query'];
unset($GLOBALS['pg4wp_queued_query']);
wpsqli_query($connection, $queuedSQL, $result_mode);
pg_query($GLOBALS['pg4wp_queued_query']);
}
Maybe this is already fixed, didnt test with latest master yet.
WP Version: 6.4.3 PG4WP Version: master downloaded in january 2024
Error:
Basically wordpress seems to be installed, but there was a Deprecated and Warning.