Skip to content

Database error - content table maximum rows exceeded #7750

@jakepm

Description

@jakepm

Description

Receiving the following error when attempting to create a new field.

Seems the content table is full?

I'm seeing 5891 rows in total. The install has a lot of fields, most of which are translatable across 3 (multi) sites.

Database Exception – yii\db\Exception
SQLSTATE[42000]: Syntax error or access violation: 1118 Row size too large. The maximum row size for the used table type, not counting BLOBs, is 8126. This includes storage overhead, check the manual. You have to change some columns to TEXT or BLOBs
The SQL being executed was: ALTER TABLE content ADD field_landingPageButtonALink varchar(255)
Error Info: Array
(
[0] => 42000
[1] => 1118
[2] => Row size too large. The maximum row size for the used table type, not counting BLOBs, is 8126. This includes storage overhead, check the manual. You have to change some columns to TEXT or BLOBs
)

Caused by: PDOException
SQLSTATE[42000]: Syntax error or access violation: 1118 Row size too large. The maximum row size for the used table type, not counting BLOBs, is 8126. This includes storage overhead, check the manual. You have to change some columns to TEXT or BLOBs
in /{path-removed}/vendor/yiisoft/yii2/db/Command.php at line 1299

Steps to reproduce

  1. Create new field
  2. Save (submit event gives DB error)

Additional info

  • Craft version: 3.6.11.2
  • PHP version: 7.4.12
  • Database driver & version: MySQL 5.7.32
  • Plugins & versions:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions