-
Notifications
You must be signed in to change notification settings - Fork 89
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
git/master: admin backend failing at several places with postgresql error message #743
Comments
@stephanbrunker since you made the last change, maybe you remember your intentions and can see quicker what might be wrong? |
Already got it. Too much phpMyAdmin … there the default SQL for "fetch all" is "where 1" , but PostgreSQL doesn't seem to like that. I reordered the statements and changed '1=1' to '1' and that doesn't work. Corrected that. But I had to fix the function even if it was never changed since 14 years because with certain arguments (which obviously never occurred before), two 'WHERE' statements are generated in a single request which also would produce a SQL error. |
So should we close this issue? |
@UweKrause Is this fixed for you when you edit your installation as shown in stephanbrunker@cb4530f ? |
I don't have that installation anymore, but I created a new instance the same way as before with the code from the current master branch (therefore with the new changes). This issue ("admin backend fails at several places (New Entry, Edit Entries, Media library, Plugins, Users, Groups)") might be closed. After installation, the very first time entering the administration interface, there is another error (reproducible). |
Thanks for investigating this and for the new bug report, not many of us run s9y with postgres. I will close this issue then :) |
With the current version (master branch) and postgresql as db-engine, the admin backend fails at several places (New Entry, Edit Entries, Media library, Plugins, Users, Groups) due to a problem with postgresql SQL query string.
Fresh install, fresh debian 10, nothing else on this machine.
I use postgresql for the current stable version (2.3.5 as downloaded from the homepage: no problems) and for the master branch (problems).
php error Message below, the sql query is build in
includes/functions.inc.php
, starting here:Serendipity/include/functions.inc.php
Line 363 in bd3a9ec
According to git blame
( https://github.com/s9y/Serendipity/blame/bd3a9ec8324e3eb83409372dba7e0fe3ea03eb54/include/functions.inc.php#L363 ) the code for building the query was touched 3 month ago ( ac6c2d5 ) (after release 2.3.5).
Even if I so far don't understand what was changed there, my first bet would be to look at the commit.
The surrounding code is 14 years old, which might be a proof of being stable, or might be the problem ;-)
The text was updated successfully, but these errors were encountered: