- πΊπΈUnited States atulkamboj
Try this:
if (isset($info['controller class']) && class_implements($info['controller class']) === 'EntityAPIControllerInterface')
- πΊπΈUnited States tr Cascadia
Try this:
if (isset($info['controller class']) && class_implements($info['controller class']) === 'EntityAPIControllerInterface')
No. class_implements() returns either an array or FALSE, neither of which will ever be === to 'EntityAPIControllerInterface'
The solution is what I said in #5 - find out which module is defining an entity without a controller class, and fix that module. I gave instructions for how to find this out.
- π©π°Denmark klausdk
I had the same issue with the redirect module.
With drush updb It wants to run :
function redirect_update_7100() { if (!class_exists('RedirectController')) { registry_rebuild(); entity_info_cache_clear(); } }
But it can't because of the entity error.
My solution was to run drush php-eval 'registry_rebuild();entity_info_cache_clear()'
Later I found out that the drush updb had already been executed on a php 7 server, so I was able to get a database dump from there, which fixed the issue.
Though, I'm not sure if the error will reappear later on.
Hope it helps.
- π¨π¦Canada joseph.olstad
Use the dev release, the latest tagged release is far behind.
- π¨π¦Canada joseph.olstad
With that said, I'd love to see a new tagged release of this module