Hi!
How can I fix it?
At Database update:

The following updates returned messages
metatag module
Update #7102

    Failed: PDOException: SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'context' at row 18714: UPDATE {locales_source} SET location = REPLACE(location, 'metatag:metatag:', 'metatag:metatag_output:'), context = REPLACE(context, 'metatag:', 'metatag_output:') WHERE textgroup = 'metatag' AND location LIKE 'metatag:metatag:%'; Array ( ) metatag_update_7101() function (.../sites/all/modules/metatag/metatag.install 1916 line).

Do I need to fix it in the database manually?

Comments

makgab created an issue. See original summary.

damienmckenna’s picture

Could you tell me what the context string is that is too long? Try this query:

SELECT context, CHAR_LENGTH(context) FROM locales_source WHERE CHAR_LENGTH(context) > 240

damienmckenna’s picture

I suppose there could be two improvements made here:

  • Shorten the string "metatag_output".
  • Truncate the URL used as the key.
damienmckenna’s picture

Version: 7.x-1.10 » 7.x-1.x-dev
Category: Support request » Bug report
Parent issue: » #2655192: Plan for Metatag 7.x-1.11 release

Lets fix this for the next release.

damienmckenna’s picture

Status: Active » Needs review
StatusFileSize
new8.8 KB

Lets see if this works.

damienmckenna’s picture

StatusFileSize
new10.5 KB

The core menu system cannot handle a fixed path that is over 255 characters, so I've extended the tests to test pages to confirm the output translations don't cause problems.

damienmckenna’s picture

Status: Needs review » Fixed

Committed.

  • DamienMcKenna committed 3306aea on 7.x-1.x
    Issue #2655662 by DamienMcKenna: Fixed handling of output translation on...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.