-
Notifications
You must be signed in to change notification settings - Fork 638
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Database error - content table maximum rows exceeded #7750
Comments
I can see this is to do with the row size of the content table so not specifically related to the field I'm trying to create. Updated the title and description. |
We are working on a solution to this for Craft 4 (#1524). In the meantime, if you email a database backup and Composer files over to support@craftcms.com we may be able to offer some suggestions on how to work around the issue. |
@brandonkelly - I resolved this by deleting some fields that were redundant. However, this same issue is now preventing me from doing a 'reapply project config' on the staging site after deploy, as the auto sync was not successful. We changed a lot of config stuff and I need to deploy this before we can move on to a rebuild, which will include halving the number of fields we currently use. To clarify, after the auto sync failed, I rebuilt the entire project config from dev and am now trying to apply it to staging. Do you know of any workarounds I can use? I can tell the client we have to wait until the rebuild is done, but there are some features they were hoping to get live beforehand. Hopefully the reduction in fields will solve the issue for the next update? FYI the error message is a little confusing as the count it provides is far less than the limit... |
If there were any added fields, Craft is probably trying to add those first and getting stuck, before it gets around to removing the deleted fields. Again if you write into support@craftcms.com we should be able to help you; or you could try again using the staging DB backup as a starting point locally, and only remove the unneeded fields first, deploy that everywhere, then add the new ones. |
Thanks Brandon, that makes sense and will definitely help us move forward. Needless to say that this was bad field management on our part in the first place. Also apologies for trying to continue a support thread via the GitHub. support@craftcms.com is indeed one of the best things about Craft :) |
@brandonkelly FYI, your workaround of manually deleting a bunch of fields on the target install, before running project sync, worked a treat. We now have a clear route to take the rebuild live once it's done, so thank you very much for that. |
Awesome! |
Row size limits are no longer an issue in Craft 5. |
We're considering a change to DDEV that would allow monster rows and would appreciate comments. I know that Craft 5 has a different approach, but of course lots of people won't be there yet. We'd appreciate comments on |
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
ADDfield_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
Additional info
The text was updated successfully, but these errors were encountered: