- Issue created by @ankondrat4
- πΊπ¦Ukraine ankondrat4 Lutsk
Hello.
After some time of investigations, I had upgraded Jquery Colorpicker from 1.4 to 3.0 version, after enabled modules Media Entity, Media entity image.
Maybe it is more related to upgrading Media Entity to Media core in my case.Thank you for attention, I will close this ticket.
- Status changed to Closed: won't fix
over 1 year ago 10:40am 15 May 2023 - Status changed to Active
over 1 year ago 11:41am 26 May 2023 - πΊπ¦Ukraine ankondrat4 Lutsk
Hello.
I try again do it and got errors(
Besides, when I try to update by UI /update.php, then I got another error:jquery_colorpicker module Update #8200 Failed: Drupal\Core\Database\SchemaObjectExistsException: Cannot add field 'block_content_revision__field_background_color.field_background_color_name': field already exists. in Drupal\Core\Database\Driver\mysql\Schema->addField() (line 414 of /var/www/html/web/core/lib/Drupal/Core/Database/Driver/mysql/Schema.php).
- πΊπ¦Ukraine ankondrat4 Lutsk
If I enable and use jquery_colorpicker 3.0.x-dev version, then update finish successful.
I found that it related to no supporting old format pattern of revision tables and it was resolved in https://www.drupal.org/project/jquery_colorpicker/issues/3210150#comment... π Upgrade from 1.4 to 2.0 failure due to revision tables naming pattern difference FixedBut issue with the "media_image" plugin stay not resolved and need to enable old module media_entity_image:
> [notice] Update started: jquery_colorpicker_update_8200 > [error] The "media_image" plugin does not exist.
- πΊπ¦Ukraine ankondrat4 Lutsk
In additional, after upgrade jquery_colorpicker from 1.4.0 to 3.0.x-dev version widget of jquery_colorpicker doesn't work.
I see in console error:
Uncaught TypeError: trigger.ColorPicker is not a function at initializeElement (jquery_colorpicker.js?v=8.9.20:88:13) at HTMLDivElement.<anonymous> (jquery_colorpicker.js?v=8.9.20:113:7) at Function.each (jquery.min.js?v=3.5.1:2:2976) at S.fn.init.each (jquery.min.js?v=3.5.1:2:1454) at inputWatcher (jquery_colorpicker.js?v=8.9.20:111:70) at Object.<anonymous> (jquery_colorpicker.js?v=8.9.20:143:7) at Function.each (jquery.min.js?v=3.5.1:2:3026) at init (jquery_colorpicker.js?v=8.9.20:138:7) at Object.attach (jquery_colorpicker.js?v=8.9.20:149:7) at drupal.js?v=8.9.20:25:24
- πΊπ¦Ukraine ankondrat4 Lutsk
One of workaround solution for working colorpicker - don't use library from vendor directory jaypan/jquery-colorpicker
I have created a patch for it and now colorpicker is working on my site as expected after upgrade from 1.4 to 3.0.x-dev version. - πΊπ¦Ukraine ankondrat4 Lutsk
Besides patch 16 with composer script "post-install-cmd" in comment 16 wor wor me too https://www.drupal.org/project/jquery_colorpicker/issues/3058398#comment... π Upgrade instructions (8.x-1.x to 8.x-2.x) incomplete Needs review