- πΊπΈUnited States jghyde
Let's re-open. I am getting same problem.
When uninstalling simple_oauth from browser UI:
Drupal\Core\Entity\EntityStorageException: The field secret has already been deleted and it is in the process of being purged. in Drupal\Core\Entity\Sql\SqlContentEntityStorageSchema->onFieldStorageDefinitionDelete() (line 762 of /var/www/sanangelolive.com/prod/docroot/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php).
When
drush pmu simple_oauth
:(event *=) $ drush pmu simple_oauth In SqlContentEntityStorageSchema.php line 762: The field secret has already been deleted and it is in the process of being purged.
- πΊπΈUnited States jghyde
Upgrading another site from 8.9 to 9.4 and this problem still persists. Where is the field "secret"? Queues have been purged; cron has been run.
- πΊπΈUnited States jghyde
Found a workaround solution for disabling a badly behaving simple_oauth module.
1. Try drush pmu simple_oauth
2. If it complains of 'field secret' try running a drush core-cron to urge Drupal to purge that field
3. If core-cron doesn't work, look in the database for a simple_oauth_field__[random characters] with the 'secret' as the only item inside the table and then drop that table.
4. Try to run drush pmu simple_oauth again.
5. If it still will not uninstall because of a crazy error, it's time to remove it manually with this mysql commande:
6 run in mysqldelete from key_value where collection='system.schema' and name='simple_oauth';
7. drush cex to export the deletion of simple_oauth from the db config to the sync yaml files
8. Look for simple_oauth tables in the db and drop them (I didn't have any as the uninstall had removed them, thus making it impossible to get a clean drush pmu on subsequent attempts.
9. You're done!