I'm entering plaint text into a table with in one case two and the other case three cells. When I edit any of the cells and enter more text into the cell and saves it, it makes that table item disappear! I can this way make a table completely disappear if I keep editing the rows.

I checked the database and the items are there in both tables.
I downloaded it yesterday and it's a fresh install.

Comments

pobster’s picture

Status: Active » Fixed

I'm assuming that I forgot to branch my CVS code then... This was noticed and fixed a day or two ago, please download the CVS version and tell me if it's still doing it? If you'd like a reason - it's because when you pass text to validate through check_markup for some unfathomable reason Drupal adds <p>....</p> to it. If however you pass it an empty string, for an even more unfathomable reason it passes you back <br /> and a newline... NOT helpful... I've no idea who this would be helpful to either...

...I'm only assuming this is your problem... Please let me know either way and if you still have the issue please let me know exactly how to reproduce it - maybe even post the contents of your tablemanager_data entries which are affected?

Thank you

Pobster

pobster’s picture

Assigned: Unassigned » pobster

I'm assuming that I forgot to branch my CVS code then... This was noticed and fixed a day or two ago, please download the CVS version and tell me if it's still doing it? If you'd like a reason - it's because when you pass text to validate through check_markup for some unfathomable reason Drupal adds <p>....</p> to it. If however you pass it an empty string, for an even more unfathomable reason it passes you back <br /> and a newline... NOT helpful... I've no idea who this would be helpful to either...

...I'm only assuming this is your problem... Please let me know either way and if you still have the issue please let me know exactly how to reproduce it - maybe even post the contents of your tablemanager_data entries which are affected?

Thank you

Pobster

pobster’s picture

Wow! I've no idea why that went in twice!!! Maybe my alcohol induced shakes made me double tap, who knows ;o)

Sorry about that!

Pobster

gdip’s picture

Yep - know those symptoms :-)

gdip’s picture

No, no change. Deleted all tables, uninstalled and installed the new tablemanager but the newly created table item disappeared when I edited it.
The data seems to be in the database though.

pobster’s picture

Status: Fixed » Active

Can you tell me the number you see at the top of the tablemanager.module?

<?php
// $Id: tablemanager.module,v 1.31 2006/05/24 18:23:28 pobster Exp $

And also, could you please post what os you're using, php version and mysql version. I'd also appreciate it if you could post the serialized data which tablemanager doesn't display.

Thank you

Pobster

gdip’s picture

Status: Active » Fixed

Forgot this. Inserted a break after desc\";}
The Drupal layout can't handle long rows.

INSERT INTO `tablemanager` VALUES (3,1,'Testar','','a:3:{i:0;a:3:{s:4:\"data\";s:4:\"tab1\";s:5:\"field\";s:1:\"1\";s:4:\"sort\";s:4:\"desc\";}
i:1;a:2:{s:4:\"data\";s:4:\"tab1\";s:5:\"field\";s:1:\"2\";}i:2;a:2:{s:4:\"data\";s:4:\"tab1\";s:5:\"field\";s:1:\"3\";}}',1,'');

INSERT INTO `tablemanager_data` VALUES (8,3,1,'a:3:{i:0;s:199:\"sdsdf s dfs s sd sdffdssf sdfsdf sdsdf s dfs s sd sdffdssf sdfsdfsdsdf s dfs s sd sdffdssf sdfsdfsdsdf s dfs s sd sdffdssf sdfsdfsdsdf s dfs s sd sdffdssf sdfsdfsdsdf s dfs s sd sdffdssf sdfsdf\";i:1;s:133:\"sdsdf s dfs s sd sdffdssf',3);

gdip’s picture

// $Id: tablemanager.module,v 1.31 2006/05/24 18:23:28 pobster Exp $

MySQL 4.0.26
PHP 4.4.2

I guess "the serialized data" was posted in the previous post, wasn't it?
Otherwise please tell me how to find it.

pobster’s picture

Yep that's the serialized data thanks :o) And it's all now become clear! It seems I forgot to submit a change to the db - your tablemanager_data 'data' column is set as varchar(255) when mine is set to text. Sorry about that I didn't notice as I haven't bothered to reinstall the tables on my own installation. I've updated the .install file so please download the new version either directly from the CVS repository or wait until the main tarball has been updated.

PLEASE let me know whether this fixes your problem, although I think it will - its plain to see that your serialized data has been cut short...

Thank you

Pobster

pobster’s picture

Sorry I'm assuming a lot of you here! Just to clarify, obviously run http://www.yoursite.com/update.php after you've got the new .install file (version 1.10) I'm off to bed now as I've an early start tomorrow, but again - PLEASE post if it fixes your problem or not.

Thank you

Pobster

gdip’s picture

You fixed it :-))

Thanks!!

pobster’s picture

Status: Fixed » Closed (fixed)