Could not execute statement 'ALTER TABLE -> userOption

  • Betroffene Version
    WoltLab Suite 5.3

    Hallo zusammen,

    ich habe diesen Thread gelesen:

    Could not execute statement 'ALTER TABLE -> userOption

    Und habe auch ein Problem beim installieren/deinstallieren eines Plugins.

    Folgende Fehler erhalte ich dabei:

    Spoiler anzeigen

    Was ist passiert?

    Leider ist es bei der Verarbeitung zu einem Fehler gekommen und die Ausführung wurde abgebrochen. Falls möglich, leiten Sie bitte den oben stehenden Fehlercode an den Administrator weiter.

    Administratoren können die vollständige Fehlermeldung mit Hilfe dieses Codes in der Administrationsoberfläche unter „Protokoll » Fehler“ einsehen. Zusätzlich wurden die Informationen in die Protokolldatei */log/2020-12-20.txt geschrieben und können beispielsweise mit Hilfe eines FTP-Programms abgerufen werden.

    Hinweis: Der Fehlercode wird zufällig generiert, erlaubt keinen Rückschluss auf die Ursache und ist daher für Dritte nutzlos.

    System Information

    • PHP Version:

      7.4.3

    • WoltLab Suite Core:

      5.2.10

    • Peak Memory Usage:

      3.08/128 MiB

    • Request URI:

      /core/acp/index.php?uninstall-package/&t=c4e49712b9528bc0ee0db3b1a6c72e369174753b

    • Referrer:

      https://hipo-mustang.com/core/acp/index.php?package-list/

    • User Agent:

      Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:84.0) Gecko/20100101 Firefox/84.0

    Spoiler anzeigen

    Original Error

    • Error Type:

      PDOException

    • Error Message:

      SQLSTATE[42000]: Syntax error or access violation: 1091 Can't DROP COLUMN `userOption32`; check that it exists

    • Error Code:

      42000

    • File:

      */lib/system/database/statement/PreparedStatement.class.php (93)

    • Stack Trace:

      • #0 */lib/system/database/statement/PreparedStatement.class.php (93):
      • PDOStatement->execute()
      • #1 */lib/system/database/editor/MySQLDatabaseEditor.class.php (291):
      • wcf\system\database\statement\PreparedStatement->execute()
      • #2 */lib/system/package/plugin/UserOptionPackageInstallationPlugin.class.php (187):
      • wcf\system\database\editor\MySQLDatabaseEditor->dropColumn()
      • #3 */lib/system/package/PackageUninstallationDispatcher.class.php (118):
      • wcf\system\package\plugin\UserOptionPackageInstallationPlugin->uninstall()
      • #4 */lib/system/package/PackageUninstallationDispatcher.class.php (74):
      • wcf\system\package\PackageUninstallationDispatcher->executePIP()
      • #5 */lib/acp/action/UninstallPackageAction.class.php (110):
      • wcf\system\package\PackageUninstallationDispatcher->uninstall()
      • #6 */lib/action/AbstractDialogAction.class.php (68):
      • wcf\acp\action\UninstallPackageAction->stepUninstall()
      • #7 */lib/action/AbstractAction.class.php (47):
      • wcf\action\AbstractDialogAction->execute()
      • #8 */lib/system/request/Request.class.php (83):
      • wcf\action\AbstractAction->__run()
      • #9 */lib/system/request/RequestHandler.class.php (107):
      • wcf\system\request\Request->execute()
      • #10 */acp/index.php (9):
      • wcf\system\request\RequestHandler->handle()
    Spoiler anzeigen

    Final Error

    • Error Type:

      wcf\system\database\exception\DatabaseQueryExecutionException

    • Error Message:

      Could not execute statement 'ALTER TABLE `wcf1_user_option_value` DROP COLUMN `userOption32`'

    • Error Code:

      42000

    • File:

      */lib/system/database/statement/PreparedStatement.class.php (105)

    • Stack Trace:

      • #0 */lib/system/database/editor/MySQLDatabaseEditor.class.php (291):
      • wcf\system\database\statement\PreparedStatement->execute()
      • #1 */lib/system/package/plugin/UserOptionPackageInstallationPlugin.class.php (187):
      • wcf\system\database\editor\MySQLDatabaseEditor->dropColumn()
      • #2 */lib/system/package/PackageUninstallationDispatcher.class.php (118):
      • wcf\system\package\plugin\UserOptionPackageInstallationPlugin->uninstall()
      • #3 */lib/system/package/PackageUninstallationDispatcher.class.php (74):
      • wcf\system\package\PackageUninstallationDispatcher->executePIP()
      • #4 */lib/acp/action/UninstallPackageAction.class.php (110):
      • wcf\system\package\PackageUninstallationDispatcher->uninstall()
      • #5 */lib/action/AbstractDialogAction.class.php (68):
      • wcf\acp\action\UninstallPackageAction->stepUninstall()
      • #6 */lib/action/AbstractAction.class.php (47):
      • wcf\action\AbstractDialogAction->execute()
      • #7 */lib/system/request/Request.class.php (83):
      • wcf\action\AbstractAction->__run()
      • #8 */lib/system/request/RequestHandler.class.php (107):
      • wcf\system\request\Request->execute()
      • #9 */acp/index.php (9):
      • wcf\system\request\RequestHandler->handle()

    Der Query:

    SELECT auto_increment FROM information_schema.tables WHERE table_schema = 'hipo_mustang_db1' AND table_name= 'wcf1_user_option';

    Gibt 33 zurück.

    Die höchste optionID  in der Tabelle wcf1_user_option ist 32.

    In wcf1_user_option_value gehen die Spalten bis 32.

    Irgendwie blicke ich hier nicht durch, was ich machen muss.

  • Hab ein Backup eingespielt und sehe einfach zu, dass ich keine Plugins mehr installiere ohne die zu testen. Hab nach dem Backup noch diverse andere zum Test installiert und es war kein Problem.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!