Statistik |
Beiträge: 144.531 (Täglich: 19,19 )
Themen: 16.700
Mitglieder: 13.209
Neuestes Mitglied: zitronentee.
Ausl. d. letzten Minute: 326%
Ausl. d. letzten 5 Minuten: 322%
Ausl. d. letzten 15 Minuten: 294%
Aktulle Uhrzeit: 22:12
Freier Webspace: 4.04 TB
PHP-Version: 7.4.33
|
|
|
|
|
WoltLab Burning Board Lite 1.0.2pl3 |
|
Hallo Schrimm,
bei der angepassten acp/board.php kommt eine Fehlermeldung, wenn man ein Forum in eine andere Kategorie verschieben möchte. (Einbau nochmals kontrolliert)
code: |
1:
2:
3:
4:
5:
6:
|
Database error in WoltLab Burning Board: Invalid SQL: UPDATE bb1_boards SET styleid='0', parentid='1', parentlist='0,'1'', title='neu', password='', description='', allowbbcode='1', allowimages='1', allowhtml='0', allowsmilies='1', allowicons='1', daysprune='0', threadsperpage='0', postsperpage='0', postorder='0', hotthread_reply='0', hotthread_view='0' , closed='0', isboard='1', invisible='0' WHERE boardid='5'
mysql error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '1'', title='neu', password='', description='', allowbbcode='1', allowimages='1',' at line 2
mysql error number: 1064
Date: 17.05.2015 @ 18:05
Script: /wbblite/acp/board.php
Referer: http://board.bplaced.net/wbblite/acp/board.php?action=edit&boardid=5&sid= |
|
=> parentlist='0,'1''
Flüchtigkeitsfehler in der bugfix.zip
acp/structure.sql => in acp/lib/structure.sql
In der setup.php steht:
$query=implode("",file("./lib/structure.sql"));
EDIT: Anbei die acp/board.php
lg
Stine
__________________ lg Stine
Dieser Beitrag wurde 1 mal editiert, zum letzten Mal von Stine: 19.05.2015 15:09.
|
|
19.05.2015 12:34 |
|
|
|
Huhu Stine,
versuch mal die Datei
|
|
19.05.2015 23:35 |
|
|
|
Vielen Dank fleeting20,
keine Änderung, Fehlermeldung sowie oben gepostet.
__________________ lg Stine
|
|
20.05.2015 09:35 |
|
|
|
Ok. Und wie schauts mit der Datei aus?
|
|
20.05.2015 12:09 |
|
|
|
Vielen Dank fleeting20,
es funktioniert
Abschnitt WoltLab Burning Board Lite 1.0.2pl3
acp/board.php
Suche: $parentlist.=",$parentid";
Ersetze durch: $parentlist.=",".intval($parentid);
Wenn man das geändert hat, dann kommt die Fehlermeldung
lg
Stine
__________________ lg Stine
|
|
20.05.2015 13:47 |
|
|
|
Nicht verwunderlich.
Wenn dann müsste es so ausschauen:
code: |
1:
|
$parentlist .= ",'".intval($parentid)."'"; |
|
|
|
20.05.2015 18:13 |
|
|
|
Wenn man das $parentlist.=",".intval($parentid); einfügt , dann kommt die SQL Fehlermeldung.
__________________ lg Stine
|
|
20.05.2015 18:22 |
|
|
|
Nimm den Code den ich gepostet habe
|
|
20.05.2015 18:37 |
|
|
|
Hallo,
|
Zitat: Original von Stine
Suche: $parentlist.=",$parentid";
Ersetze durch: $parentlist.=",".intval($parentid);
Wenn man das geändert hat, dann kommt die Fehlermeldung
lg
Stine |
|
|
Sicher nicht...
|
Zitat: Original von fleeting20
Nicht verwunderlich.
Wenn dann müsste es so ausschauen:
$parentlist .= ",'".intval($parentid)."'"; |
|
|
Nein, darf es nicht, denn genau deshalb entsteht der Fehler.
__________________
|
|
20.05.2015 20:50 |
|
|
|
Öhm nein. Du öffnest einen String in einer variable und schließt den String direkt. Gefolgt von einem intval Wert und dann erst schließt du Anweisung 1 ($parentlist)
|
|
20.05.2015 20:58 |
|
|
|
|
|
|