Jump to content

Pages, comment data type in DB too small


Go to solution Solved by Marc,

Recommended Posts

Posted

Hello,

I tried to post a long comment for a record created within Pages database and fall into the issue:

IPS\Db\Exception: Data too long for column 'comment_post' at row 1 (1406)

The database_comment table has comment_post column of TEXT data type which is 65535 in length. Consider changing it to to MEDIUMTEXT or LONGTEXT to avoid such scenarios. Thanks.

Posted (edited)
7 minutes ago, Adriano Faria said:

Pages database.

Pages creates own table aka cms_database_x and the issue I mention is in database_comment table comment_post column.

On the top of that, seems there is no protection that would check data length before attempting to INSERT data to DB, what results now in throwing an error.

Edited by PatrickRQ
Posted

Thank you for bringing this issue to our attention! I can confirm this should be further reviewed and I have logged an internal bug report for our development team to investigate and address as necessary, in a future maintenance release.

 

  • 1 month later...
  • Solution
Posted

This issue has been resolved in our recently released 4.7.9 version. Please upgrade if you are seeing this issue, and let us know if you see any further issues.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...