Opened 7 years ago

Closed 7 years ago

#1070 closed defect (fixed)

Installation von Anwendungen schlägt fehl

Reported by: dahlecr Owned by: kramer
Priority: must Milestone: Contrexx 3.0 SP3
Component: ContentManager Version: 3.0.1
Severity: critical Keywords:
Cc:

Description (last modified by thomas.daeppen)

Beim Versuch eine Anwendung zu installieren (via Administration > Anwendungen) wird diese nicht installiert und es erscheint eine weisse Seite (siehe unten stehender Fehler).

Fehler-Log:

Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '1-639-Cx\Model\ContentManager\Page' for key 'log_class_unique_version_idx'' in /lib/doctrine/vendor/doctrine-dbal/lib/Doctrine/DBAL/Connection.php:651
Stack trace:
#0 /lib/doctrine/vendor/doctrine-dbal/lib/Doctrine/DBAL/Connection.php(651): PDOStatement->execute()
#1 /lib/doctrine/Doctrine/ORM/Persisters/BasicEntityPersister.php(359): Doctrine\DBAL\Connection->executeUpdate('UPDATE contrexx...', Array, Array)
#2 /lib/doctrine/Doctrine/ORM/Persisters/BasicEntityPersister.php(302): Doctrine\ORM\Persisters\BasicEntityPersister->_updateTable(Object(Gedmo\Loggable\Entity\LogEntry), 'contrexx_log_en...', Array, NULL)
#3 /lib/doctrine/Doctrine/ORM/UnitOfWork.php(346): Doctrine\ORM\Persisters\BasicE in /lib/doctrine/vendor/doctrine-dbal/lib/Doctrine/DBAL/Connection.php on line 651 

Lösungsvorschlag:

Der AUTO_INCREMENT-Wert von contrexx_content_page muss erhöht werden.

$newAutoIncrement = (SELECT MAX( CONVERT( `object_id`, UNSIGNED ) ) FROM `contrexx_log_entry` WHERE `object_class` = 'Cx\\Model\\ContentManager\\Page') + 1;
ALTER TABLE  `contrexx_content_page` AUTO_INCREMENT = $newAutoIncrement

Attachments (1)

r23933.zip (2.4 KB) - added by kramer 7 years ago.

Download all attachments as: .zip

Change History (12)

comment:1 Changed 7 years ago by thomas.daeppen

  • Component changed from lib/DBG to core
  • Milestone changed from unknown to Contrexx 3.0 SP2
  • Owner changed from comvation to thomas.daeppen

comment:2 Changed 7 years ago by thomas.daeppen

  • Milestone changed from Contrexx 3.0 SP2 to Contrexx 3.0 SP3
  • Owner changed from thomas.daeppen to comvation

comment:3 Changed 7 years ago by thomas.daeppen

  • Component changed from core to core/ContentManager
  • Description modified (diff)
  • Priority changed from high to must
  • Severity changed from normal to critical

comment:4 Changed 7 years ago by thomas.daeppen

  • Description modified (diff)

comment:5 Changed 7 years ago by thomas.daeppen

  • Description modified (diff)

comment:6 Changed 7 years ago by thomas.daeppen

  • Description modified (diff)

comment:7 Changed 7 years ago by thomas.daeppen

  • Owner changed from comvation to michael.raess

comment:8 Changed 7 years ago by michael.raess

  • Owner michael.raess deleted

comment:9 Changed 7 years ago by michael.raess

  • Owner set to comvation

comment:10 Changed 7 years ago by kramer

  • Owner changed from comvation to kramer
  • Status changed from new to assigned

Changed 7 years ago by kramer

comment:11 Changed 7 years ago by kramer

  • Resolution set to fixed
  • Status changed from assigned to closed

https://github.com/Cloudrexx/cloudrexx/commit/ff87d3d4d3c38a5e2d7bad5790d30358170c4ca1 Der Fehler wurde behoben. Um den Bugfix einzuspielen, müssen die Inhalte des Archivs r23933.zip in das Hauptverzeichnis von Contrexx kopiert werden.

Note: See TracTickets for help on using tickets.