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

can't updade, can't uninstall #58

Closed
hr1232 opened this issue Sep 21, 2023 · 3 comments
Closed

can't updade, can't uninstall #58

hr1232 opened this issue Sep 21, 2023 · 3 comments
Labels
kind/bug Something isn't working

Comments

@hr1232
Copy link

hr1232 commented Sep 21, 2023

PHP Version

8.2.7-1~deb12u1

Shopware Version

6.5.1.0

Actual behaviour

Plugin version 2.0.2 is installed

Attempt to install update ends in error message:
Can not download plugin. Please contact your system administrator. Error: can not downloads plugins managed by composer from store api

Attemp to uninstall ends in error message:
An exception occurred while executing a query: SQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint fails

Expected behaviour

I just want to uninstall this fucked up situation and forget ever having had this addon.

Steps to Reproduce?

  • install version 2.0.2
  • try to uninstall/update
@hr1232 hr1232 added the kind/bug Something isn't working label Sep 21, 2023
@hr1232
Copy link
Author

hr1232 commented Sep 21, 2023

Additional information:

I ran this to migrate storage into sql:

./bin/console frosh:mailarchive:migrate
 3/3 [============================] 100%

This didn't change anything, error messages still persist. Cannot update and cannot uninstall. How can I get rid of this fucked up plugin???

@hr1232
Copy link
Author

hr1232 commented Sep 21, 2023

php bin/console plugin:uninstall mailarchive

Shopware Plugin Lifecycle Service
=================================

 Uninstall 1 plugin(s):
 * Mail Archive (v2.0.2)

21:04:19 CRITICAL  [console] Error thrown while running command "plugin:uninstall mailarchive". Message: "An exception occurred while executing a query: SQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint fails" ["exception" => Doctrine\DBAL\Exception\ForeignKeyConstraintViolationException^ { …},"command" => "plugin:uninstall mailarchive","message" => "An exception occurred while executing a query: SQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint fails"]

In ExceptionConverter.php line 56:

  An exception occurred while executing a query: SQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint fails


In Exception.php line 28:

  SQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint fails


In Connection.php line 32:

  SQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint fails


plugin:uninstall [-r|--refresh] [-c|--clearCache] [--skip-asset-build] [--keep-user-data] [--] <plugins>...

@schneider-felix
Copy link
Contributor

Plugin uninstall will be fixed with #54

As for your other problem, it looks like you are trying to update the plugin using the administration but it's actually installed using composer.

@tinect tinect closed this as not planned Won't fix, can't repro, duplicate, stale Oct 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants