- Affected Version
- WoltLab Suite 5.4
- Affected App
- WoltLab Suite Core
Hallo,
seit dem neuesten Core Update scheint es Probleme mit der Database PHP API bei Primary Keys zu geben. Insbesondere geht es hier um folgendes Plugin:
WoltLab Cloud
File
Discord API
This plugin serves as an interface between other plugins and your Discord server. This plugin is especially relevant for developers. It can also be used as a base plugin for other plugins.

Hanashi
Vor dem Update konnte ich es problemlos installieren. Seitdem Update erhalte ich folgende Fehlermeldung:
- Requested URL
- POST /acp/index.php?install-package/&t=9ec3b8a191facae151de3b590ab16e60537439f69aa027e14cabd7a0631d01ad-6ksJPWOR0JIrsH75S8Grog==
- Referrer
- https://******/acp/index.php?package-start-install/&action=install
- Error Message
- Das Datenbanklayout konnte aufgrund folgender Fehler nicht aktualisiert werden: Der Primärindex wcf1_discord_webhook (webhookID) heißt nicht 'PRIMARY'.
- Type
- RuntimeException
- File (Line)
- /Users/******/www/wsc54/lib/system/database/table/DatabaseTableChangeProcessor.class.php (1120)
- Stacktrace
-
- /Users/******/www/wsc54/acp/install_dev.hanashi.wsc.discord-api.php (95): wcf\system\database\table\DatabaseTableChangeProcessor->process(…)
- /Users/******/www/wsc54/lib/system/package/plugin/ScriptPackageInstallationPlugin.class.php (84): include(…)
- /Users/******/www/wsc54/lib/system/package/plugin/ScriptPackageInstallationPlugin.class.php (59): wcf\system\package\plugin\ScriptPackageInstallationPlugin->run(…)
- /Users/******/www/wsc54/lib/system/package/PackageInstallationDispatcher.class.php (792): wcf\system\package\plugin\ScriptPackageInstallationPlugin->install(…)
- /Users/******/www/wsc54/lib/system/package/PackageInstallationDispatcher.class.php (153): wcf\system\package\PackageInstallationDispatcher->executePIP(…)
- /Users/******/www/wsc54/lib/acp/action/InstallPackageAction.class.php (82): wcf\system\package\PackageInstallationDispatcher->install(…)
- /Users/******/www/wsc54/lib/action/AbstractDialogAction.class.php (73): wcf\acp\action\InstallPackageAction->stepInstall(…)
- /Users/******/www/wsc54/lib/action/AbstractAction.class.php (53): wcf\action\AbstractDialogAction->execute(…)
- /Users/******/www/wsc54/lib/system/request/Request.class.php (89): wcf\action\AbstractAction->__run(…)
- /Users/******/www/wsc54/lib/system/request/RequestHandler.class.php (119): wcf\system\request\Request->execute(…)
- /Users/******/www/wsc54/acp/index.php (11): wcf\system\request\RequestHandler->handle(…)
So sieht der Teil aus für die Tabelle wcf1_discord_webhook:
PHP: install_dev.hanashi.wsc.discord-api.php
DatabaseTable::create('wcf1_discord_webhook')
->columns([
BigintDatabaseTableColumn::create('webhookID')
->length(20)
->notNull(),
BigintDatabaseTableColumn::create('channelID')
->length(20)
->notNull(),
NotNullInt10DatabaseTableColumn::create('botID'),
VarcharDatabaseTableColumn::create('webhookToken')
->length(100)
->notNull(),
VarcharDatabaseTableColumn::create('webhookName')
->length(50)
->notNull(),
VarcharDatabaseTableColumn::create('webhookTitle')
->length(100)
->notNull(),
VarcharDatabaseTableColumn::create('usageBy')
->length(100)
->notNull(),
NotNullInt10DatabaseTableColumn::create('webhookTime'),
])
->indices([
DatabaseTableIndex::create()
->type(DatabaseTableIndex::PRIMARY_TYPE)
->columns(['webhookID']),
]),
Display More