Shouldn't break the JSON string.
Breaks the JSON string because it reaches the characters limit, and obviously the website stops working, the backoffice stops working too.
Would be great to change to MEDIUMTEXT which handles up to 16mb and/or 16.000.000 characters instead of 65.000.
Labels |
Added:
?
|
Hi Brian, the problem is most of the template builders store their custom "less" and "javascript" code in those fields, and if for some reason you have a huge piece of code, in my case i have 200 lines of less css code, and some template customisation and that was enough to make it break.
I don't know if they expected someone to have this amount of code but i'm pretty sure this happened to someone else...
They use that field to store all the template parameters, custom module positions, etc etc that's why it easily reaches that amount.
as I said if that is what they are doing then they are using the field wrong. It is a field for parameters - not code or content
I agree with Brian, it is not the intended use of the field. On the other site, it doesn't hurt. If the change would be from varchar to text it would be different. But text, medium text, long text doens't make a difference. If you will see this change you have to make a PR.
Yes of course... i was just reporting the situation, not saying this would be the ideal solution but i've seen a lot of people having similar issues with other components like Community Builder too, so would be great to come up with a solution either for Joomla! or for 3rd party extension developers.
Status | New | ⇒ | Discussion |
Category | ⇒ | com_templates Feature Request |
would be great to come up with a solution either for Joomla! or for 3rd party extension developers
Stop misusing the core database schema. For the frameworks that are adding this many options, they really should be storing the extra data to their own tables and not trying to cram everything in columns not designed for your use case.
Yes obviously i understand... well, it's not me it's those companies that develop those extensions used by thousands and thousands in the community, i just noticed the problem and decided to share the situation. Thank you.
Status | Discussion | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2018-08-09 15:17:08 |
Closed_By | ⇒ | mluispt |
Then they are using the field wrong. 65,000 characters is more than enough to store a param.