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
Comment #2
tolstoydotcomAfter 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.
Comment #3
chikesimple_like_buttondoesn'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.Comment #4
joseph.olstadComment #5
joseph.olstad