HI,
Sorry if I don't report the right way, I do this for the first time!
Since the 8.7 release, I tried to update my site from 8.6.15 to 8.7.0 and now to 8.7.1 : both failed with this error message:
module media_library
Mise à jour #8701Échec : Drupal\Core\Entity\EntityStorageException : 'image_style' entity with ID 'media_library' already exists. dans Drupal\Core\Entity\EntityStorageBase->doPreSave() (ligne 481 de D:\Site\d8_sc\core\lib\Drupal\Core\Entity\EntityStorageBase.php).
And the report log has two update type error messages:
LogicException : Getting the base fields is not supported for entity type Style d'image. dans Drupal\Core\Entity\EntityFieldManager->buildBaseFieldDefinitions() (ligne 209 de D:\Site\d8_sc\core\lib\Drupal\Core\Entity\EntityFieldManager.php).
Importance Erreur
Drupal\Core\Entity\EntityStorageException : 'image_style' entity with ID 'media_library' already exists. dans Drupal\Core\Entity\EntityStorageBase->doPreSave() (ligne 481 de D:\Site\d8_sc\core\lib\Drupal\Core\Entity\EntityStorageBase.php).
Note that I do have an image style named media_library, but even if I rename its machine name as media_library_custom, when I run the update it doesn't work better.
My site is not broken and the core is marked as updated, but some features (as media widget) don't work as they should, and when I try to re-run …/update.php, it appears that 16 core module updates are waiting to be executed:
16 mises à jour en attente
system moduleInitialize 'expand_all_items' values to system_menu_block.
Clear the menu cache. @see https:www.drupal.orgprojectdrupalissues3044364
Clear the library cache and ensure aggregate files are regenerated.media_library module
8701 - Create the 'media_library' image style.
8702 - Updates the media library view widget display (contextual) filters.
Create and configure Media Library form and view displays for media types.
Add a table display to the media library view and link gridtable displays.comment module
Add comment settings.
layout_discovery module
Recalculate dependencies for the entity_form_display entity.
Recalculate dependencies for the entity_view_display entity.media module
Keep media items viewable at media{id}.
menu_link_content module
Update custom menu links to be revisionable.
taxonomy module
Update taxonomy terms to be revisionable.
Remove the 'hierarchy' property from vocabularies.views module
Update exposed filter blocks label display to be disabled.
Rebuild cache to allow placeholder texts to be translatable.
My site is installed locally with Acquia Dev Desktop. I use drush but not Composer.
I'm no coder AT ALL, so I haven't a clue about what can be done to fix this, but it's been a while since I get repeatedly the first error message (LogicException : Getting the base fields is not supported for entity type) anytime I make a change on a field (changes are generally made despite the message though), so clearly something has been corrupted in the code (or the database?) but I was unable to determine where this was coming from since I don't mess with code and only use those community modules:
D:\Site\d8_sc>drush pm-list
Package Name Type Status Version
Administration Admin Toolbar (admin_toolbar) Module Enabled 8.x-1.26
Administration Admin Toolbar Extra Tools (admin_toolbar_tools) Module Not installed 8.x-1.26
Administration Admin Toolbar Links Access Filter Module Not installed 8.x-1.26
(admin_toolbar_links_access_filter)
Administration Adminimal Admin Toolbar (adminimal_admin_toolbar) Module Enabled 8.x-1.9
Administration Module Missing Message Fixer (module_missing_message_fixer) Module Not installed 8.x-1.0-alpha
3
Bootstrap Bootstrap Library (bootstrap_library) Module Enabled 8.x-1.11
Chaos tool suite Chaos Tools (ctools) Module Enabled 8.x-3.2
Chaos tool suite Chaos Tools Blocks (ctools_block) Module Not installed 8.x-3.2
(Experimental)
Chaos tool suite Chaos Tools Views (ctools_views) Module Not installed 8.x-3.2
(Experimental)
CKEditor CKEditor CodeMirror (ckeditor_codemirror) Module Enabled 8.x-2.2
CKEditor CKEditor InsertHTML (ckeditor_inserthtml) Module Not installed 8.x-1.0
CKEditor CKEditor Non-breaking space Plugin (nbsp) Module Enabled 8.x-1.2
Content Type Clone Content Type Clone (content_type_clone) Module Enabled 8.x-1.x-dev
Core Actions (action) Module Not installed 8.7.1
Core Activity Tracker (tracker) Module Not installed 8.7.1
Core Aggregator (aggregator) Module Not installed 8.7.1
Core Automated Cron (automated_cron) Module Enabled 8.7.1
Core Ban (ban) Module Not installed 8.7.1
Core BigPipe (big_pipe) Module Enabled 8.7.1
Core Block (block) Module Enabled 8.7.1
Core Book (book) Module Enabled 8.7.1
Core Breakpoint (breakpoint) Module Enabled 8.7.1
Core CKEditor (ckeditor) Module Enabled 8.7.1
Core Color (color) Module Enabled 8.7.1
Core Comment (comment) Module Enabled 8.7.1
Core Configuration Manager (config) Module Enabled 8.7.1
Core Contact (contact) Module Enabled 8.7.1
Core Content Moderation (content_moderation) Module Not installed 8.7.1
Core Contextual Links (contextual) Module Enabled 8.7.1
Core Custom Block (block_content) Module Enabled 8.7.1
Core Custom Menu Links (menu_link_content) Module Enabled 8.7.1
Core Database Logging (dblog) Module Enabled 8.7.1
Core Field (field) Module Enabled 8.7.1
Core Field UI (field_ui) Module Enabled 8.7.1
Core Filter (filter) Module Enabled 8.7.1
Core Forum (forum) Module Not installed 8.7.1
Core Help (help) Module Enabled 8.7.1
Core History (history) Module Enabled 8.7.1
Core Inline Form Errors (inline_form_errors) Module Not installed 8.7.1
Core Internal Dynamic Page Cache (dynamic_page_cache) Module Enabled 8.7.1
Core Internal Page Cache (page_cache) Module Enabled 8.7.1
Core Layout Builder (layout_builder) Module Not installed 8.7.1
Core Layout Discovery (layout_discovery) Module Enabled 8.7.1
Core Media (media) Module Enabled 8.7.1
Core Menu UI (menu_ui) Module Enabled 8.7.1
Core Node (node) Module Enabled 8.7.1
Core Path (path) Module Enabled 8.7.1
Core Quick Edit (quickedit) Module Enabled 8.7.1
Core RDF (rdf) Module Enabled 8.7.1
Core Responsive Image (responsive_image) Module Enabled 8.7.1
Core Search (search) Module Enabled 8.7.1
Core Settings Tray (settings_tray) Module Enabled 8.7.1
Core Shortcut (shortcut) Module Enabled 8.7.1
Core Statistics (statistics) Module Not installed 8.7.1
Core Syslog (syslog) Module Enabled 8.7.1
Core System (system) Module Enabled 8.7.1
Core Taxonomy (taxonomy) Module Enabled 8.7.1
Core Testing (simpletest) Module Not installed 8.7.1
Core Text Editor (editor) Module Enabled 8.7.1
Core Toolbar (toolbar) Module Enabled 8.7.1
Core Tour (tour) Module Enabled 8.7.1
Core Update Manager (update) Module Enabled 8.7.1
Core User (user) Module Enabled 8.7.1
Core Views (views) Module Enabled 8.7.1
Core Views UI (views_ui) Module Enabled 8.7.1
Core Workflows (workflows) Module Not installed 8.7.1
Core (Experimental) Field Layout (field_layout) Module Not installed 8.7.1
Core (Experimental) Media library (media_library) Module Enabled 8.7.1
Core (Experimental) Migrate Drupal Multilingual (migrate_drupal_multilingual) Module Not installed 8.7.1
Core (Experimental) Workspaces (workspaces) Module Not installed 8.7.1
Custom Linkit (linkit) Module Enabled 8.x-4.3
Date Year only (yearonly) Module Enabled 8.x-1.3
Date/Time Calendar (calendar) Module Enabled 8.x-1.x-dev
Date/Time Calendar Datetime (calendar_datetime) Module Enabled 8.x-1.x-dev
Date/Time Date range formatter (date_range_formatter) Module Enabled 8.x-3.1
Development Devel (devel) Module Enabled 8.x-2.1
Development Devel Generate (devel_generate) Module Enabled 8.x-2.1
Development Devel Kint (kint) Module Enabled 8.x-2.1
Development Web Profiler (webprofiler) Module Not installed 8.x-2.1
Display Suite Display Suite (ds) Module Not installed 8.x-3.1
Display Suite Display Suite Devel (ds_devel) Module Not installed 8.x-3.1
Display Suite Display Suite Extras (ds_extras) Module Not installed 8.x-3.1
Display Suite Display Suite Switch View Mode (ds_switch_view_mode) Module Not installed 8.x-3.1
Entity Automatic Entity Labels (auto_entitylabel) Module Enabled 8.x-2.1-beta1
Examples Migrate Example (migrate_example) Module Not installed 8.x-4.2
Examples Migrate Example (Advanced) (migrate_example_advanced) Module Not installed 8.x-4.2
Examples Migrate JSON Example (migrate_json_example) Module Not installed 8.x-4.2
Examples Views Bulk Operations example Module Not installed 8.x-2.5
(views_bulk_operations_example)
Feeds Feeds (feeds) Module Enabled 8.x-3.0-alpha
5
Field Formatters Field Formatter Class (field_formatter_class) Module Enabled 8.x-1.1
Field types Date time day (date_time_day) Module Not installed 8.x-1.4
Field types Datetime (datetime) Module Enabled 8.7.1
Field types Datetime Range (datetime_range) Module Enabled 8.7.1
Field types Entity Reference Display (entity_reference_display) Module Enabled 8.x-1.2
Field types Entity Reference Revisions (entity_reference_revisions) Module Enabled 8.x-1.6
Field types File (file) Module Enabled 8.7.1
Field types Image (image) Module Enabled 8.7.1
Field types Link (link) Module Enabled 8.7.1
Field types Options (options) Module Enabled 8.7.1
Field types Simple Google Maps (simple_gmap) Module Enabled 8.x-1.4
Field types Telephone (telephone) Module Enabled 8.7.1
Field types Text (text) Module Enabled 8.7.1
Field types Time Field (time_field) Module Enabled 8.x-1.12
Field types Time Range (time_range) Module Enabled 8.x-1.1
Fields Element class formatter (element_class_formatter) Module Enabled 8.x-1.0
Fields Field Group (field_group) Module Enabled 8.x-3.0-beta1
Fields Heading (heading) Module Enabled 8.x-1.4
Fields Inline Entity Form (inline_entity_form) Module Enabled 8.x-1.0-rc1
Filters Entity Embed (entity_embed) Module Enabled 8.x-1.0-beta3
Media Crop API (crop) Module Enabled 8.x-1.5
Media Entity Browser (entity_browser) Module Enabled 8.x-2.1
Media Entity Browser example (entity_browser_example) Module Not installed 8.x-2.1
Media Entity Browser IEF (entity_browser_entity_form) Module Not installed 8.x-2.1
Media ImageWidgetCrop (image_widget_crop) Module Enabled 8.x-2.2
Media ImageWidgetCrop examples (image_widget_crop_examples) Module Enabled 8.x-2.2
Migrate Field Group Migrate (field_group_migrate) Module Not installed 8.x-3.0-beta1
Migration Migrate (migrate) Module Enabled 8.7.1
Migration Migrate Drupal (migrate_drupal) Module Not installed 8.7.1
Migration Migrate Drupal UI (migrate_drupal_ui) Module Not installed 8.7.1
Migration Migrate Plus (migrate_plus) Module Enabled 8.x-4.2
Migration Migrate Source CSV (migrate_source_csv) Module Enabled 8.x-2.2
Migration Migrate Tools (migrate_tools) Module Enabled 8.x-4.1
Multilingual Configuration Translation (config_translation) Module Not installed 8.7.1
Multilingual Content Translation (content_translation) Module Enabled 8.7.1
Multilingual Interface Translation (locale) Module Enabled 8.7.1
Multilingual Language (language) Module Enabled 8.7.1
Other Allowed Formats (allowed_formats) Module Enabled 8.x-1.1
Other Bootstrap DateTime Picker (bootstrap_datetime) Module Enabled 8.x-1.2
Other Configuration Update Base (config_update) Module Enabled 8.x-1.6
Other Configuration Update Reports (config_update_ui) Module Enabled 8.x-1.6
Other Content Import (contentimport) Module Not installed 8.x-4.x-dev
Other Embed (embed) Module Enabled 8.x-1.0
Other Entity Mask (ctools_entity_mask) Module Not installed 8.x-3.2
Other Entity Type Clone (entity_type_clone) Module Enabled 8.x-1.3
Other Entity Usage (entity_usage) Module Enabled 8.x-2.0-alpha
8
Other Libraries (libraries) Module Not installed 8.x-3.0-alpha
1
Other Linked Field (linked_field) Module Enabled 8.x-1.1
Other Menu Block (menu_block) Module Enabled 8.x-1.5
Other Menu Trail By Path (menu_trail_by_path) Module Enabled 8.x-1.1
Other Meta position (meta_position) Module Enabled 8.x-1.0
Other Pathauto (pathauto) Module Enabled 8.x-1.4
Other Publication Date (publication_date) Module Enabled 8.x-2.0-beta1
Other Simple timeline (simple_timeline) Module Enabled 8.x-1.1
Other Single Date Time Picker (single_datetime) Module Not installed 8.x-1.6
Other Taxonomy unique (taxonomy_unique) Module Not installed 8.x-2.1
Other Telephone Validation (telephone_validation) Module Not installed 8.x-2.2
Other Token (token) Module Enabled 8.x-1.5
Paragraphs Bootstrap Paragraphs (bootstrap_paragraphs) Module Enabled 8.x-2.0-beta6
Paragraphs Bootstrap Paragraphs Contact Form (bp_contact) Module Not installed 8.x-2.0-beta6
Paragraphs Bootstrap Paragraphs Webform (bp_webform) Module Not installed 8.x-2.0-beta6
Paragraphs Paragraphs (paragraphs) Module Enabled 8.x-1.8
Paragraphs Paragraphs Demo (paragraphs_demo) Module Not installed 8.x-1.8
Paragraphs Paragraphs Library (paragraphs_library) Module Enabled 8.x-1.8
Paragraphs Paragraphs Type Permissions (paragraphs_type_permissions) Module Enabled 8.x-1.8
Search Database Search (search_api_db) Module Not installed 8.x-1.11
Search Database Search Defaults (search_api_db_defaults) Module Not installed 8.x-1.11
Search Search API (search_api) Module Not installed 8.x-1.11
User interface Accordion Menus (accordion_menus) Module Not installed 8.x-2.0
User interface Superfish (superfish) Module Not installed 8.x-1.3
Views Views Bootstrap (views_bootstrap) Module Enabled 8.x-4.1
Views Views Bulk Operations (views_bulk_operations) Module Enabled 8.x-2.5
Views Views Reference Field (viewsreference) Module Enabled 8.x-1.4
Views Views Slideshow (views_slideshow) Module Enabled 8.x-4.6
Views Views Slideshow Cycle (views_slideshow_cycle) Module Enabled 8.x-4.6
Views Views templates (views_templates) Module Enabled 8.x-1.0-alpha
1
Views Bulk Actions Permissions (actions_permissions) Module Not installed 8.x-2.5
Operations
Views Bulk Views Bulk Edit (views_bulk_edit) Module Enabled 8.x-2.2
Operations
Web services HAL (hal) Module Not installed 8.7.1
Web services HTTP Basic Authentication (basic_auth) Module Not installed 8.7.1
Web services JSON:API (jsonapi) Module Not installed 8.7.1
Web services RESTful Web Services (rest) Module Enabled 8.7.1
Web services Serialization (serialization) Module Enabled 8.7.1
Webform Webform (webform) Module Enabled 8.x-5.2
Webform Webform Access (webform_access) Module Not installed 8.x-5.2
Webform Webform Attachment (webform_attachment) Module Not installed 8.x-5.2
Webform Webform Bootstrap (webform_bootstrap) Module Not installed 8.x-5.2
Webform Webform Devel (webform_devel) Module Not installed 8.x-5.2
Webform Webform Image Select (webform_image_select) Module Not installed 8.x-5.2
Webform Webform Node (webform_node) Module Not installed 8.x-5.2
Webform Webform Scheduled Email Handler (webform_scheduled_email) Module Not installed 8.x-5.2
Webform Webform Shortcuts (webform_shortcuts) Module Not installed 8.x-5.2
Webform Webform Submission Export/Import [EXPERIMENTAL] Module Not installed 8.x-5.2
(webform_submission_export_import)
Webform Webform Submission Log (webform_submission_log) Module Not installed 8.x-5.2
Webform Webform Templates (webform_templates) Module Not installed 8.x-5.2
Webform Webform UI (webform_ui) Module Enabled 8.x-5.2
Webform Demo Webform Demo: Application/Evaluation System Module Not installed 8.x-5.2
(webform_demo_application_evaluation)
Webform Demo Webform Demo: Event Registration System Module Not installed 8.x-5.2
(webform_demo_event_registration)
Webform Demo Webform Demo: Region Contact System Module Not installed 8.x-5.2
(webform_demo_region_contact)
Webform example Webform Element Example (webform_example_element) Module Not installed 8.x-5.2
Webform example Webform Example Composite (webform_example_composite) Module Not installed 8.x-5.2
Webform example Webform Examples (webform_examples) Module Not installed 8.x-5.2
Webform example Webform Examples Accessibility Module Not installed 8.x-5.2
(webform_examples_accessibility)
Webform example Webform Handler Example (webform_example_handler) Module Not installed 8.x-5.2
Webform example Webform Remote Post Example (webform_example_remote_post) Module Not installed 8.x-5.2
Autre Adminimal (adminimal_theme) Theme Enabled 8.x-1.4
Autre Bootstrap Barrio (bootstrap_barrio) Theme Enabled 8.x-4.17
Autre Bootstrap Barrio SASS SC Subtheme (bootstrap_sass_sc) Theme Disabled 8.x-1.6
Autre Bootstrap Barrio SC Custom Subtheme (barrio_sc) Theme Enabled 8.x-4.17 Thanks for your help.
| Comment | File | Size | Author |
|---|---|---|---|
| #11 | 2019-05-21 error log.jpg | 186.11 KB | yecmom |
Comments
Comment #2
cilefen commentedThis is mentioned in #3052271-16: media_library_update_8701() fails during update from 8.6.15 to 8.7.0.
Comment #3
cilefen commentedAt least, it seems to be.
Comment #4
yecmom commentedYes, you're right, this is clearly part of the problem! I read it before posting (but I see the discussion is going on) and I tried what was suggested there in #5, but
As for the patch that is proposed there, I don't quite get where it is supposed to be applied manually…
Thanks anyway for any help !
Comment #5
yecmom commentedYes, you're right, this is clearly part of the problem! I read it before posting (but I see the discussion is going on) and I tried what was suggested there in #5, but
As for the patch that is proposed there, I don't quite get where it is supposed to be applied manually…
Thanks anyway for any help or suggestion you can provide !
Comment #6
amateescu commented@yecmom, can you try to update following these steps, preferably using a backup database from before the initial update was attempted:
- uninstall the Media library module
- rename the existing
media_libraryimage style to something else (like you already mentioned in the issue summary)- update to 8.7.1
- reinstall the Media library module
Comment #7
yecmom commented@ cilefen
Yes, you're right, this is clearly part of the problem! I read it before posting (but I see the discussion is going on) and I tried what was suggested there in #5, but
As for the patch that is proposed there, I don't quite get where it is supposed to be applied manually…
Thanks anyway for any help or suggestion you can provide !
@amateescu
OK, I try this and report. Thanks for the suggestion
Comment #8
yecmom commented@amateescu
I tried to update following the steps you suggested, using a backup database from before the initial update (8.7.0) was attempted:
- uninstall the Media library module : OK
- rename the existing media_library image style to something else (like you already mentioned in the issue summary) : there was no existing media_library image style
- update to 8.7.1 : failed
Drupal\Component\Plugin\Exception\PluginNotFoundException : The "media_library_widget" plugin does not exist. Valid plugin IDs for Drupal\Core\Field\WidgetPluginManager are: bootstrap_date_time_widget, comment_default, datetime_datelist, datetime_default, daterange_datelist, daterange_default, entity_browser_entity_reference, entity_browser_file, entity_reference_revisions_autocomplete, file_generic, heading, image_image, image_widget_crop, inline_entity_form_complex, inline_entity_form_simple, link_default, oembed_textfield, path, telephone_default, text_textarea, text_textarea_with_summary, text_textfield, time_range_widget, time_widget, time_range, viewsreference_select, viewsreference_autocomplete, webform_entity_reference_autocomplete, webform_entity_reference_select, yearonly_default, entity_reference_paragraphs, paragraphs, publication_date_timestamp, datetime_timestamp, boolean_checkbox, email_default, entity_reference_autocomplete_tags, entity_reference_autocomplete, language_select, number, options_buttons, options_select, string_textarea, string_textfield, uri dans Drupal\Core\Plugin\DefaultPluginManager->doGetDefinition() (ligne 53 de E:\Site SC D8\PREV\d8_sc\core\lib\Drupal\Component\Plugin\Discovery\DiscoveryTrait.php).- reinstall the Media library module
Do I try this last step anyway or is there something else to attempt before?
Thanks!
PS : Sorry for the duplicated messages, I've had errors each time I tried to post an answer before being confirmed.
Comment #9
cilefen commentedComment #10
amateescu commented@yecmom, hmm.. judging by those error messages I think there's still a form display which uses the
media_library_widgetfield widget, but, it wasn't updated automatically when you uninstalled the module. You would need to check all form displays and switch to a different widget whenever you find something that referencesmedia_library_widget.As for the error shown when re-installing Media Library, it seems there's a problem with the
entity_usagemodule, and it probably needs to be reported in their issue queue. As a temporary thing to try, you can uninstall that module and see if you can re-enable Media Library successfully..Comment #11
yecmom commented@amateescu
It took me some time, but I tried the steps you suggested, first on a backup database and code base from before the initial update (8.7.0) was attempted, and then on my actual version:
- uninstall the entity_usage module (I had to delete all Paragraph Library items before as this sub-module was desinstalled at the same time as a dependency) : OK
- check all form displays (in Taxonomy, Content types, Paragraphs) and switch to a different widget whenever I found media_library_widget was used : OK
- uninstall the Media library module : OK
- delete the existing media_library image style if it was already created : OK
- update to 8.7.1 : OK !!!
- enable the Media library module : OK
- test the media_library widget : OK
So thanks a lot for your advices, because I was stuck without your contribution.
All is not resolved though : I got some errors in the process and I'm not sure if they are minor or not (see error log below)…
The three last ones are apparently related to the form display of three fields in one taxonomy (no connection to the media_library_widget which was not used there), but these fields don't use the same widget for their display…
Here is one of them:
Location
http://dev.sourceschretiennes.mom.fr.dd:8083/admin/structure/taxonomy/ma...
Référent
http://dev.sourceschretiennes.mom.fr.dd:8083/admin/structure/taxonomy/ma...
Notice : Undefined index: field_prenom dans Drupal\field_ui\Form\EntityDisplayFormBase->copyFormValuesToEntity() (D:\Site\d8_sc\core\modules\field_ui\src\Form\EntityDisplayFormBase.php ligne 603) #0 D:\Site\d8_sc\core\includes\bootstrap.inc(587): _drupal_error_handler_real(8, 'Undefined index...', 'D:\\Site\\d8_sc\\c...', 603, Array) #1 D:\Site\d8_sc\core\modules\field_ui\src\Form\EntityDisplayFormBase.php(603): _drupal_error_handler(8, 'Undefined index...', 'D:\\Site\\d8_sc\\c...', 603, Array) #2 D:\Site\d8_sc\core\lib\Drupal\Core\Entity\EntityForm.php(304): Drupal\field_ui\Form\EntityDisplayFormBase->copyFormValuesToEntity(Object(Drupal\Core\Entity\Entity\EntityFormDisplay), Array, Object(Drupal\Core\Form\FormState)) #3 D:\Site\d8_sc\core\lib\Drupal\Core\Entity\EntityForm.php(181): Drupal\Core\Entity\EntityForm->buildEntity(Array, Object(Drupal\Core\Form\FormState)) #4 [internal function]: Drupal\Core\Entity\EntityForm->afterBuild(Array, Object(Drupal\Core\Form\FormState)) #5 D:\Site\d8_sc\core\lib\Drupal\Core\Form\FormBuilder.php(1069): call_user_func_array(Array, Array) #6 D:\Site\d8_sc\core\lib\Drupal\Core\Form\FormBuilder.php(1061): Drupal\Core\Form\FormBuilder->doBuildForm('entity_form_dis...', Array, Object(Drupal\Core\Form\FormState)) #7 D:\Site\d8_sc\core\lib\Drupal\Core\Form\FormBuilder.php(1061): Drupal\Core\Form\FormBuilder->doBuildForm('entity_form_dis...', Array, Object(Drupal\Core\Form\FormState)) #8 D:\Site\d8_sc\core\lib\Drupal\Core\Form\FormBuilder.php(1061): Drupal\Core\Form\FormBuilder->doBuildForm('entity_form_dis...', Array, Object(Drupal\Core\Form\FormState)) #9 D:\Site\d8_sc\core\lib\Drupal\Core\Form\FormBuilder.php(1061): Drupal\Core\Form\FormBuilder->doBuildForm('entity_form_dis...', Array, Object(Drupal\Core\Form\FormState)) #10 D:\Site\d8_sc\core\lib\Drupal\Core\Form\FormBuilder.php(1061): Drupal\Core\Form\FormBuilder->doBuildForm('entity_form_dis...', Array, Object(Drupal\Core\Form\FormState)) #11 D:\Site\d8_sc\core\lib\Drupal\Core\Form\FormBuilder.php(432): Drupal\Core\Form\FormBuilder->doBuildForm('entity_form_dis...', Array, Object(Drupal\Core\Form\FormState)) #12 D:\Site\d8_sc\core\lib\Drupal\Core\Form\FormBuilder.php(626): Drupal\Core\Form\FormBuilder->rebuildForm('entity_form_dis...', Object(Drupal\Core\Form\FormState), Array) #13 D:\Site\d8_sc\core\lib\Drupal\Core\Form\FormBuilder.php(319): Drupal\Core\Form\FormBuilder->processForm('entity_form_dis...', Array, Object(Drupal\Core\Form\FormState)) #14 D:\Site\d8_sc\core\lib\Drupal\Core\Controller\FormController.php(93): Drupal\Core\Form\FormBuilder->buildForm('entity_form_dis...', Object(Drupal\Core\Form\FormState)) #15 [internal function]: Drupal\Core\Controller\FormController->getContentResult(Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\RouteMatch)) #16 D:\Site\d8_sc\core\lib\Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array) #17 D:\Site\d8_sc\core\lib\Drupal\Core\Render\Renderer.php(582): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() #18 D:\Site\d8_sc\core\lib\Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure)) #19 D:\Site\d8_sc\core\lib\Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) #20 D:\Site\d8_sc\vendor\symfony\http-kernel\HttpKernel.php(151): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() #21 D:\Site\d8_sc\vendor\symfony\http-kernel\HttpKernel.php(68): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1) #22 D:\Site\d8_sc\core\lib\Drupal\Core\StackMiddleware\Session.php(57): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #23 D:\Site\d8_sc\core\lib\Drupal\Core\StackMiddleware\KernelPreHandle.php(47): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #24 D:\Site\d8_sc\core\modules\page_cache\src\StackMiddleware\PageCache.php(106): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #25 D:\Site\d8_sc\core\modules\page_cache\src\StackMiddleware\PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true) #26 D:\Site\d8_sc\core\lib\Drupal\Core\StackMiddleware\ReverseProxyMiddleware.php(47): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #27 D:\Site\d8_sc\core\lib\Drupal\Core\StackMiddleware\NegotiationMiddleware.php(52): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #28 D:\Site\d8_sc\vendor\stack\builder\src\Stack\StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #29 D:\Site\d8_sc\core\lib\Drupal\Core\DrupalKernel.php(693): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #30 D:\Site\d8_sc\index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request)) #31 {main}.Second type of error:
Location
http://dev.sourceschretiennes.mom.fr.dd:8083/update.php/start?_format=js...
Référent
http://dev.sourceschretiennes.mom.fr.dd:8083/update.php/start?id=138&op=...
Message
Notice : Undefined index: revision_id dans Drupal\Core\Entity\Sql\SqlContentEntityStorage->loadFromSharedTables() (D:\Site\d8_sc\core\lib\Drupal\Core\Entity\Sql\SqlContentEntityStorage.php ligne 592) #0 D:\Site\d8_sc\core\includes\bootstrap.inc(587): _drupal_error_handler_real(8, 'Undefined index...', 'D:\\Site\\d8_sc\\c...', 592, Array) #1 D:\Site\d8_sc\core\lib\Drupal\Core\Entity\Sql\SqlContentEntityStorage.php(592): _drupal_error_handler(8, 'Undefined index...', 'D:\\Site\\d8_sc\\c...', 592, Array) #2 D:\Site\d8_sc\core\lib\Drupal\Core\Entity\Sql\SqlContentEntityStorage.php(523): Drupal\Core\Entity\Sql\SqlContentEntityStorage->loadFromSharedTables(Array, Array, false) #3 D:\Site\d8_sc\core\lib\Drupal\Core\Entity\Sql\SqlContentEntityStorage.php(449): Drupal\Core\Entity\Sql\SqlContentEntityStorage->mapFromStorageRecords(Array) #4 D:\Site\d8_sc\core\lib\Drupal\Core\Entity\Sql\SqlContentEntityStorage.php(415): Drupal\Core\Entity\Sql\SqlContentEntityStorage->getFromStorage(Array) #5 D:\Site\d8_sc\core\lib\Drupal\Core\Entity\EntityStorageBase.php(291): Drupal\Core\Entity\Sql\SqlContentEntityStorage->doLoadMultiple(Array) #6 D:\Site\d8_sc\core\modules\taxonomy\src\Plugin\views\filter\TaxonomyIndexTid.php(396): Drupal\Core\Entity\EntityStorageBase->loadMultiple(Array) #7 D:\Site\d8_sc\core\lib\Drupal\Core\Plugin\PluginDependencyTrait.php(75): Drupal\taxonomy\Plugin\views\filter\TaxonomyIndexTid->calculateDependencies() #8 D:\Site\d8_sc\core\lib\Drupal\Core\Plugin\PluginDependencyTrait.php(93): Drupal\views\Plugin\views\display\DisplayPluginBase->getPluginDependencies(Object(Drupal\taxonomy\Plugin\views\filter\TaxonomyIndexTid)) #9 [internal function]: Drupal\views\Plugin\views\display\DisplayPluginBase->calculatePluginDependencies(Object(Drupal\taxonomy\Plugin\views\filter\TaxonomyIndexTid), 9) #10 D:\Site\d8_sc\core\modules\views\src\Plugin\views\display\DisplayPluginBase.php(960): array_walk(Array, Array) #11 D:\Site\d8_sc\core\lib\Drupal\Core\Plugin\PluginDependencyTrait.php(75): Drupal\views\Plugin\views\display\DisplayPluginBase->calculateDependencies() #12 D:\Site\d8_sc\core\lib\Drupal\Core\Plugin\PluginDependencyTrait.php(93): Drupal\Core\Config\Entity\ConfigEntityBase->getPluginDependencies(Object(Drupal\views\Plugin\views\display\Block)) #13 D:\Site\d8_sc\core\modules\views\src\Entity\View.php(290): Drupal\Core\Config\Entity\ConfigEntityBase->calculatePluginDependencies(Object(Drupal\views\Plugin\views\display\Block)) #14 D:\Site\d8_sc\core\lib\Drupal\Core\Config\Entity\ConfigEntityBase.php(319): Drupal\views\Entity\View->calculateDependencies() #15 D:\Site\d8_sc\core\modules\views\src\Entity\View.php(300): Drupal\Core\Config\Entity\ConfigEntityBase->preSave(Object(Drupal\Core\Config\Entity\ConfigEntityStorage)) #16 D:\Site\d8_sc\core\lib\Drupal\Core\Entity\EntityStorageBase.php(490): Drupal\views\Entity\View->preSave(Object(Drupal\Core\Config\Entity\ConfigEntityStorage)) #17 D:\Site\d8_sc\core\lib\Drupal\Core\Entity\EntityStorageBase.php(445): Drupal\Core\Entity\EntityStorageBase->doPreSave(Object(Drupal\views\Entity\View)) #18 D:\Site\d8_sc\core\lib\Drupal\Core\Config\Entity\ConfigEntityStorage.php(263): Drupal\Core\Entity\EntityStorageBase->save(Object(Drupal\views\Entity\View)) #19 D:\Site\d8_sc\core\lib\Drupal\Core\Entity\EntityBase.php(394): Drupal\Core\Config\Entity\ConfigEntityStorage->save(Object(Drupal\views\Entity\View)) #20 D:\Site\d8_sc\core\lib\Drupal\Core\Config\Entity\ConfigEntityBase.php(613): Drupal\Core\Entity\EntityBase->save() #21 D:\Site\d8_sc\core\modules\views\src\EventSubscriber\ViewsEntitySchemaSubscriber.php(202): Drupal\Core\Config\Entity\ConfigEntityBase->save() #22 D:\Site\d8_sc\core\lib\Drupal\Core\Entity\EntityTypeEventSubscriberTrait.php(47): Drupal\views\EventSubscriber\ViewsEntitySchemaSubscriber->onEntityTypeUpdate(Object(Drupal\Core\Entity\ContentEntityType), Object(Drupal\Core\Entity\ContentEntityType)) #23 [internal function]: Drupal\views\EventSubscriber\ViewsEntitySchemaSubscriber->onEntityTypeEvent(Object(Drupal\Core\Entity\EntityTypeEvent), 'entity_type.def...', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher)) #24 D:\Site\d8_sc\core\lib\Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher.php(111): call_user_func(Array, Object(Drupal\Core\Entity\EntityTypeEvent), 'entity_type.def...', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher)) #25 D:\Site\d8_sc\core\lib\Drupal\Core\Entity\EntityTypeListener.php(138): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch('entity_type.def...', Object(Drupal\Core\Entity\EntityTypeEvent)) #26 D:\Site\d8_sc\core\lib\Drupal\Core\Entity\EntityDefinitionUpdateManager.php(229): Drupal\Core\Entity\EntityTypeListener->onFieldableEntityTypeUpdate(Object(Drupal\Core\Entity\ContentEntityType), Object(Drupal\Core\Entity\ContentEntityType), Array, Array, Array) #27 D:\Site\d8_sc\core\modules\taxonomy\taxonomy.post_update.php(226): Drupal\Core\Entity\EntityDefinitionUpdateManager->updateFieldableEntityType(Object(Drupal\Core\Entity\ContentEntityType), Array, Array) #28 D:\Site\d8_sc\core\includes\update.inc(247): taxonomy_post_update_make_taxonomy_term_revisionable(Array) #29 D:\Site\d8_sc\core\includes\batch.inc(295): update_invoke_post_update('taxonomy_post_u...', Array) #30 D:\Site\d8_sc\core\includes\batch.inc(137): _batch_process() #31 D:\Site\d8_sc\core\includes\batch.inc(93): _batch_do() #32 D:\Site\d8_sc\core\modules\system\src\Controller\DbUpdateController.php(186): _batch_page(Object(Symfony\Component\HttpFoundation\Request)) #33 [internal function]: Drupal\system\Controller\DbUpdateController->handle('start', Object(Symfony\Component\HttpFoundation\Request)) #34 D:\Site\d8_sc\core\lib\Drupal\Core\Update\UpdateKernel.php(115): call_user_func_array(Array, Array) #35 D:\Site\d8_sc\core\lib\Drupal\Core\Update\UpdateKernel.php(76): Drupal\Core\Update\UpdateKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request)) #36 D:\Site\d8_sc\update.php(28): Drupal\Core\Update\UpdateKernel->handle(Object(Symfony\Component\HttpFoundation\Request)) #37 {main}.Third type :
Location
http://dev.sourceschretiennes.mom.fr.dd:8083/admin/structure/types/manag...
Référent
http://dev.sourceschretiennes.mom.fr.dd:8083/admin/structure/types/manag...
Message
Warning : rename(sites/dev.sourceschretiennes.mom.fr.dd/files/php/twig/.zmnYJbiIV2rTMatVGSKrmTqygDU,sites/dev.sourceschretiennes.mom.fr.dd/files/php/twig/5cd986bf387b5_container.html.twig_9u9KUrrIstGsqAOGLEkvr4jM-/d0-Ns0-qF5QsgEUmnctK1KR2B2EnJ9YvGsOCAt0L1CI.php): Acc�s refus�. (code: 5) dans Drupal\Component\PhpStorage\MTimeProtectedFastFileStorage->save()Any clue, someone?
Thanks
Comment #12
unstatu commentedI could not reproduce the problem. As mentioned #1, I think it was already solved in https://www.drupal.org/project/drupal/issues/3052271
The steps I followed for trying to reproduce the problem were:
1- Install a new fresh Drupal 8.6.16.
2- Enable `media` and `media_library` modules
3- Update the code to 8.7.3 (I use composer but I don't think this is making the difference)
4- Update the database with drush (running `drush updb`) (again, I don't think it makes the difference than visiting update.php)
5- The updates are applied correctly.
Comment #13
amateescu commented@yecmom, since you mentioned in #11 that the original problem with the update has been been resolved, can you please open a separate issue for the followup questions/problems if you haven't managed to fix them already?