Hello,
I cannot uninstall the commerce_stock module, it says that I cannot uninstall it because some fields are still present (always_in_stock). When when I go to my product variation type, I can see the always_in_stock field in manage form display page, but not on manage fields (so I can't remove it).
So the installation is stuck and I cannot uninstall the module. See attached screenshot.
Best regards, still looking for a manual solution to properly uninstall the module
| Comment | File | Size | Author |
|---|---|---|---|
| #11 | 3092261-commerce_stock-cant-uninstall-module.patch | 783 bytes | andrey.troeglazov |
| screen3.jpg | 45.03 KB | Alexandre360 | |
| screen2.jpg | 98.83 KB | Alexandre360 | |
| screen1.jpg | 65.33 KB | Alexandre360 |
Comments
Comment #2
guy_schneerson commentedDid you click the "Remove Field values" on screen1.jpg ?
Comment #3
guy_schneerson commentedalso, test on the latest dev version
Comment #4
olafkarsten commentedClosing this due to inactivity
Comment #5
sahilgidwani commentedComment #6
sahilgidwani commented@guy_schneerson When I click on "Remove field values" it gives me the following error.
Comment #7
sahilgidwani commentedComment #8
guy_schneerson commentedJust tested and uninstalled with no problems.
This may be an issue with another module you have installed. If you have easy breadcrumbs this may be the issue: https://www.drupal.org/project/easy_breadcrumb/issues/3164758#comment-13...
If not look at other modules you have installed.
Hope you figure it out and let me know how you get one.
Comment #9
guy_schneerson commentedClosing as no activity and can not recreate.
Comment #10
niki v commentedI have the same issue, attempting to remove field values gives "The website encountered an unexpected error. Please try again later." wsod although it doesn't break the site.
log message is
Error: Call to undefined method Drupal\Core\Config\Entity\ConfigEntityType::isSubclassOf() in Drupal\commerce_stock_local\Form\PrepareUninstallForm->submitForm() (line 90 of C:\wamp64\www\D10ck\kickstart\web\modules\contrib\commerce_stock\modules\local_storage\src\Form\PrepareUninstallForm.php)
Is this a core problem or some other conflict?
I'm using Commerce Kickstart 3 locally, product imports are failing and I was testing to see whether the stock module is implicated.
Comment #11
andrey.troeglazov commentedI have faced the same issue, attaching the patch to fix.
Comment #12
darko_antunovic@andrey.troeglazov
I can confirm that the patch works for me. I am using commerce_stock:1.3 , drupal 10.2.2 with PHP 8.1.17
Comment #13
dkosbob commentedisSubclassOf()is deprecated as of Drupal 10. This patch works, and there is also a merge request over on https://www.drupal.org/project/commerce_stock/issues/3416637Comment #14
mydot commentedThe same error still consists for the version 3.0.0-beta1