0 votes
in SoSci Survey (dt.) by s189415 (110 points)
closed by SoSci Survey

Hallo lieber SoSci Support,

wir bekommen seit dem 14. Juli folgende Fehler in den Server-Wartungs-E-Mails. Sie treten nicht an allen Tagen (14., 16., 20., 27. Juli) und zu jeweils unterschiedlichen Uhrzeiten auf, werden also vermutlich von Nutzern ausgelöst.
Handelt es sich um Fehler im SoSci-Code oder haben wir etwas in den Umfragen verbockt?

Viele Grüße und Dank vorab für sachdienliche Hinweise :-)

Aufgezeichnete Fehler
[26-Jul-2021 11:06:41 Europe/Berlin] SQL error
MYSQL.1064: You have an error in your SQL syntax; check the manual
that corresponds to your MySQL server version for the right syntax to
use near '%d) AND (a.status=%s) ORDER BY u.login' at line 4 SELECT
u., a. FROM ofb.ofb_authorisations a LEFT JOIN
ofb.ofb_users u ON (a.user = u.id) WHERE
(FIND_IN_SET("authorize", a.authorisation) > 0) AND (a.project = %d)
AND (a.status=%s) ORDER BY u.login Thread 83ac
DbQuery::construct((integer)1, 'SELECT u., a. FROM ofb...', (array)) in inc/Project.php on line 1100 Project::htmlProjectAdmins('retrieveData') in inc/DataRetrieval.php on line 2377 [26-Jul-2021 11:06:41 Europe/Berlin] PHP Notice: Invalid SQL query caused error MYSQL.1064 (please contact the server responsible) in /var/www/sosci_3_2_33/inc/DbQuery.php on line 474 [26-Jul-2021 11:06:41 Europe/Berlin] Information on MySQL error MYSQL.1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '%d) AND (a.status=%s) ORDER BY u.login' at line 4 SQL query: SELECT u.*, a.* FROM ofb.ofb_authorisations a LEFT JOIN ofb.ofb_users u ON (a.user = u.id) WHERE (FIND_IN_SET("authorize", a.authorisation) > 0) AND (a.project = %d) AND (a.status=%s) ORDER BY u.login <br>- called GeneralFramework::getStack((integer)-1) in inc/DbQuery.php on line 475 <br>- called DbQuery::run() in inc/DbQuery.php on line 94 <br>- called DbQuery::__construct((integer)1, 'SELECT u.*, a.* FROM ofb...',
(array)) in inc/Project.php on line 1100
- called
Project::htmlProjectAdmins('retrieveData') in inc/DataRetrieval.php on
line 2377
- called DataRetrieval::handleRequest('return') in
admin/index.php on line 422
- called AdminIndex::handleRequest()
in admin/index.php on line 40
- triggered [26-Jul-2021 11:06:41 Europe/Berlin] PHP Warning: Unknown text element authorisation.no admin for class Project/3
-
called GeneralFramework::getStack((integer)-1) in inc/Lang.php on line
137
- called Lang::getElement('Project', (integer)3,
'authorisation.no admin') in inc/Lang.php on line 732
- called
Lang::text('Project', (integer)3, 'authorisation.no admin') in
inc/Project.php on line 1107
- called
Project::htmlProjectAdmins('retrieveData') in inc/DataRetrieval.php on
line 2377
- called DataRetrieval::handleRequest('return') in
admin/index.php on line 422
- called AdminIndex::handleRequest()
in admin/index.php on line 40
- triggered in /var/www/sosci_3_2_33/inc/Lang.php on line 137 [26-Jul-2021 11:06:44 Europe/Berlin] SQL error MYSQL.1064: You have an
error in your SQL syntax; check the manual that corresponds to your
MySQL server version for the right syntax to use near '%d) AND
(a.status=%s) ORDER BY u.login' at line 4 SELECT u., a. FROM
ofb.ofb_authorisations a LEFT JOIN ofb.ofb_users u ON
(a.user = u.id) WHERE (FIND_IN_SET("authorize", a.authorisation) >
0) AND (a.project = %d) AND (a.status=%s) ORDER BY u.login Thread
5cca DbQuery::
construct((integer)1, 'SELECT u., a. FROM
ofb...', (array)) in inc/Project.php on line 1100 Project::htmlProjectAdmins('retrieveData') in inc/DataRetrieval.php on line 2377 [26-Jul-2021 11:06:44 Europe/Berlin] PHP Notice: Invalid SQL query caused error MYSQL.1064 (please contact the server responsible) in /var/www/sosci_3_2_33/inc/DbQuery.php on line 474 [26-Jul-2021 11:06:44 Europe/Berlin] Information on MySQL error MYSQL.1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '%d) AND (a.status=%s) ORDER BY u.login' at line 4 SQL query: SELECT u.*, a.* FROM ofb.ofb_authorisations a LEFT JOIN ofb.ofb_users u ON (a.user = u.id) WHERE (FIND_IN_SET("authorize", a.authorisation) > 0) AND (a.project = %d) AND (a.status=%s) ORDER BY u.login <br>- called GeneralFramework::getStack((integer)-1) in inc/DbQuery.php on line 475 <br>- called DbQuery::run() in inc/DbQuery.php on line 94 <br>- called DbQuery::__construct((integer)1, 'SELECT u.*, a.* FROM ofb...',
(array)) in inc/Project.php on line 1100
- called
Project::htmlProjectAdmins('retrieveData') in inc/DataRetrieval.php on
line 2377
- called DataRetrieval::handleRequest(false) in
admin/index.php on line 422
- called AdminIndex::handleRequest()
in admin/index.php on line 40
- triggered ...

closed with the note: Es liegen keine weiteren Informationen zu dem Problem vor, welche für eine hilfreiche Antwort erforderlich wären.
by SoSci Survey (302k points)
Die Platzhalter im Query lassen darauf schließen, dass die Werte bei der Abfrage nicht korrekt eingesetzt wurden.

Die entsprechende Funktion htmlProjectAdmins() wird traditionell in Projekten aktiv, wenn diese für mehrere Personen freigegeben sind, aber nicht alle Personen alle Berechtigungen haben. Wenn zum Beispiel wenn eine Person keine Berechtigung zum Mailversand im Projekt hast und dennoch diese Funktion aufruft.

Könnten Sie als erstes bitte überprüfen, welche Version von SoSci Survey Sie auf dem Server installiert haben und ob beim Update alle Dateien aus dem Archiv sauber auf den Server kopiert wurden? In den Versionen ab 3.2.30 können Sie letzteres unter Server-Wartung -> System-Status prüfen lassen ("Überprüfe Programmdateien").

Willkommen im Online-Support von SoSci Survey.

Hier bekommen Sie schnelle und fundierte Antworten von anderen Projektleitern und direkt von SoSci Survey.

→ Eine Frage stellen


Welcome to the SoSci Survey online support.

Simply ask a question to quickly get answers from other professionals, and directly from SoSci Survey.

→ Ask a Question

...