Hallo
Wollte gestern das News System Installieren was auch Fehlerfrei klappte, auch eine News schreiben geht jedoch beim Absenden und beim aufrufen des Beitrages erhalte ich folgenden Fehler.
Code
Could not prepare statement 'SELECT ,user_rank.*, news_update.* FROM news1_news_update news_update LEFT JOIN wcf1_user user_table ON (user_table.userID = news_update.userID) LEFT JOIN wcf1_user_avatar user_avatar ON (user_avatar.avatarID = user_table.avatarID) LEFT JOIN wcf1_user_option_value user_option_value ON (user_option_value.userID = user_table.userID) LEFT JOIN wcf1_user_rank user_rank ON (user_rank.rankID = user_table.rankID) WHERE news_update.newsID = ? ORDER BY news_update.time DESC'
Datum
13. Dezember 2021, 23:55
Aufgerufene URL
GET /news/news/1-xxxx/
Referrer
https://domai.tld/news/
Browser
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15
Arbeitsspeicher
11,22 MiB / 128 MiB
Fehlermeldung
Could not prepare statement 'SELECT ,user_rank.*, news_update.* FROM news1_news_update news_update LEFT JOIN wcf1_user user_table ON (user_table.userID = news_update.userID) LEFT JOIN wcf1_user_avatar user_avatar ON (user_avatar.avatarID = user_table.avatarID) LEFT JOIN wcf1_user_option_value user_option_value ON (user_option_value.userID = user_table.userID) LEFT JOIN wcf1_user_rank user_rank ON (user_rank.rankID = user_table.rankID) WHERE news_update.newsID = ? ORDER BY news_update.time DESC'
Art
wcf\system\database\exception\DatabaseQueryException
Datei (Zeile)
/var/www/vhosts/.../lib/system/database/Database.class.php (333)
Stacktrace
/var/www/vhosts/.../lib/data/DatabaseObjectList.class.php (203): wcf\system\database\Database->prepareStatement(…)
/var/www/vhosts/.../news/lib/data/news/update/ViewableNewsUpdateList.class.php (76): wcf\data\DatabaseObjectList->readObjects(…)
/var/www/vhosts/.../news/lib/data/news/News.class.php (150): news\data\news\update\ViewableNewsUpdateList->readObjects(…)
/var/www/vhosts/.../lib/data/DatabaseObjectDecorator.class.php (96): news\data\news\News->getNewsUpdates(…)
/var/www/vhosts/.../news/lib/data/news/NewsAction.class.php (802): wcf\data\DatabaseObjectDecorator->__call(…)
/var/www/vhosts/.../lib/data/AbstractDatabaseObjectAction.class.php (216): news\data\news\NewsAction->markAsRead(…)
/var/www/vhosts/.../news/lib/page/AbstractNewsPage.class.php (92): wcf\data\AbstractDatabaseObjectAction->executeAction(…)
/var/www/vhosts/.../news/lib/page/NewsPage.class.php (84): news\page\AbstractNewsPage->readData(…)
/var/www/vhosts/.../lib/page/AbstractPage.class.php (339): news\page\NewsPage->readData(…)
/var/www/vhosts/.../lib/page/AbstractPage.class.php (122): wcf\page\AbstractPage->show(…)
/var/www/vhosts/.../lib/system/request/Request.class.php (89): wcf\page\AbstractPage->__run(…)
/var/www/vhosts/.../lib/system/request/RequestHandler.class.php (119): wcf\system\request\Request->execute(…)
/var/www/vhosts/.../news/index.php (10): wcf\system\request\RequestHandler->handle(…)
Fehlermeldung
SQLSTATE[42000]: Syntax error or access violation: 1064 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 'user_rank.*, news_update.* FR...' at line 1
Art
PDOException
Datei (Zeile)
/var/www/vhosts/.../lib/system/database/Database.class.php (328)
Stacktrace
/var/www/vhosts/.../lib/system/database/Database.class.php (328): PDO->prepare(…)
/var/www/vhosts/.../lib/data/DatabaseObjectList.class.php (203): wcf\system\database\Database->prepareStatement(…)
/var/www/vhosts/.../news/lib/data/news/update/ViewableNewsUpdateList.class.php (76): wcf\data\DatabaseObjectList->readObjects(…)
/var/www/vhosts/.../news/lib/data/news/News.class.php (150): news\data\news\update\ViewableNewsUpdateList->readObjects(…)
/var/www/vhosts/.../lib/data/DatabaseObjectDecorator.class.php (96): news\data\news\News->getNewsUpdates(…)
/var/www/vhosts/.../news/lib/data/news/NewsAction.class.php (802): wcf\data\DatabaseObjectDecorator->__call(…)
/var/www/vhosts/.../lib/data/AbstractDatabaseObjectAction.class.php (216): news\data\news\NewsAction->markAsRead(…)
/var/www/vhosts/.../news/lib/page/AbstractNewsPage.class.php (92): wcf\data\AbstractDatabaseObjectAction->executeAction(…)
/var/www/vhosts/.../news/lib/page/NewsPage.class.php (84): news\page\AbstractNewsPage->readData(…)
/var/www/vhosts/.../lib/page/AbstractPage.class.php (339): news\page\NewsPage->readData(…)
/var/www/vhosts/.../lib/page/AbstractPage.class.php (122): wcf\page\AbstractPage->show(…)
/var/www/vhosts/.../lib/system/request/Request.class.php (89): wcf\page\AbstractPage->__run(…)
/var/www/vhosts/.../lib/system/request/RequestHandler.class.php (119): wcf\system\request\Request->execute(…)
/var/www/vhosts/.../news/index.php (10): wcf\system\request\RequestHandler->handle(…)
Alles anzeigen