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.

Comments

chike created an issue. See original summary.

tolstoydotcom’s picture

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.

chike’s picture

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.

joseph.olstad’s picture

joseph.olstad’s picture

Status: Active » Fixed

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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