-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fatal error on ddev restart due to class_implements() #178
Comments
So, this error is likely the result of either faulty code (e.g. faulty implementation of hook_autoload_info, or incorrect class load info), or a problem with this function being called before A defensive-coding measure like the one you mentioned may help you avoid this error and bootstrap the site; probably you can remove that after the cache has been rebuilt. But this should not be needed under normal circumstances, unless there is some issue like the one I described above. |
I'm pretty sure this is the problem. Sometimes it returns I'm thinking that if PHP itself thinks I agree that this is almost always caused because of incorrect class load info, but this is the second time I've upgraded a module from Drupal 7 that ended up using the That's a problem of its own - but it immediately shows a brittleness with this module I'd prefer people didn't find :) |
I restarted ddev today and got a fatal from entity_plus:
Line 80 was as follows:
But class_implements() can return a result that's not an array. I cahnged it as follows:
I expect we should use a better name than
$result
but I don't know what that value is supposed to be, I just fixed my code :)The text was updated successfully, but these errors were encountered: