Account created on 7 August 2021, over 3 years ago
#

Merge Requests

Recent comments

🇧🇬Bulgaria rastepanyan

I attach this patch as temporary solution for those who experiencing the same problem

🇧🇬Bulgaria rastepanyan

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.

🇧🇬Bulgaria rastepanyan

Hi a.sotirov and geoanders,

I could confirm that the proposed fix really helps.

Thank you!

🇧🇬Bulgaria rastepanyan

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).

🇧🇬Bulgaria rastepanyan

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. 
🇧🇬Bulgaria rastepanyan

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).

🇧🇬Bulgaria rastepanyan

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.

🇧🇬Bulgaria rastepanyan

Here is my suggested patch for Drupal 10 compatibility.

Production build 0.71.5 2024