Skip to content

[PHP8] SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'url' at row 1 #372

Open
@anasmoiz

Description

@anasmoiz

Hello,

When we are running the script with PHP 8.0 and we receive the following error.

SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'url' at row 1

If we downgrade the version to PHP 7.3 or 7.4, it works perfectly I can see this issue was previously reported #354 as well but was closed without providing an actual solution.

Please note that this is not happening with every site hosted on PHP 8.0 but with a few. if you guys need any details or access to replicate this please let us know, we would really like to solve this issue with your team.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions