Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Error when I delete API's client #2369

Closed
prolibre opened this issue Oct 5, 2016 · 1 comment
Closed

Bug: Error when I delete API's client #2369

prolibre opened this issue Oct 5, 2016 · 1 comment

Comments

@prolibre
Copy link

prolibre commented Oct 5, 2016

Issue details

When i delete a API's client
Lorsque je tente de supprimer un client de l'API j'ai une erreur sql.

Internal Server Error
An exception occurred while executing 'DELETE FROM wallabag_oauth2_clients WHERE id = ?' with params [1]: SQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint fails (sql-wallabag.wallabag_oauth2_access_tokens, CONSTRAINT FK_368A420919EB6921 FOREIGN KEY (client_id) REFERENCES wallabag_oauth2_clients (id))

Logs :

[2016-10-05 10:37:08] request.CRITICAL: Uncaught PHP Exception Doctrine\DBAL\Exception\ForeignKeyConstraintViolationException: "An exception occurred while executing 'DELETE FROM wallabag_oauth2_clients WHERE id = ?' with params [1]: SQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint fails (sql-wallabag.wallabag_oauth2_access_tokens, CONSTRAINTFK_368A420919EB6921FOREIGN KEY (client_id) REFERENCESwallabag_oauth2_clients(id))" at /DIR_WALLABAG/wallabag/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php line 60 {"exception":"[object] (Doctrine\\DBAL\\Exception\\ForeignKeyConstraintViolationException(code: 0): An exception occurred while executing 'DELETE FROM wallabag_oauth2_clients WHERE id = ?' with params [1]:\n\nSQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint fails (sql-wallabag.wallabag_oauth2_access_tokens, CONSTRAINTFK_368A420919EB6921FOREIGN KEY (client_id) REFERENCESwallabag_oauth2_clients(id)) at /DIR_WALLABAG/wallabag/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php:60, Doctrine\\DBAL\\Driver\\PDOException(code: 23000): SQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint fails (sql-wallabag.wallabag_oauth2_access_tokens, CONSTRAINTFK_368A420919EB6921FOREIGN KEY (client_id) REFERENCESwallabag_oauth2_clients(id)) at /DIR_WALLABAG/wallabag/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:93, PDOException(code: 23000): SQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint fails (sql-wallabag.wallabag_oauth2_access_tokens, CONSTRAINTFK_368A420919EB6921FOREIGN KEY (client_id) REFERENCESwallabag_oauth2_clients(id)) at /DIR_WALLABAG/wallabag/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:91)"} []

Environment

  • wallabag 2.1.1
  • install with git ( fresh install )
  • php version : PHP 5.6.24
  • debian stable
  • type of hosting : dedicated
  • storage system : MySQL > serveur 5.5.52-0+deb8u1-log - (Debian)
@prolibre prolibre closed this as completed Oct 5, 2016
@prolibre
Copy link
Author

prolibre commented Oct 5, 2016

désolé je viens de voir que le bug avait déjà été signalé ... je ferme donc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant