The following reason prevents Simple Like Button from being uninstalled:

Created on 1 August 2023, over 1 year ago
Updated 2 August 2023, over 1 year ago

Problem/Motivation

I want to uninstall the module but get this message,

Simple Like Module
The following reason prevents Simple Like Button from being uninstalled:
There is content for the entity type: Simple Like. Remove simple like entities.

Remove simple like entities is linked such that it would reveal the entities with likes so one can remove d likes or something but clicking on the Remove simple like entities link shows this error,

Error: Call to a member function getFieldStorageDefinition() on null in Drupal\Core\Entity\ContentEntityBase->getEntityKey() (line 1310 of /home/skilttop/public_html/core/lib/Drupal/Core/Entity/ContentEntityBase.php).

Thus I am not able to uninstall the module.

I have Config Delete so I looked in available configurations on the site and couldn't find a mention of simple.like.button

Any ideas on how I can delete any configurations set by the module so I can uninstall it or perhaps any other way to do it.

Thanks.

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡³πŸ‡¬Nigeria chike Nigeria

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @chike
  • πŸ‡ΊπŸ‡ΈUnited States TolstoyDotCom L.A.

    After line 1309 in ContentEntityBase.php, add if (!$definition) {echo $field_name; exit;}
    You might need to recreate that field.

    If that doesn't work, replace what you added with if (!$definition) {return NULL;}

    Remove whatever you added afterwards.

  • πŸ‡³πŸ‡¬Nigeria chike Nigeria

    simple_like_button doesn't offer fields, it offers a block. So I placed d block on a content type and now the problem is some nodes were liked and probably I should have removed those likes before uninstalling but it is not easy locating which nodes where liked.

Production build 0.71.5 2024