When updating with drush from 8.2.7 to 8.3.0 I get the following error;
Failed: Drupal\Component\Plugin\Exception\PluginNotFoundException: The "entity_reference_image" plugin does not exist. i
Drupal\Core\Plugin\DefaultPluginManager->doGetDefinition() (line 52 of
/home/<sitename>/public_html/core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php).
Does any one else get the same error?
I've tried to update it multiple times, but I get the same error all the time.
I updated all the modules from within drupal first, then ran the following:
- drush sset system.maintenance_mode 1 drush cr
- drush pm-update drupal
and then I get the error stated above. Extremely annoying.
| Comment | File | Size | Author |
|---|---|---|---|
| #16 | update_test.txt | 5.87 KB | b0red |
| #13 | drush_pm-list_core.txt | 32.41 KB | b0red |
| #13 | drush_status.txt | 1.3 KB | b0red |
| #7 | core.extension.yml | 2.38 KB | jiisuominen |
| #7 | drush_debug.txt | 47.07 KB | jiisuominen |
Comments
Comment #2
xjmHi b0red,
core.extensioncofiguration, and also provide the full backtrace for the error message.It sounds like something providing the
entity_reference_imageplugin in a previous release is not being found.Comment #3
xjmPostponing on details from the reporter.
Comment #4
alexpottIt looks like the site had an early version of the File Browser module - it had an entity_reference_image plugin but has removed it. See http://cgit.drupalcode.org/file_browser/commit/?id=6e2e140 - Unfortunately it looks like they removed it and didn't provide an update path (as far as I can see).
@b0red - as @xjm points out - if you have a full stack trace of the error so we can see where in the update path you've crashed. Thanks
Comment #5
b0red commentedSorry for the long post, U can find it here instead
https://pastebin.com/raw/rAckaHMB
Comment #6
b0red commentedI can't update drush either.
Comment #7
jiisuominen commentedSo yeah, I stumbled to this issue while trying to update to 8.3. I updated my drush to 8.1.12 to no avail. I've ran updb quite a few times, but always stuck with this.
I attached my updb -d output and also my core.extension.yml. Hope this helps to sort out this, it's blocking me from doing any updates to our site.
/ Janne
Comment #8
alexpott@5to1 are you actually using stuff from the flie_browser_example module if not uninstall it and it might fix your problem. Alternatively you might be able to get away with deleting the File Browser block content type.
Comment #9
jiisuominen commented@alexpott, thanks got this working by removing file_browser_example module AND that block type.
Comment #10
b0red commentedI reverted to 8.2.7, since any tries to update to 8.3.1 always renders the site unoperable. And that took me 2 days of reinstalling old backups, new crashes and more reinstalls of old backups.
How do I do a stack trace for when I feel brave enough to retry updating to 8.3.1? Since I'm confident it will crash again.
And do I need to remove/uninstall file_browser_example and block or just keep it unactivated?
Comment #11
alexpott@b0red if you're not using file_browser_example and block i'd recommend removing it. You've got a good chance of the update working if you do that.
Comment #12
b0red commentedNope, the same result. File_browser not active, and the block is uninstalled. Annoying as hell
Comment #13
b0red commentedSo, still trying to update to 8.3.1.
When I do a drush pm-update drupal I get the following;
I don't dare to continue, because I've spent too much time reinstalling the site to a functioning version. What would You do?
Comment #14
b0red commentedAaand the update f*cked it all up again. >:(
this is the the stacktrace when trying to install the file_browser manually with drush.
Comment #15
b0red commentedIf I do a drush pm-update -s drupal I get following;
Comment #16
b0red commentedDid a new drush pm-update -svd drupal and got the following result (se enclosed update_test.txt);
This is from Drupal 8.2.8.
Comment #17
criscomI ran into the same error. That's how I resolved it.
I was on Drupal 8.2.8.
1. Disable file_browser_example
2. Delete file_browser content type
3. Update to Drupal 8.3
4. Disable layout_plugin
5. Update Panels and Page_manager to 8.4
6. Disable file_browser
7. Run DB updates
8. Re-enable file_browser
9. Update to Drupal 8.3.5
Comment #18
b0red commentedI'm on 8.3.5 now, still have the same problem. And since it's a production site, I really can't or feel like downgrading to 8.2.x to get this to work.
Any other solution?
Comment #19
criscomTry disabling the file_browser module. Then run drush dbup -y. After that re-enable the file_browser module again.
Comment #21
nmeegama commentedHad a similar error when I moved my website into production . When I checked /admin/reports/status Found out that PHP-gd library was missing. Installing the missing library solved the issue. So might be worth checking /admin/reports/status (Status report) as well
Comment #23
cilefen commentedI've read through this issue and it seems complete remove of file_browser (which did not provide an upgrade path) fixes the problem. If anyone cannot remove file_browser, that can be done but it should be discussed elsewhere.
Drupal is properly reporting a missing plugin.