maelstrom-cms/odin

Can not save open graph

nalakawula opened this issue · 5 comments

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

How long is your description?

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

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

nice best practice advise.
I will close this issue.

Thank you.

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!