Account created on 26 April 2017, almost 8 years ago
#

Merge Requests

Recent comments

🇦🇺Australia pasan.gamage

Thank you @kairus #16 worked.
The setting is under /admin/config/search/search-api/server//edit
and at the bottom of the page.

🇦🇺Australia pasan.gamage

I've tried #7 but did not work, #3 patch worked for me.
Drupal 10, VBO 4.2.7
Thanks

🇦🇺Australia pasan.gamage

Hi @larowlan
Thank you, looks good to me.

🇦🇺Australia pasan.gamage

Thanks @linhnm
I can confirm this patch works.
D 10.1.8
PHP 8.2

🇦🇺Australia pasan.gamage

Thanks @MukhtarM
I can confirm this patch works.
D 10.1.8
PHP 8.2

🇦🇺Australia pasan.gamage

Turned out the issue was caused due to incorrect Azure storage configurations.
Closing this ticket.

🇦🇺Australia pasan.gamage

Tested on D 10.1.8 PHP8.2 and the error no longer appears.

🇦🇺Australia pasan.gamage

Can confirm a patch created from https://git.drupalcode.org/project/drupal/-/merge_requests/3447 works on Drupal 10.2.x
after updating the theme settings.

🇦🇺Australia pasan.gamage

I'm having this issue updating from D9 to the latest D10 and do drush updb.
I tried clean installs, composer cache clear and removing vendor and other dirs installed via composer. But no luck.

Drupal 10.2.4
Drush 12.4
path_redirect_import 2.0.9

I don't use migrate_tools module in the project but I tried just adding it (6.0.4) via composer but the MigrateToolsCommands not found error exists.

Error: Class "Drupal\migrate_tools\Drush\Commands\MigrateToolsCommands" not found in /var/www/html/web/modules/contrib/path_redirect_import/src/Drush/Commands/PathRedirectImportCommands.php on line 30 #0 /var/www/html/vendor/composer/ClassLoader.php(576): include()
🇦🇺Australia pasan.gamage

Sorry, Adding the updated patch file.
Please disregard my previous patch.
Thanks

🇦🇺Australia pasan.gamage

Hi,
I've had a few other issues and created this patch for D10, Claro.
Thanks

🇦🇺Australia pasan.gamage

Hi @sakthi_dev
I forgot to mention, I'm using Drupal 10.
Thanks.

🇦🇺Australia pasan.gamage

For me to resolve this error had to downgrade to Drush 11
Apply patch from https://www.drupal.org/project/path_redirect_import/issues/3373025 🐛 Update to support path redirect import migrate_tools 6.0.2 RTBC
"Update to support path redirect import migrate_tools 6.0.2": " https://www.drupal.org/files/issues/2023-07-06/path_redirect_import-3373... "

🇦🇺Australia pasan.gamage

Thanks @julio_retkwa
Saved me a heap of time!

🇦🇺Australia pasan.gamage

Tried patch #99 on D10 and can create, save add templates.
Thank you @RichardGaunt

🇦🇺Australia pasan.gamage

I've the CDN turned off but still having the same issue.
I'm loading the block in my page template under two different wrappers for desktop and one at a different location for mobile
{{ drupal_entity('block', 'gtranslate') }}
It was working for me in 8.x branch but after 3.x this seem to have broken and now both blocks are loading one after the other.

🇦🇺Australia pasan.gamage

Hi @gbyte
Thank you very much for the explanations and helping me understand.
You mentioned the the varients were migrated. Which path in admin can I navigate to view them because I couldn't find any varient configuration from admin/config/search/simplesitemap.

🇦🇺Australia pasan.gamage

Hi @gbyte
The issue was caused when updating the module from D9 simple_sitemap 3.5, to D10 4.1.7.
I also noticed that the variants related configs gets deleted because there's no update path to migrate those configs.
Thanks

🇦🇺Australia pasan.gamage

pasan.gamage made their first commit to this issue’s fork.

🇦🇺Australia pasan.gamage

Unfortunately upgrading from 1.15 breaks the configs and the widget.
It looks like a lot of the functionality has been removed from the 1.15 branch.
Below is the diff file;
I can agree with @sraLton this is a breaking change and should be added in the release notes.
Is there a plan to keep the 1.15 ready for D10?

Thanks

diff --git a/config/sync/gtranslate.settings.yml b/config/sync/gtranslate.settings.yml
index 5d7b168..ffb6ea0 100644
--- a/config/sync/gtranslate.settings.yml
+++ b/config/sync/gtranslate.settings.yml
@@ -1,113 +1,34 @@
 _core:
   default_config_hash: Cr1Zz4OIfnOZTkDixpxKbSEOSkxTS4pH1lMNiXBUDpA
-gtranslate_method: onfly
-gtranslate_pro: 0
-gtranslate_enterprise: 0
-gtranslate_look: dropdown
-gtranslate_flag_size: '16'
-gtranslate_new_window: 0
-gtranslate_main_lang: en
-gtranslate_af: '1'
-gtranslate_sq: '1'
-gtranslate_ar: '1'
-gtranslate_hy: '1'
-gtranslate_az: '1'
-gtranslate_eu: '1'
-gtranslate_be: '1'
-gtranslate_bg: '1'
-gtranslate_ca: '1'
-gtranslate_zh-CN: '1'
-gtranslate_zh-TW: '1'
-gtranslate_hr: '1'
-gtranslate_cs: '1'
-gtranslate_da: '1'
-gtranslate_nl: '2'
-gtranslate_en: '2'
-gtranslate_et: '1'
-gtranslate_tl: '1'
-gtranslate_fi: '1'
-gtranslate_fr: '2'
-gtranslate_gl: '1'
-gtranslate_ka: '1'
-gtranslate_de: '2'
-gtranslate_el: '1'
-gtranslate_ht: '1'
-gtranslate_iw: '1'
-gtranslate_hi: '1'
-gtranslate_hu: '1'
-gtranslate_is: '1'
-gtranslate_id: '1'
-gtranslate_ga: '1'
-gtranslate_it: '2'
-gtranslate_ja: '1'
-gtranslate_ko: '1'
-gtranslate_lv: '1'
-gtranslate_lt: '1'
-gtranslate_mk: '1'
-gtranslate_ms: '1'
-gtranslate_mt: '1'
-gtranslate_no: '1'
-gtranslate_fa: '1'
-gtranslate_pl: '1'
-gtranslate_pt: '2'
-gtranslate_ro: '1'
-gtranslate_ru: '2'
-gtranslate_sr: '1'
-gtranslate_sk: '1'
-gtranslate_sl: '1'
-gtranslate_es: '2'
-gtranslate_sw: '1'
-gtranslate_sv: '1'
-gtranslate_th: '1'
-gtranslate_tr: '1'
-gtranslate_uk: '1'
-gtranslate_ur: '1'
-gtranslate_vi: '1'
-gtranslate_cy: '1'
-gtranslate_yi: '1'
-gtranslate_bn: '1'
-gtranslate_bs: '1'
-gtranslate_ceb: '1'
-gtranslate_eo: '1'
-gtranslate_gu: '1'
-gtranslate_ha: '1'
-gtranslate_hmn: '1'
-gtranslate_ig: '1'
-gtranslate_jw: '1'
-gtranslate_kn: '1'
-gtranslate_km: '1'
-gtranslate_lo: '1'
-gtranslate_la: '1'
-gtranslate_mi: '1'
-gtranslate_mr: '1'
-gtranslate_mn: '1'
-gtranslate_ne: '1'
-gtranslate_pa: '1'
-gtranslate_so: '1'
-gtranslate_ta: '1'
-gtranslate_te: '1'
-gtranslate_yo: '1'
-gtranslate_zu: '1'
-gtranslate_my: '0'
-gtranslate_ny: '0'
-gtranslate_kk: '0'
-gtranslate_mg: '0'
-gtranslate_ml: '0'
-gtranslate_si: '0'
-gtranslate_st: '0'
-gtranslate_su: '0'
-gtranslate_tg: '0'
-gtranslate_uz: '0'
-gtranslate_am: '0'
-gtranslate_co: '0'
-gtranslate_haw: '0'
-gtranslate_ku: '0'
-gtranslate_ky: '0'
-gtranslate_lb: '0'
-gtranslate_ps: '0'
-gtranslate_sm: '0'
-gtranslate_gd: '0'
-gtranslate_sn: '0'
-gtranslate_sd: '0'
-gtranslate_fy: '0'
-gtranslate_xh: '0'
+source_lang: en
+widget_look: dropdown
+url_structure: none
+flag_size: 16
+flag_style: 2d
+globe_size: 60
+color_scheme: light
+alt_flags: {  }
+wrapper_selector: .gtranslate_wrapper
+float_position: bottom-left
+float_switcher_open_direction: top
+position: inline
+switcher_open_direction: bottom
+native_language_names: 1
+detect_browser_language: 0
+enable_cdn: 1
+add_new_line: 1
+select_language_label: 'Select Language'
+custom_domains: 0
+custom_domains_config: ''
+custom_css: ''
+languages:
+  en: en
+  nl: nl
+  fr: fr
+  de: de
+  it: it
+  pt: pt
+  ru: ru
+  es: es
+flag_languages:
+  en: en
🇦🇺Australia pasan.gamage

Thanks @thomasbruyninckx
I've merged this to 1.0.x branch.

🇦🇺Australia pasan.gamage

pasan.gamage made their first commit to this issue’s fork.

🇦🇺Australia pasan.gamage

To include this commit, add below snippet under "repositories" in your composer.json

{
            "type": "package",
            "package": {
                "name": "drupalcode/xss_prevention",
                "version": "3396472",
                "type": "drupal-module",
                "source": {
                    "type": "git",
                    "url": "https://git.drupalcode.org/issue/xss_prevention-3396472.git",
                    "reference": "4f6251796679a50ac7d1252dd312098313f09e9b"
                }
            }
        },

and under "require",
"drupalcode/xss_prevention": "3396472",

Then
composer update

🇦🇺Australia pasan.gamage

pasan.gamage made their first commit to this issue’s fork.

🇦🇺Australia pasan.gamage

@joaopauloscho
Removing ^9 and keeping only ^10 breaks the module in the process of updating to D10.
I think it won't hurt keeping it ^9 || ^10

🇦🇺Australia pasan.gamage

For me what worked out was this in my composer. Under repositories;

{
            "type": "package",
            "package": {
                "name": "drupalcode/content_type_clone",
                "version": "3357574",
                "type": "drupal-module",
                "source": {
                    "type": "git",
                    "url": "https://git.drupalcode.org/issue/content_type_clone-3357574.git",
                    "reference": "3357574-drupal-10-compatibility"
                }
            }
        },

and then under require;
"drupalcode/content_type_clone": "3357574",

🇦🇺Australia pasan.gamage

Hi @abhishek_virasat thank you very much for the prompt reply.
I tried to apply this patch and even when I tried to apply the patch before this I had an issue.
Seems like it is not possible through composer.

I've below in my composer file

"drupal/real_aes": {
                "Fatal Error TFA and Real Aes": "https://git.drupalcode.org/project/real_aes/-/merge_requests/6.patch"
            }

and I get composer error in console;

- Installing drupal/real_aes (2.5.0): Extracting archive
  - Applying patches for drupal/real_aes
    https://git.drupalcode.org/project/real_aes/-/merge_requests/6.patch (Fatal Error TFA and Real Aes)
   Could not apply patch! Skipping. The error was: Cannot apply patch https://git.drupalcode.org/project/real_aes/-/merge_requests/6.patch

Having said that;
Prior to your last patch, I went through the required modules for encrypt module and I noticed that my TFA module was on 1.2 and after updating it to ^2.0@alpha made the error go away.

🇦🇺Australia pasan.gamage

@abhishek_virasat Thanks for the patch, however, it doesn't seem to have fixed the error.
After applying I'm getting below;

Drupal\encrypt\Exception\EncryptException: Bad key length. in Drupal\real_aes\Plugin\EncryptionMethod\RealAESEncryptionMethod->decrypt() (line 76 of modules/contrib/real_aes/src/Plugin/EncryptionMethod/RealAESEncryptionMethod.php).

🇦🇺Australia pasan.gamage

I know it's a closed issue but for anyone who comes here for a solution, you can try this snippet in composer instead;

"scripts": {
        "post-drupal-scaffold-cmd": [
            "mkdir -p web/libraries/bootstrap",
            "cp -R vendor/twbs/bootstrap/dist web/libraries/bootstrap"
        ]
    }

Thanks

🇦🇺Australia pasan.gamage

Hi,
This same issue is there for core/lib/Drupal/Core/Asset/CssCollectionOptimizerLazy.php file L160

Warning: Undefined array key "url" in Drupal\Core\Asset\CssCollectionOptimizerLazy->optimizeGroup() (line 160 of core/lib/Drupal/Core/Asset/CssCollectionOptimizerLazy.php).
Drupal\Core\Asset\CssCollectionOptimizerLazy->optimizeGroup(Array) (Line: 183)
Drupal\system\Controller\AssetControllerBase->deliver(Object, 'css_xZ1grJh6fKKy0PyENOxVLpswGrM9ycqavFyz8YvMrmw.css')
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 583)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 166)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 74)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object, 1, 1) (Line: 704)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
🇦🇺Australia pasan.gamage

I've been running in to the same error but with "Visible" option.

🇦🇺Australia pasan.gamage

Hi @ok-steve
Thank you very much for figuring it out and creating a fix. For me to try it out, I need to re-build the ckeditor5-anchor-drupal library with your updated file, but having issues with that. Something to do with my local node 18. But when I get those sorted, I will test this one out. Thank you

🇦🇺Australia pasan.gamage

@siramsay Thanks for testing it out. I've updated my previous comment as it happens when you place an anchor to start or middle of a text wrapped in a paragraph tag. Thanks

🇦🇺Australia pasan.gamage

Hi @RajabNatshah

I've tested this out using a Vanilla Drupal 10 instance running Drupal 10.1.0.
I followed the instructions in #56
However, I seem to have this issue where when creating an anchor in a paragraph, it gets created in the exact place I want;
(i.e. middle of the paragraph) after saving the node and returning to edit it, I can observe the anchor had jumped to the end of the same paragraph.
Please see the attached.
I'm wondering if anyone else here found this issue ?

Thanks

🇦🇺Australia pasan.gamage

Thanks for this.

I did everything relating to public folder configuration and permissions, also had the local settings and service files set to disable caching.

But none of that mattered, all it needed were the above drush commands.

Thanks Daniel !

Production build 0.71.5 2024