Open titanofold opened 2 years ago
@titanofold I can have a look at whether my test environment supports PostgreSQL, but am not sure how to fix this. Do you have a recommendation, ideally: Could you submit a Pull Request for this?
Is there a workaround around this? I have been bitten when upgrading Serendipity almost two years after this issue stalled. How would I get my blog back up?
If it is only the test environment that is missing, I can provide a VM with Debian stable/testing/unstable (your choice), a PostgreSQL database, apache, PHP (what ever is part of the Debian you chose) and root.
@Zugschlus Could you try a fix for me?
In include/db/postgres.inc.php, there is this code in line 218:
@serendipity_db_query('SET default_with_oids = true', true, 'both', false, false, false, true);
Does the blog work if you remove that line?
If I read the stacktrace correctly this is where the error is coming from, it's also the only place in the core where default_with_oids
is set. Removing it could make everything work directly.
I'm going to try that in the next few days. Since i have rolled back the machine to the last working state in the mean time, I need to build a reference box. Thanks for helping!
My site is no longer loading with a recent upgrade for PostgreSQL.
WITH OIDs has actually been deprecated since 2005. There was a mailing list announcement from 2018 that has some details: https://www.postgresql.org/message-id/E1gPG3j-0003cy-03%40gemulon.postgresql.org