longtext problem
- Single Page
Posted 27 July 2012 - 22:29 PM
i add data from mysqladmin it works but if i add the data from grocery crud, it cuts the data from 8832'th character (includes blank)
i change to ckeditor, i try to unset texteditor but it didn't works.
i cannot find the way out. i'm so appreciated if you help me about this issue.
Here is the codes: http://pastebin.com/vAR0ETSG
thanks in advance...
Posted 28 July 2012 - 04:56 AM
For what you are using _textarea() callback for the "content" field? It seems to me the problem might be there.
Posted 28 July 2012 - 07:45 AM
No it's not. If i remove it or use unset_textarea('content') or change_field_type('content,'text') same problem continues.
_textarea callback is for use CKEditor instead of tinyMCE to my content fields.
This codes also gives same error: http://pastebin.com/JzJWqZFv
Posted 28 July 2012 - 07:58 AM
Posted 28 July 2012 - 08:10 AM
Posted 28 July 2012 - 10:05 AM
Posted 28 July 2012 - 12:10 PM
$crud->field_type('something', 'text');
and everything is ok.
Don't know... Please, post your function with the corresponding dump of db table.
And the last thing: when you return the data by calback function _textarea(), there are "name" and "id" which not correspond to name and id of grocery CRUD input field, cause of you use your own values.
Posted 28 July 2012 - 19:48 PM
is there any post limitation on unix servers? maybe?
DB and full codes: http://pastebin.com/gFShWmuh
Posted 28 July 2012 - 20:47 PM
I tried you code, it works: 'content' field with 'longtext' and $crud->field_type('content', 'text'); in the ckeditor or tinymce works well. Don't know
I tried it in my local machine: Ubuntu 12.04 + XAMPP 1.7.7 + CodeIgniter 2.1.2 + grocery CRUD 1.2.3 (without .htaccess).
Please, try you code on the another local machine or server. It seems to me that the problem is not in grocery CRUD, maybe you are right about some post limitation.
Posted 28 July 2012 - 20:48 PM
Posted 28 July 2012 - 21:02 PM
Posted 28 July 2012 - 21:11 PM
maybe grocery crud is filtering the text like sprintf() function. i cannot find the exact line for this operation.
Here is the weird html which my clients try to insert: http://pastebin.com/NWTMMwtM
Posted 28 July 2012 - 21:24 PM
And what versions of CI and grocery CRUD do you use? And what says firebug? Is there any error?
Posted 29 July 2012 - 12:02 PM
GC v1.2.3
No firebug errors. nothing at all.
i just read all grocery crud codes but i didn't find anything at all. i'm going to lose my mind...
Posted 29 July 2012 - 12:41 PM
$this->crud->callback_before_update(array($this,'_save_content'));
function _save_content($post_array,$primary_key) {
$idata = $post_array;
$idata['id'] = null;
$this->db->insert('guney_pages_shadow',$idata);
return $post_array;
}
same problem on shadow table.
Posted 29 July 2012 - 17:26 PM
Here is a screencast: http://screencast-o-matic.com/watch/cliUb6KDP
Posted 29 July 2012 - 22:10 PM
Sorry about distrubution, and noskov.biz i'm so appreciated for your efforts. Thanks much.
Posted 30 July 2012 - 04:38 AM
You are welcome!