Closed (fixed)
Project:
Vue.js Library
Version:
3.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Reporter:
Created:
29 Nov 2023 at 06:21 UTC
Updated:
20 Dec 2023 at 18:59 UTC
Jump to comment: Most recent
Site crashes with a WSOD after updating to 3.0.0 from 8.x-1.0-rc4
These are the messages that show in the log together with the error after switching back to 1.x
Warning: Undefined array key "path" in _vuejs_vue_generate_library_definition() (Zeile 59 in /web/modules/contrib/vuejs/vuejs.module).:
Warning: Undefined array key "petitevue" in vuejs_library_info_build() (Zeile 37 in /web/modules/contrib/vuejs/vuejs.module).:
Warning: Trying to access array offset on value of type null in _vuejs_petitevue_generate_library_definition() (Zeile 75 in /web/modules/contrib/vuejs/vuejs.module).:
Warning: Trying to access array offset on value of type null in _vuejs_petitevue_generate_library_definition() (Zeile 75 in /web/modules/contrib/vuejs/vuejs.module).:
Warning: Trying to access array offset on value of type null in _vuejs_petitevue_generate_library_definition() (Zeile 85 in /web/modules/contrib/vuejs/vuejs.module).:
Warning: Trying to access array offset on value of type null in _vuejs_petitevue_generate_library_definition() (Zeile 88 in /web/modules/contrib/vuejs/vuejs.module).:
Warning: Trying to access array offset on value of type null in _vuejs_petitevue_generate_library_definition() (Zeile 89 in /web/modules/contrib/vuejs/vuejs.module).:
Warning: Uninitialized string offset 0 in Drupal\Core\Asset\LibraryDiscoveryParser->buildByExtension() (Zeile 226 in /web/core/lib/Drupal/Core/Asset/LibraryDiscoveryParser.php).:
Warning: Undefined array key "path" in _vuejs_vue_generate_library_definition() (Zeile 59 in /web/modules/contrib/vuejs/vuejs.module).:
Warning: Undefined array key "petitevue" in vuejs_library_info_build() (Zeile 37 in /web/modules/contrib/vuejs/vuejs.module).:
Warning: Trying to access array offset on value of type null in _vuejs_petitevue_generate_library_definition() (Zeile 75 in /web/modules/contrib/vuejs/vuejs.module).:
Warning: Trying to access array offset on value of type null in _vuejs_petitevue_generate_library_definition() (Zeile 75 in /web/modules/contrib/vuejs/vuejs.module).:
Warning: Trying to access array offset on value of type null in _vuejs_petitevue_generate_library_definition() (Zeile 85 in /web/modules/contrib/vuejs/vuejs.module).:
Warning: Trying to access array offset on value of type null in _vuejs_petitevue_generate_library_definition() (Zeile 88 in /web/modules/contrib/vuejs/vuejs.module).:
Warning: Trying to access array offset on value of type null in _vuejs_petitevue_generate_library_definition() (Zeile 89 in /web/modules/contrib/vuejs/vuejs.module).:
Warning: Uninitialized string offset 0 in Drupal\Core\Asset\LibraryDiscoveryParser->buildByExtension() (Zeile 226 in /web/core/lib/Drupal/Core/Asset/LibraryDiscoveryParser.php).:
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
anybodyComment #3
anybodyWhat I can see is, that the config schema is slightly different in 1.x and 3.x but there's no .install files with update hook to update existing configuration:
https://git.drupalcode.org/project/vuejs/-/blob/3.x/config/schema/vuejs....
The install config is also slightly different:
https://git.drupalcode.org/project/vuejs/-/tree/3.x/config/install?ref_t...
So I think the missing update hook is the reason for this.
Comment #4
anybodyComment #5
anybodyI think best would be to reset the config to install defaults when upgrading to 3.x.
I found this snippet in the vuejs.install file of 8.x-1.x:
guess wo could do the same, but of course first check, if this needs to be done.
Comment #6
anybodyHere we go :) I think this should fix the error and do what's possible.
Comment #9
minoroffense commented