Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
After I ran a D7->D8 migration my destination site is now broken. Everytime I click on admin/content
I get an error
Fatal error: Call to a member function getEntityTypeId() on null in drupal8\core\modules\views\src\Plugin\views\field\EntityOperations.php on line 102
It destryed my destination site and I cannot recover.
Proposed resolution
Remaining tasks
User interface changes
None
API changes
None
Data model changes
None
Comments
Comment #2
kylebrowning CreditAttribution: kylebrowning commentedYou should always backup the database before an update.
What modules did you have installed?
Comment #3
hass CreditAttribution: hass commentedOn the D8? Just core, google analytics and the required migrate modules with migrate_upgrade.
How can I debug it to the root cause?
Comment #4
kylebrowning CreditAttribution: kylebrowning commentedOn your D7 Site.
Comment #5
hass CreditAttribution: hass commentedblock
advanced_help
blog
book
ckeditor
colorbox
contact
contextual
ctools
diff
elements
entitycache
field
field_sql_storage
field_ui
file
filefield_paths
filter
fivestar
geshifilter
googleanalytics
help
html5_tools
image
imce
l10n_update
libraries
linkchecker
list
locale
menu
navbar
node
number
options
path
pathologic
php
piwik
profile
robotstxt
search
speedy
system
taxonomy
text
translation
transliteration
update
update_advanced
user
views_ui
votingapi
xmlsitemap_taxonomy
ckeditor_link
pathauto
xmlsitemap
xmlsitemap_engines
xmlsitemap_node
token
views
insert
dblog
redirect
statistics
devel
Comment #6
phenaproximaThis should not be Migrate D7 critical until we have more information on what caused it, how to reproduce it, and what the fix is.
Comment #7
hass CreditAttribution: hass commentedHow may I found out what is causing this issue? Any hints?
Comment #8
phenaproximaI would recommend using Xdebug to set a breakpoint at the line which is triggering the fatal error and trace back from there. My guess is that there's something wrong with some entity, so finding out what entity it is, and if it has any invalid data, would be a good first step.
Comment #9
quietone CreditAttribution: quietone as a volunteer commentedComment #11
mikeryanCan anyone reproduce this error these days?
Comment #13
mikeryanNo further information provided.
Comment #14
cristian100I have this bug using entity_browser, once I upload a file that is set to be saved into my library, when I want in another node to select an existing image, I get this message:
Call to a member function getEntityTypeId() on null in /var/www/html/modules/contrib/entity_browser/src/Plugin/views/field/SelectForm.php on line 28
Comment #15
cristian100Comment #16
mikeryan@cristian100: Does what you're seeing have anything to do with migration? You don't mention migration in your description.
Note that your error message is reported in the contrib entity_browser module, not in the core views module as the original problem report here was. If your problem is unrelated to the core migration system, you should open a bug report in the entity_browser issue queue.
Comment #17
mikeryanNo reproducible instance of this error involving migration.