Home
Download
Add-ons
Help
Forum
Organisation
Project
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
May 27, 2012, 12:09:16 AM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
Interested in joining the WebsiteBaker team?
For more Information read
here
or on our
new website
.
155556
Posts in
21715
Topics by
7737
Members
Latest Member:
gx-world
WebsiteBaker Community Forum
English
Help & Support
(Moderators:
Argos
,
badknight
)
Data too long for column 'content' at row 1
Pages: [
1
]
Go Down
Author
Topic: Data too long for column 'content' at row 1 (Read 14837 times)
mvieke
Offline
Posts: 16
Data too long for column 'content' at row 1
«
on:
January 29, 2006, 05:44:16 PM »
I'm trying to create a WYSIWYG page, but when I try to save it I get the following error: "Data too long for column 'content' at row 1"
Is there some limit to the page size? I am trying to paste in a fairly large table.
If there is a limit can anyone recommend a solution for making long pages?
Logged
.my homepage.
kweitzel
Forum administrator
Offline
Posts: 6977
Re: Data too long for column 'content' at row 1
«
Reply #1 on:
January 29, 2006, 05:56:32 PM »
Hi ... I think this kind of data just calls for beeing stored in teh database and then called up, once the page is beeing loaded ...
Obviously you would need to do a bit of PHP coding and get the data into a table in the DB. You could then set up the whole page with a WYSIWYG Header, the PHP Table Loop (a codepage) and a WYSIWYG Footer.
Take a look at how some of the modules handle the loop section and go for it (providing you feel comfortable coding in PHP, unlike me ...)
Any other ideas? Cheers
Klaus
Logged
WebsiteBaker Org e.V. - for WebsiteBaker
mvieke
Offline
Posts: 16
Re: Data too long for column 'content' at row 1
«
Reply #2 on:
January 30, 2006, 03:44:33 PM »
I'm doing a project for a local business, and they are definitely not technically competent to use PHP. Let me describe the application.
This company want to publish some auction results on their website. There are normally over 200 items in each auction. I was hoping they could just copy/paste their results from MS Word into the WYSIWYG page. I think the HTML code for the table is too large for the database.
Can anyone recommend an easy solution to allow me to do this?
Logged
.my homepage.
dhdesign
Offline
Posts: 35
Re: Data too long for column 'content' at row 1
«
Reply #3 on:
January 30, 2006, 04:12:07 PM »
Quote from: mvieke on January 30, 2006, 03:44:33 PM
This company want to publish some auction results on their website. There are normally over 200 items in each auction. I was hoping they could just copy/paste their results from MS Word into the WYSIWYG page. I think the HTML code for the table is too large for the database.
Can anyone recommend an easy solution to allow me to do this?
Whenever they copy/paste the results from MS Word into the WYSIWYG editor, they are dragging along all the formatting code from MS Word.
Have them put the results into a plain text editor (Notepad), do some minimal formatting, then have them paste it into the WYSIWYG editor in WB and finish formatting it there. That way, they are only copying over the text, not all the MS code as well.
Logged
pcwacht
Guest
Re: Data too long for column 'content' at row 1
«
Reply #4 on:
January 30, 2006, 04:24:53 PM »
It could only have to do with 1 thing
error is :
Code:
Data too long for column 'content' at row 1"
Or the amount of data you wanna store in the field 'content' is more then that field can have.
look at your database table wysiwyg, the content field, it is typed as 'text'
this page :
http://dev.mysql.com/doc/refman/5.0/en/storage-requirements.html
says it could hold ( L+2 bytes, where L < 2^16 ) 65536 +2 bytes
If you need more change it to mediumtext or longtext wich could hold the most (L+4 bytes, where L < 2^32) wich is 65536*65536 +4
Good luck,
John
Logged
mvieke
Offline
Posts: 16
Re: Data too long for column 'content' at row 1
«
Reply #5 on:
January 30, 2006, 09:40:40 PM »
dhdesign,
Word, Excel and Frontpage all add a bunch of "junk code" but the table is so large that it is not feasible to manually remove all the office stuff that is automatically added. I would love some suggestions on how to automate it.
pcwacht,
I changed the content and text rows in the database to longtext, and now I can save everything without any problem.
Thanks a lot, you were both a big help to me
Logged
.my homepage.
rabsaul
Offline
Posts: 263
Re: Data too long for column 'content' at row 1
«
Reply #6 on:
August 16, 2006, 02:48:36 AM »
Quote from: pcwacht on January 30, 2006, 04:24:53 PM
It could only have to do with 1 thing
error is :
Code:
Data too long for column 'content' at row 1"
Or the amount of data you wanna store in the field 'content' is more then that field can have.
look at your database table wysiwyg, the content field, it is typed as 'text'
this page :
http://dev.mysql.com/doc/refman/5.0/en/storage-requirements.html
says it could hold ( L+2 bytes, where L < 2^16 ) 65536 +2 bytes
If you need more change it to mediumtext or longtext wich could hold the most (L+4 bytes, where L < 2^32) wich is 65536*65536 +4
I'm facing the same problem - WB pages aren't allowing enough data to show for long articles. I have been attempting the above, but haven't got it to work. In phpMyAdmin, I am at the wysiwyg page. In the text row, I click change, and alter the type to longtext. No workie. (I also tried changing the *field* to longtext as well, but then the page wouldn't even save.) Do I need to change something in the "attributes" as well? What exactly do I need to do?
Thanks!
Logged
rabsaul
Offline
Posts: 263
Re: Data too long for column 'content' at row 1
«
Reply #7 on:
August 16, 2006, 02:51:34 AM »
Duh. Never mind. I see I was supposed to modify the content field, and I was modifying the text field. Got it!
Logged
kweitzel
Forum administrator
Offline
Posts: 6977
Re: Data too long for column 'content' at row 1
«
Reply #8 on:
August 16, 2006, 10:18:39 AM »
A different approach would be to automat the formatting of the word document. Make a script which opens the document and saves it as textfile then reopens the textfile lets say in wordpad. Then let your client copy it from Wordpad (or even notepad) to WB. With VB-Script it should not be a problem.
Or, if it is tables you are after, let the script export it as CSV (comma separated values) and copy it to the webservers datadirectory. Then use a little PHP-Script on a codepage to parse these files and output the sesults.
cheers
Klaus
Logged
WebsiteBaker Org e.V. - for WebsiteBaker
masarin
Offline
Posts: 51
Re: Data too long for column 'content' at row 1
«
Reply #9 on:
May 29, 2008, 11:47:55 PM »
Quote
It could only have to do with 1 thing
error is :
Code:
Data too long for column 'content' at row 1"
Or the amount of data you wanna store in the field 'content' is more then that field can have.
look at your database table wysiwyg, the content field, it is typed as 'text'
this page :
http://dev.mysql.com/doc/refman/5.0/en/storage-requirements.html
says it could hold ( L+2 bytes, where L < 2^16 ) 65536 +2 bytes
If you need more change it to mediumtext or longtext wich could hold the most (L+4 bytes, where L < 2^32) wich is 65536*65536 +4
With WB 2.7 this issue is fixed for WYSIWYG Pages, but not for the News Modul.
With the help of this post I figured out how to change that one too:
In phpMyAdmin go to mod_news_post, then look for the field content_long and change its type to LONGTEXT.
That's it
Logged
Pages: [
1
]
Go Up
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> General Announcements
=> Security Announcements
=> Documentation
=> WebsiteBaker Website Showcase
=> Guest Area & Off-Topic
-----------------------------
English
-----------------------------
=> WebsiteBaker 2.9
===> Announcements
===> Help/Support
=====> Modules / Extensions
===> Suggestions
===> Software bugs
=> Help & Support
=> Modules
=> Droplets (PHP code for use with Droplet module) & Snippets (raw PHP code)
=> jQuery
=> Templates, Menus & Design
=> WebsiteBaker Language Files
=> WebsiteBaker 2.x discussion
=> WebsiteBaker 3
=> Archive (posts up to 2007)
-----------------------------
Deutsch (German)
-----------------------------
=> Ankündigungen
=> WebsiteBaker 2.9
===> Ankündigungen
===> Hilfe/Support
=====> Module / Extensions
===> Vorschläge
===> Softwarefehler
===> Erfahrungs und Testberichte
=> Hilfe/Support
=> Module & Snippets
=> Templates & Design
=> Tutorials
=> jQuery
=> Diskussion über WB
=> Off-Topic
=> Archiv für Themen bis 2007
-----------------------------
Nederlands (Dutch)
-----------------------------
=> Aankondigingen
=> Hulp & Ondersteuning
=> Niet-Terzake (Off Topic)
-----------------------------
Francais (French)
-----------------------------
=> Help/Support
-----------------------------
Italiano (Italian)
-----------------------------
=> Help/Support
-----------------------------
Bakery (WB shop module)
-----------------------------
=> Bakery English
=> Bakery Deutsch
-----------------------------
KeepInTouch (Multi Contact Module)
-----------------------------
=> KeepInTouch English
=> KeepInTouch Deutsch
Loading...