[GH-ISSUE #10] Can not save open graph #5

Closed
opened 2026-02-27 09:12:32 +03:00 by kerem · 5 comments
Owner

Originally created by @nalakawula on GitHub (Oct 8, 2019).
Original GitHub issue: https://github.com/maelstrom-cms/odin/issues/10

Here the log:

[2019-10-08 13:12:50] production.ERROR: SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'description' at row 1 (SQL: insert into `open_graph_scans` (`title`, `description`, `image`, `url`, `icon`, `website_id`, `updated_at`, `created_at`) values
...

Thank you

Originally created by @nalakawula on GitHub (Oct 8, 2019). Original GitHub issue: https://github.com/maelstrom-cms/odin/issues/10 Here the log: ``` [2019-10-08 13:12:50] production.ERROR: SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'description' at row 1 (SQL: insert into `open_graph_scans` (`title`, `description`, `image`, `url`, `icon`, `website_id`, `updated_at`, `created_at`) values ... ``` Thank you
kerem closed this issue 2026-02-27 09:12:32 +03:00
Author
Owner

@OwenMelbz commented on GitHub (Oct 8, 2019):

How long is your description?

<!-- gh-comment-id:539396128 --> @OwenMelbz commented on GitHub (Oct 8, 2019): How long is your description?
Author
Owner

@nalakawula commented on GitHub (Oct 8, 2019):

371 long.
I check your description column is varchar. So i just need to update into text type right?

<!-- gh-comment-id:539397176 --> @nalakawula commented on GitHub (Oct 8, 2019): 371 long. I check your description column is varchar. So i just need to update into text type right?
Author
Owner

@OwenMelbz commented on GitHub (Oct 8, 2019):

I would checkout -> https://blog.spotibo.com/meta-description-length/

That length is far too long for the description, which is why this is throwing an error.

But yes changing it to text will allow for longer descriptions

<!-- gh-comment-id:539398782 --> @OwenMelbz commented on GitHub (Oct 8, 2019): I would checkout -> https://blog.spotibo.com/meta-description-length/ That length is far too long for the description, which is why this is throwing an error. But yes changing it to `text` will allow for longer descriptions
Author
Owner

@nalakawula commented on GitHub (Oct 8, 2019):

nice best practice advise.
I will close this issue.

Thank you.

<!-- gh-comment-id:539399642 --> @nalakawula commented on GitHub (Oct 8, 2019): nice best practice advise. I will close this issue. Thank you.
Author
Owner

@OwenMelbz commented on GitHub (Oct 8, 2019):

I've added a migration which does cater for longer descriptions so it does not throw an error.

But has given me the idea for maybe a warning on the UI saying description/title is too long!

<!-- gh-comment-id:539401674 --> @OwenMelbz commented on GitHub (Oct 8, 2019): I've added a [migration](https://github.com/maelstrom-cms/odin/commit/e9f7f6e37544ed80233950fa98db49970abf01a4) which does cater for longer descriptions so it does not throw an error. But has given me the idea for maybe a warning on the UI saying description/title is too long!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/odin-maelstrom-cms#5
No description provided.