Problem/Motivation
I've installed SVG Embed on Drupal 10.1.2 and I'm using the SVG Image module to upload my SVG via a Media image field. When I embed the SVG on a page and save I get this (WSOD) error when trying to view the page:
Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[42S22]: Column not found: 1054 Unknown column 's.textgroup' in 'where clause': SELECT "t"."translation" AS "translation" FROM "locales_source" "s" LEFT OUTER JOIN "locales_target" "t" ON s.lid = t.lid WHERE ("s"."source" = :db_condition_placeholder_0) AND ("s"."textgroup" = :db_condition_placeholder_1) AND ("t"."language" = :db_condition_placeholder_2); Array ( [:db_condition_placeholder_0] => 1,500,000 [:db_condition_placeholder_1] => svg_embed [:db_condition_placeholder_2] => en ) in Drupal\svg_embed\SvgEmbedProcess->embedTranslate() (line 134 of /var/www/html/web/modules/contrib/svg_embed/src/SvgEmbedProcess.php).
Any help would be greatly appreciated!
Comments
Comment #2
jurgenhaasDo you have the locale module enabled? This is needed since the purpose of svg embed is to translate contained text strings in the file on the fly.
Comment #3
hommesreponse commentedI don't see a module called "Locale" but I do have all the translation and language modules installed and have a second language set up.
I've moved on to another module for now (SVG image field) to solve my current needs. Let me know if I can help further with solving this issue though.
Thanks for your response.
Comment #4
jurgenhaasThe locale module is part of Drupal core and it's printable name is "Interface Translation".
Comment #5
hommesreponse commentedJust checked and I do have Interface Translation enabled.
Comment #7
jurgenhaasI've had another look and realized that Drupal core removed support for textgroups at some point in time. I've had to move this into context instead, this should now be working again. Just published a bug fix release for that, thanks @hommesreponse