function hook_shs_field_tags_js_settings_alter(array &$settings_shs, $bundle, $field_name) {
$settings_shs['defaultValue'] = [PLACE_TID_HERE];
$widget_defaults = \Drupal::service('shs.widget_defaults');
$parents = $widget_defaults->getParentDefaults($settings_shs['defaultValue'], $settings_shs['settings_additional'], 'taxonomy_term');
$settings_shs['parents'] = $parents;
}
raajkumar.kuru → created an issue.
Here is the Patch for Drupal 10
https://github.com/ekino/EkinoNewRelicBundle/issues/237
Starting from Symfony 4.4, GetResponseForExceptionEvent::getException is deprecated. It should be replaced with getThrowable.
Also GetResponseForExceptionEvent is deprecated, and should be replaced with ExceptionEvent
Issue is because of Drupal Core upgrade and Drupal already sending Notice while we doing updb
Here is the update hook
user_update_9301
To resolve Follow this steps
Open the database in SQL Management Studio.
Right-click on the users table
Select Script Table as -> Create to -> New Query Editor Window. This will generate a script to recreate the table in a new query window.
Change the table name and relative keys & constraints in the script to users_temp.
Execute the script.
Then for copying the data run this below script:
SET IDENTITY_INSERT users_temp ON
INSERT Into users_temp ([Column1], [Column2], [Column3], [Column4],... )
SELECT [Column1], [Column2], [Column3], [Column4],... FROM users
SET IDENTITY_INSERT users_temp OFF
Then Rename the users table to any name
Next change the users_temp name to users and it will work.
Inside dialog.ajax.js replace the following code
Replace
response.dialogOptions.drupalAutoButtons = true;
response.dialogOptions.buttons = Drupal.behaviors.dialog.prepareDialogButtons($dialog);
With
if (typeof response.dialogOptions.noAutoButton == 'undefined') {
response.dialogOptions.drupalAutoButtons = true;
response.dialogOptions.buttons = Drupal.behaviors.dialog.prepareDialogButtons($dialog);
}