rastepanyan → created an issue.
Small issue with the previous patch with regards to the URI verification is applied in this version.
rastepanyan → created an issue.
I have tested it on a current project after Drupal 9 core upgrade to Drupal 10.
rastepanyan → created an issue.
rastepanyan → created an issue.
Until then, if someone has this issue with Drupal core version 10.1.7, this patch could help.
rastepanyan → created an issue.
And this patch is for Automated Drupal 10 fork.
rastepanyan → created an issue.
rastepanyan → created an issue.
rastepanyan → created an issue.
I attach this patch as temporary solution for those who experiencing the same problem
rastepanyan → created an issue.
The approach implemented in the patch above is working for me. I have created a patch compatible with Search API Solr version 4.2.1, which I'm using together with Search API version 1.23. The PHP version is 7.4.30, and the Drupal Core version is 8.9.20.
rastepanyan → created an issue.
Hi a.sotirov and geoanders,
I could confirm that the proposed fix really helps.
Thank you!
Hi @jsobiecki,
The Drupal Core is 9.3.22, the PHP version is 7.4.33 and the MySQL version on the server is 5.7.40-43 (I'm using MariaDB v10.3.28 locally).
Hi @jsobiecki,
Thank you for your help! I have used the proposed solution and now have two update available - 9002 and 9003. When I ran `drush updb` command the update 9002 was applied successfully, but the 9003 failed again:
wodby@php.container:/var/www/html/docroot $ drush updb
---------------------------- ----------- --------------- ------------------------------------------------------------------------
Module Update ID Type Description
---------------------------- ----------- --------------- ------------------------------------------------------------------------
translatable_menu_link_uri 9002 hook_update_n 9002 - Make sure that database and entities definition are in sync.
translatable_menu_link_uri 9003 hook_update_n 9003 - Set the overridden link options to the same as the parent link.
---------------------------- ----------- --------------- ------------------------------------------------------------------------
Do you wish to run the specified pending updates? (yes/no) [yes]:
> y
> [notice] Update started: translatable_menu_link_uri_update_9002
> [notice] Update completed: translatable_menu_link_uri_update_9002
> [notice] Update started: translatable_menu_link_uri_update_9003
> [error] SQLSTATE[42S22]: Column not found: 1054 Unknown column 'mlcd.link_override__options' in 'field list': SELECT "mlcd"."id" AS "id", "mlcd"."link__options" AS "link__options", "mlcd"."link_override__options" AS "link_override__options"
> FROM
> "menu_link_content_field_revision" "mlcd"; Array
> (
> )
>
> [error] Update failed: translatable_menu_link_uri_update_9003
[error] Update aborted by: translatable_menu_link_uri_update_9003
[error] Finished performing updates.
Hi @jsobiecki,
I have already applied the changes from the provided MR, and the issue with drush updb command from #17 is with it. Without changes I just got the notice from the title:
Notice: Undefined index: link_override__uri in Drupal\Core\Entity\Sql\SqlContentEntityStorage->loadFromSharedTables() (line 602 of core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).
Hi @jsobiecki and @djmymy,
I could confirm that I have the same issue as @djmymy after applying the drush updb command:
wodby@php.container:/var/www/html/docroot $ drush updb
---------------------------- ----------- --------------- ------------------------------------------------------------------------
Module Update ID Type Description
---------------------------- ----------- --------------- ------------------------------------------------------------------------
translatable_menu_link_uri 9003 hook_update_n 9003 - Set the overridden link options to the same as the parent link.
---------------------------- ----------- --------------- ------------------------------------------------------------------------
Do you wish to run the specified pending updates? (yes/no) [yes]:
> y
> [notice] Update started: translatable_menu_link_uri_update_9003
> [error] SQLSTATE[42S22]: Column not found: 1054 Unknown column 'mlcd.link_override__options' in 'field list': SELECT "mlcd"."id" AS "id", "mlcd"."link__options" AS "link__options", "mlcd"."link_override__options" AS "link_override__options"
> FROM
> "menu_link_content_field_revision" "mlcd"; Array
> (
> )
>
> [error] Update failed: translatable_menu_link_uri_update_9003
[error] Update aborted by: translatable_menu_link_uri_update_9003
[error] Finished performing updates.
The Drupal Core is 9.3.22, the PHP version is 7.4
I'm using the 2.x-dev version of the module.
Here is my suggested patch for Drupal 10 compatibility.
rastepanyan → created an issue.