Hello im unable to remove the flaggings to allow me to uninstall the earlier version. Getting this error code when i try. Am i doing something wrong do you think?

An AJAX HTTP error occurred.
HTTP Result Code: 500
Debugging information follows.
Path: /batch?id=146&op=do_nojs&op=do
StatusText: Internal Server Error
ResponseText: {"message":"A fatal error occurred: SQLSTATE[42S22]: Column not found: 1054 Unknown column \u0027base.session_id\u0027 in \u0027field list\u0027: SELECT base.id AS id, base.flag_id AS flag_id, base.uuid AS uuid, base.entity_type AS entity_type, base.entity_id AS entity_id, base.global AS global, base.uid AS uid, base.session_id AS session_id, base.created AS created\nFROM \n{flagging} base\nWHERE base.id IN (:db_condition_placeholder_0, :db_condition_placeholder_1, :db_condition_placeholder_2, :db_condition_placeholder_3, :db_condition_placeholder_4, :db_condition_placeholder_5, :db_condition_placeholder_6, :db_condition_placeholder_7, :db_condition_placeholder_8, :db_condition_placeholder_9); Array\n(\n [:db_condition_placeholder_0] =\u003E 1\n [:db_condition_placeholder_1] =\u003E 2\n [:db_condition_placeholder_2] =\u003E 3\n [:db_condition_placeholder_3] =\u003E 4\n [:db_condition_placeholder_4] =\u003E 5\n [:db_condition_placeholder_5] =\u003E 6\n [:db_condition_placeholder_6] =\u003E 7\n [:db_condition_placeholder_7] =\u003E 8\n [:db_condition_placeholder_8] =\u003E 9\n [:db_condition_placeholder_9] =\u003E 10\n)\n"}

Comments

fadgadget created an issue. See original summary.

fadgadget’s picture

low and behold i can now. I dont know what was up or how i fixed it sorry. I did revert my drupal database back to an earlier copy before i had messed with flag. Must have sorted it. Soz

fadgadget’s picture

Status: Active » Fixed
joachim’s picture

> I did revert my drupal database back to an earlier copy before i had messed with flag. Must have sorted it.

Yup, the problem was that you updated the code, and then tried to uninstall the module. So the DB tables that the system was trying to remove didn't match up with what the code now said they should be.

fadgadget’s picture

So just to confirm joachim i DO need to uninstall Flag module to do the update yes? a kinda related instance here. I dont think they belive me
https://www.drupal.org/node/2878618

So i will lose all my views that have the flag module attached to them on uninstall?

joachim’s picture

If you export your configuration prior to uninstall, you should be able to restore it along with your views afterwards.

fadgadget’s picture

i think exporting configarations is what i need to look into asap joachim. For now i just made a copy of my website on another url. Im just gonna uninstall it and reinstall the views. When i do try to unintsall it though im getting this message

The website encountered an unexpected error. Please try again later.

Drupal\Core\Entity\EntityStorageException: Exception thrown while performing a schema update. Cannot rename flagging__field_permalink to field_deleted_data_050c2ddad7: table field_deleted_data_050c2ddad7 already exists. in Drupal\Core\Entity\Sql\SqlContentEntityStorage->wrapSchemaException() (line 1481 of core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).

ive looked in /admin/reports/fields and i dont have a permalink field. Would you be able to advise? thanks

edit: ill go delete all my flags and see if that helps

fadgadget’s picture

all fine now joachim. deleting the flag instances before uninstalling done the trick :)

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.