Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2009-01-01 10:55:30
- Zubrik
- Member
- Registered: 2005-07-28
- Posts: 65
Article limit - text disappears when saving in TXP
Hi,
I want to publish quite a long article. I’m writing it in Textile in a text editor, then I copy and paste it in my site, but when I hit the “Save” button, all the text disappears from the textarea.
I’ve tried copying and pasting it in parts, so I copy some paragraphs and paste them, then hit “Save”, but when I reach a certain amount of text, the problem happens again.
I’m using the latest version of TXP.
When I run diagnostics, the only problem I have is the show_source function being disabled in my server, but I don’t know if that may have something to do with my text disappearing problem.
Thanks for any advice.
Edited:
Moreover, when I switch between tabs in TXP (Text, HTML, Preview), this info appears on screen:
Notice: Undefined variable: sPosted in /home/conejos/public_html/textpattern/include/txp_article.php on line 381
Fatal error:
Error: ‘’ is not an integer
textpattern/include/txp_article.php:871 assert_int()
textpattern/include/txp_article.php:381 checkIfNeighbour()
textpattern/include/txp_article.php:51 article_edit()
textpattern/index.php:116 include()
in /home/conejos/public_html/textpattern/lib/txplib_misc.php on line 2128
Wish that can help solve the problem.
Last edited by Zubrik (2009-01-01 11:18:28)
Offline
Re: Article limit - text disappears when saving in TXP
Zubrik wrote:
when I hit the “Save” button, all the text disappears from the textarea.
As a stab in the dark, sometimes this is caused by your host environment. If they have limits on the size of a request, you may hit this problem if they simply empty out anything over a certain size instead of truncating it. If you have control over the php.ini file, or can otherwise set the size limits, try increasing them and see if that helps.
I have also known some hosts’ strict anti-spam filters to get in the way. In my case when I posted certain words in certain contexts, my article never got saved and I was shown an ugly HTTP error message. I don’t think this is what is happening in your case, but it might be related.
Notice: Undefined variable: sPosted in /home/conejos/public_html/textpattern/include/txp_article.php on line 381
Urk, that’s not good at all; perhaps that is the real reason things aren’t working right. But I can’t answer that one, sorry. You’ll have to wait for someone more knowledgeable to check in.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
Re: Article limit - text disappears when saving in TXP
Error: ‘’ is not an integer
Is this not possibly an indicator of a cut & paste problem?
Keith
Blyth, Northumberland, England
Capture The Moment
Offline
Re: Article limit - text disappears when saving in TXP
keith wrote:
Error: ‘’ is not an integer. Is this not possibly an indicator of a cut & paste problem?
I don’t think so in this case. That message comes from the assert_int()
function which checks if what you give it is actually a valid integer.
It seems that the code is expecting said integer (the contents of sPosted
should be a representation of the article’s ‘Posted’ date) and when it can’t find such a date — or it somehow fails to determine the date — you’ll see that message. sPosted
is supposed to be one of those “number of seconds since UNIX epoch” things, i.e. a big-ass number derived from the ‘Posted’ field of the article being edited. Here it is empty, and only people with bigger brains than me can determine why.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
Re: Article limit - text disappears when saving in TXP
Quite often it’s a plugin that causes this type of error.
Offline
#6 2009-01-02 08:21:00
- Zubrik
- Member
- Registered: 2005-07-28
- Posts: 65
Re: Article limit - text disappears when saving in TXP
I’ve created a new, longer article, wich contains just <p>, and there’s no problem saving it and switching betwwen Text, HTML and Preview tabs.
The article that gives me the problem, on the other hand, contains a bunch of tables and lists, and there’s a mix of Textile and XHTML in it.
Perhaps that helps finding a solution.
Offline
Re: Article limit - text disappears when saving in TXP
Another frequent reason for content-dependent errors is an overzealous security setting at the web server.
Try one of those steps:
1. If you can enable or disable “additional web security” (or something similar) in your web server’s control panel, try to disable it.
2. Disable POST security filtering. Create a new file named .htaccess
in your ../textpattern
(!) directory and put these directives into it:
<IfModule mod_security.c>
SecFilterScanPOST Off
</IfModule>
3. Visit your web server’s error_log
file to find out if related messages were recorded at the time of your post attempts.
Offline
#8 2009-01-02 11:07:30
- Zubrik
- Member
- Registered: 2005-07-28
- Posts: 65
Re: Article limit - text disappears when saving in TXP
wet wrote:
p. 3. Visit your web server’s
error_log
file to find out if related messages were recorded at the time of your post attempts.
This is what my server’s error_log says, since I updated to 4.0.7:
[31-Dec-2008 19:00:11] PHP Warning: include(/home/conejos/public_html/textpattern/lib/constants.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory in /home/conejos/public_html/index.php on line 24
[31-Dec-2008 19:00:11] PHP Warning: include() [<a href='function.include'>function.include</a>]: Failed opening '/home/conejos/public_html/textpattern/lib/constants.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/conejos/public_html/index.php on line 24
[31-Dec-2008 19:00:11] PHP Warning: include(/home/conejos/public_html/textpattern/lib/txplib_misc.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory in /home/conejos/public_html/index.php on line 25
[31-Dec-2008 19:00:11] PHP Warning: include() [<a href='function.include'>function.include</a>]: Failed opening '/home/conejos/public_html/textpattern/lib/txplib_misc.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/conejos/public_html/index.php on line 25
[31-Dec-2008 19:00:11] PHP Warning: include_once(/home/conejos/public_html/textpattern/lib/constants.php) [<a href='function.include-once'>function.include-once</a>]: failed to open stream: No such file or directory in /home/conejos/public_html/textpattern/publish.php on line 28
[31-Dec-2008 19:00:11] PHP Warning: include_once() [<a href='function.include'>function.include</a>]: Failed opening '/home/conejos/public_html/textpattern/lib/constants.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/conejos/public_html/textpattern/publish.php on line 28
[31-Dec-2008 19:00:11] PHP Warning: include_once(/home/conejos/public_html/textpattern/lib/txplib_misc.php) [<a href='function.include-once'>function.include-once</a>]: failed to open stream: No such file or directory in /home/conejos/public_html/textpattern/publish.php on line 29
[31-Dec-2008 19:00:11] PHP Warning: include_once() [<a href='function.include'>function.include</a>]: Failed opening '/home/conejos/public_html/textpattern/lib/txplib_misc.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/conejos/public_html/textpattern/publish.php on line 29
[31-Dec-2008 19:00:11] PHP Warning: include_once(/home/conejos/public_html/textpattern/lib/txplib_db.php) [<a href='function.include-once'>function.include-once</a>]: failed to open stream: No such file or directory in /home/conejos/public_html/textpattern/publish.php on line 30
[31-Dec-2008 19:00:11] PHP Warning: include_once() [<a href='function.include'>function.include</a>]: Failed opening '/home/conejos/public_html/textpattern/lib/txplib_db.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/conejos/public_html/textpattern/publish.php on line 30
[31-Dec-2008 19:00:11] PHP Warning: include_once(/home/conejos/public_html/textpattern/lib/txplib_html.php) [<a href='function.include-once'>function.include-once</a>]: failed to open stream: No such file or directory in /home/conejos/public_html/textpattern/publish.php on line 31
[31-Dec-2008 19:00:11] PHP Warning: include_once() [<a href='function.include'>function.include</a>]: Failed opening '/home/conejos/public_html/textpattern/lib/txplib_html.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/conejos/public_html/textpattern/publish.php on line 31
[31-Dec-2008 19:00:11] PHP Warning: include_once(/home/conejos/public_html/textpattern/lib/txplib_forms.php) [<a href='function.include-once'>function.include-once</a>]: failed to open stream: No such file or directory in /home/conejos/public_html/textpattern/publish.php on line 32
[31-Dec-2008 19:00:11] PHP Warning: include_once() [<a href='function.include'>function.include</a>]: Failed opening '/home/conejos/public_html/textpattern/lib/txplib_forms.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/conejos/public_html/textpattern/publish.php on line 32
[31-Dec-2008 19:00:11] PHP Warning: include_once(/home/conejos/public_html/textpattern/lib/admin_config.php) [<a href='function.include-once'>function.include-once</a>]: failed to open stream: No such file or directory in /home/conejos/public_html/textpattern/publish.php on line 33
[31-Dec-2008 19:00:11] PHP Warning: include_once() [<a href='function.include'>function.include</a>]: Failed opening '/home/conejos/public_html/textpattern/lib/admin_config.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/conejos/public_html/textpattern/publish.php on line 33
[31-Dec-2008 19:00:11] PHP Fatal error: Call to undefined function getmicrotime() in /home/conejos/public_html/textpattern/publish.php on line 44
Offline
Re: Article limit - text disappears when saving in TXP
Looks like you’ve missed a few files during the upload. Try once more…
Offline
#10 2009-01-02 11:31:56
- Zubrik
- Member
- Registered: 2005-07-28
- Posts: 65
Re: Article limit - text disappears when saving in TXP
wet wrote:
Looks like you’ve missed a few files during the upload. Try once more…
I re-upgraded, and nothing seems to improve.
By the way, this is what the diagnostics say (in Sapnish):
Versión de Textpattern: 4.0.7 (r3033)
Última actualización: 2008-12-31 18:06:53/2009-01-02 10:26:44
Document root: /home/conejos/public_html
$path_to_site: /home/conejos/public_html
Path a Textpattern: /home/conejos/public_html/textpattern
Modo de enlace permanente: section_title
Directorio temporal: /tmp
URL del sitio: www.xxxxxxxxxxxxx.com
Versión de PHP: 5.2.5
Biblioteca de imagen GD: bundled (2.0.34 compatible); formatos soportados: GIF, JPG, PNG.
Tiempo Local del Servidor: 2009-01-02 12:51:51
MySQL: 5.0.51a-community
Local: es_ES.UTF-8
Servidor: Apache/2.2.9 (Unix) mod_ssl/2.2.9 OpenSSL/0.9.8b DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
PHP Server API: cgi
Cabeceras RFC 2616: 0
Sistema Operativo del servidor: Linux 2.6.18-92.1.10.el5PAE
Plugins Activos: zem_contact-0.6m, bas_flvplayer-0.2, ob1_title-2.2, mdn_count-1.4, rss_suparchive-0.16.1
Comprobación previa:
————————————
Las siguientes funciones de PHP (que pueden ser necesarias para Textpattern) están deshabilitadas en tu servidor: show_source
————————————
Contenidos del archivo .htaccess:
————————————
#DirectoryIndex index.php index.html
#Options +FollowSymLinks
#Options -Indexes
<IfModule mod_rewrite.c> RewriteEngine On #RewriteBase /relative/web/path/
RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.+) – [PT,L]
RewriteCond %{REQUEST_URI} !=/favicon.ico RewriteRule ^(.*) index.php
RewriteCond %{HTTP:Authorization} !^$
RewriteRule .* – [E=REMOTE_USER:%{HTTP:Authorization}]
</IfModule>
#php_value register_globals 0
————————————
Charset (default/config): latin1/utf8
character_set_client: utf8
character_set_connection: utf8
character_set_database: latin1
character_set_filesystem: binary
character_set_results: utf8
character_set_server: latin1
character_set_system: utf8
character_sets_dir: /usr/share/mysql/charsets/
18 Tables: OK
Extensiones de PHP: xmlwriter/0.1, libxml, xmlrpc/0.51, dom/20031129, xmlreader/0.1, xml, tokenizer/0.1, session, pcre, SimpleXML/0.1, SPL/0.2, sockets, SQLite/2.0-dev, standard/5.2.5, Reflection/0.1, posix, mysql/1.0, mime_magic/0.1, mcrypt, mbstring, json/1.2.1, imap, iconv, hash/1.0, gettext, gd, ftp, filter/0.11.0, date/5.2.5, curl, ctype, calendar, bcmath, zlib/1.1, openssl, cgi, eAccelerator/0.9.5.3, suhosin/0.9.27, Zend Optimizer
/../index.php: r2885 (07df52cf240f35ed1db621304d26f680)
/css.php: r2772 (4d5b1fc3589c3a175a6d100042073a20)
/include/txp_admin.php: r3013 (39db1c3021c33ad8675c3e40d2ce0fe6)
/include/txp_article.php: r3033 (37bb535e252c4796eeeba5be20a0e226)
/include/txp_auth.php: r2856 (9291e4ebbe87921a765209cbc9ee6c66)
/include/txp_category.php: r2947 (b34b82edd9130528c129301b671a61d2)
/include/txp_css.php: r2836 (e39c717cc7fb5afda81b520644c5bed8)
/include/txp_diag.php: r2930 (b3f713f94e068aa4f891bbd4ceafe6e2)
/include/txp_discuss.php: r2994 (5bac3c8be75d55ee791346b8245fc56f)
/include/txp_file.php: r3016 (28b3134a0652c2b9f7f5018fd2be3340)
/include/txp_form.php: r2994 (433d1d1087afe4880c93ddd1afd44b1e)
/include/txp_image.php: r2994 (49093961b5b10be54fc45cd8d090741c)
/include/txp_import.php: r2812 (ddf61c42f9dace30d9d2bdb976c2762f)
/include/txp_link.php: r2994 (1395446475dded75033c01857ab489c2)
/include/txp_list.php: r3033 (1106388ce132fa7c6161c504d8ed4a73)
/include/txp_log.php: r3003 (0c81cdb83ba98fa9097353a859beb7a4)
/include/txp_page.php: r2994 (5feb4fb3940c24839d2fe743f46388c4)
/include/txp_plugin.php: r2948 (027bfb3ea837984785446900f515aacb)
/include/txp_prefs.php: r2965 (05335e08e4d7584cfd38b7af7e5a9d1d)
/include/txp_preview.php: r1238 (64de77f275a336d581425b3f05427745)
/include/txp_section.php: r2759 (97d7221ead97497644ebeeeaee460377)
/include/txp_tag.php: r2868 (c16be34198f79bcf80fa7cd1b463e4de)
/index.php: r3025 (a052be4e3877768b80fc5d2a67352276)
/lib/IXRClass.php: r2932 (292f64a316088dd54e22ebbe0310bed7)
/lib/admin_config.php: r2812 (37fc7e59624a431ebe60085c6376eb2e)
/lib/class.thumb.php: r2859 (e0cc384ab8121c4a95b9c9325df3a15a)
/lib/classTextile.php: r2812 (28cb53acccd418e6a0f832eb08002069)
/lib/constants.php: r3033 (0c8cdf4ba7629a31391076b9624842a9)
/lib/taglib.php: r2868 (7748936c0eb64f55fd7659a47697c74b)
/lib/txplib_admin.php: r2726 (dfce8f698c57bfbef8511690fc04fc55)
/lib/txplib_db.php: r3033 (5c764a86158d55bf72e58ec55cfdd84a)
/lib/txplib_forms.php: r3033 (a11d5b09eab337faf01f452544eb9b25)
/lib/txplib_head.php: r3004 (a3a5ccd14665ee25ea73e7646667c85a)
/lib/txplib_html.php: r2981 (64fe6808d2fea1c5d966b143a17d1914)
/lib/txplib_misc.php: r3017 (bdd8d8235c37422ca0db00febd2a6e49)
/lib/txplib_update.php: r2812 (2d84e29d2749f59e4f869956daf34f1c)
/lib/txplib_wrapper.php: r2931 (aba033174425e5ceac840557c594235d)
/publish.php: r3033 (5f3902f96e84ff52af98f77fccf578db)
/publish/atom.php: r3033 (813650da027604848c6ea5678148fdaa)
/publish/comment.php: r3011 (8cd141292a74734ac3e0ced9565163e7)
/publish/log.php: r2937 (b18f84fc40b5b1c4cc9df04dd6065369)
/publish/rss.php: r3033 (2c5051c53fb54d2e98b7b70480387122)
/publish/search.php: r2812 (724a9876809efe461ed1043ef1202258)
/publish/taghandlers.php: r3033 (e51dc2b36fa5242848d59164c99d79fb)
/../rpc/index.php: r2998 (fe85476abd66e78243a28145f51f6c3c)
/../rpc/TXP_RPCServer.php: r2998 (cc21bac9cae7c6de1d7b219e7290196c)
/update/_to_1.0.0.php: r711 (a8ed15439927effd9410d398bf070c32)
/update/_to_4.0.2.php: r711 (535e452b8d1071d005e2c1d0b199c0b3)
/update/_to_4.0.3.php: r711 (f5506cfd0fbc3ad4bd9a9b2299468775)
/update/_to_4.0.4.php: r711 (4d867b42ee87a7f11d2bff3a8e91bed0)
/update/_to_4.0.5.php: r2894 (b39e404b5120ad687a4a07a1156d6352)
/update/_to_4.0.6.php: r2464 (7e5ae73eb64c24438918697089a1f321)
/update/_to_4.0.7.php: r3014 (24b32428e0385a021e8815940190980d)
/update/_update.php: r3024 (f950d225bf3d8cf6742ae0054dbce8bf)
I have no idea if the stuff about the show_source PHP function being disabled on the server may have anything to do with the problem.
Thanks again.
Last edited by Zubrik (2009-01-02 11:54:57)
Offline
Re: Article limit - text disappears when saving in TXP
Are you uploading in binary? SFTP?
Offline
#12 2009-01-02 12:01:40
- Zubrik
- Member
- Registered: 2005-07-28
- Posts: 65
Re: Article limit - text disappears when saving in TXP
jstubbs wrote:
Are you uploading in binary? SFTP?
No, I’m uploading in “Auto” mode, and FTP.
Offline