<code> Fatal error: Class name must be a valid object or a string in /Applications/MAMP/htdocs/houdun/drupal8/core/modules/field/src/FieldStorageConfigStorage.php on line 160</code>
I wrote a custom content type myself, successfully added it through expansion, and then deleted the custom type file directly from the directory, and then it kept prompting this, and even the homepage could not be opened!
What’s the problem with this? ?
<code> Fatal error: Class name must be a valid object or a string in /Applications/MAMP/htdocs/houdun/drupal8/core/modules/field/src/FieldStorageConfigStorage.php on line 160</code>
I wrote a custom content type myself, successfully added it through expansion, and then deleted the custom type file directly from the directory, and then it kept prompting this, and even the homepage could not be opened!
What’s the problem with this? ?
I have never used drupal8, but it is developed based on symfony. Symfony will cache the compiled files.
It should be that the compiled cache is still there. Delete all the compiled files and take a look
Go into the background and try deleting all caches.