Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-10-06 22:57:30

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

r1879 /lib/txplib_misc.php: Fatal error on post

This happens when you post or try to edit an article:

Fatal error:
Error: ‘’ is not an integer
assert_int()
textpattern/include/txp_article.php:69 array_map()
textpattern/include/txp_article.php:49 article_post()
textpattern/index.php:104 include(/home/cjbcc/public_html/textpattern/include/txp_article.php)
in /home/cjbcc/public_html/textpattern/lib/txplib_misc.php on line 1841

<pre>
Textpattern version: 4.0.3 (r1880)
Last Update: 2006-10-06 21:48:05/2006-10-06 21:32:46
Document root: /home/cjbcc/public_html
$path_to_site: /home/cjbcc/public_html
Textpattern path: /home/cjbcc/public_html/textpattern
Permanent link mode: section_title
open_basedir: /home/cjbcc/:/usr/lib/php:/usr/local/lib/php:/tmp
Temporary directory path: /tmp
Site URL: cjb.cc
PHP version: 4.4.4
Register globals: 1
Server Local Time: 2006-10-06 22:55:18
MySQL: 4.1.21-standard
Locale: en_US.UTF-8
Server: Apache/1.3.37 (Unix) mod_jk/1.2.14 mod_layout/3.2.1 mod_mono/1.0.2 mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.4.4 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.28 OpenSSL/0.9.7a
Apache version: Apache/1.3.37 (Unix) mod_jk/1.2.14 mod_layout/3.2.1 mod_mono/1.0.2 mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.4.4 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.28 OpenSSL/0.9.7a
PHP Server API: apache
rfc2616_headers:
Server OS: Linux 2.6.9-42.0.2.EL
active_plugins: jmd_html-0.1

Pre-flight check:
————————————
Some Textpattern files have been modified: /lib/txplib_wrapper.php
some_php_functions_disabled: passthru,proc_open,posix_kill,popen
————————————

.htaccess file contents:
————————————
Options -Indexes

<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.+) – [PT,L] RewriteRule ^(.*) index.php
</IfModule>

<Files 403.shtml>
order allow,deny
allow from all
</Files>

deny from 65.43.155.225
————————————

Charset (default/config): latin1/utf8
character_set_client: utf8
character_set_connection: utf8
character_set_database: latin1
character_set_results: utf8
character_set_server: latin1
character_set_system: utf8
character_sets_dir: /usr/share/mysql/charsets/
17 Tables: -

PHP extensions: zip, xml, tokenizer/0.1, standard/4.4.4, sockets, session, pspell, posix, overload, mysql, mcrypt, mbstring, gettext, gd, ftp, curl, ctype, calendar, bcmath, zlib/1.1, pcre, apache, ionCube Loader, Zend Optimizer

pretext_data: array ( ‘id’ => ‘’, ‘s’ => ‘’, ‘c’ => ‘’, ‘q’ => ‘’, ‘pg’ => ‘’, ‘p’ => ‘’, ‘month’ => ‘’, ‘author’ => ‘’, ‘request_uri’ => ‘/3ed2deffb991dffc2cf0cad0d2fda475/?txpcleantest=1’, ‘qs’ => ‘txpcleantest=1’, ‘subpath’ => ‘\\/’, ‘req’ => ‘/3ed2deffb991dffc2cf0cad0d2fda475/?txpcleantest=1’,
)

/include/txp_category.php: r1879 (aa84dc76082b0227a2b84cb5028c5ff2)
/include/txp_plugin.php: r1879 (a3d2f2b46c609cac62d115ef9bd0a000)
/include/txp_auth.php: r1879 (f84d0af5836156c5f10e503e19eea592)
/include/txp_form.php: r1879 (b0d73c5553d18c42ccd0d48255b90808)
/include/txp_section.php: r1879 (cf6826d716d16d9d1dd136e12b006a8d)
/include/txp_tag.php: r1879 (7f0bfa072ccf085bc42cb0c01e1ffda4)
/include/txp_list.php: r1879 (572789f8277f63598ace17c81f8e8f80)
/include/txp_page.php: r1879 (e9364feab0fa31d8133be8e269017b00)
/include/txp_discuss.php: r1879 (0689421281e7f63b4bef5c29ad9af3a9)
/include/txp_prefs.php: r1879 (b22eedb2ebd908f9bcb3f3428ff4e675)
/include/txp_log.php: r1879 (9985017f9e9ddbe63fa4e926b50b2b46)
/include/txp_preview.php: r1238 (5d3f54eeb736dc7cde1ae8d269d7ed37)
/include/txp_image.php: r1880 (5b510e424299a60fa4baf2d820ca73ce)
/include/txp_article.php: r1879 (09c8323a2feb7a7b883cbac014fbb32d)
/include/txp_css.php: r1879 (0db3d7a2aeb95b27b0f7a8eea02d2db4)
/include/txp_admin.php: r1879 (2877d7d092f0812c7956313408d79834)
/include/txp_link.php: r1879 (c1ea6a187e4f314e108cef85e6fe3157)
/include/txp_diag.php: r1839 (b7d24e17d2919345cf9605345abda911)
/include/txp_file.php: r1879 (25f4ee379b647fe59f93566be8ec6478)
/include/txp_import.php: r1238 (e5e41b797bc26018755828fe7b2f5f11)
/lib/admin_config.php: r1747 (f9c6ea27f665cd037d31c06ed54b3514)
/lib/txplib_misc.php: r1879 (a0a800721c70657607471b950e5f6403)
/lib/taglib.php: r1535 (5efb10c2638b6671ec3a47099cc428cd)
/lib/txplib_head.php: r1879 (d82de4f724b87f7f66b47440b851f01b)
/lib/classTextile.php: r1875 (724a41e0c570f9424ca6f54aad71a07e)
/lib/txplib_html.php: r1874 (2eda1d3992eb76f10f433e8393d29ed9)
/lib/txplib_db.php: r1879 (142f3d8eaf1e6e4aa120622925c1c8df)
/lib/IXRClass.php: r765 (2efb0fb05b55c634072b0bae9af38bdd)
/lib/txplib_forms.php: r1705 (79fed435b6203a77b94f593320b1a8d2)
/lib/class.thumb.php: r1879 (c21c86b865b6244cf42810f227e3790b)
/lib/constants.php: unknown (0e40251c717c52b2b7fe992b62a3e97a)
/lib/txplib_update.php: r1239 (813b996fd418da19242d7bc07d66bdf5)
/lib/txplib_wrapper.php: unknown (584448787b4a3488200722672c0eee0d)
/publish/taghandlers.php: r1879 (f14ac291069e2b31d39fdbee2dfda291)
/publish/atom.php: r1864 (8b51c019578514c6e0765cb11024b689)
/publish/log.php: r1637 (91f4ca2e4a9bd0a5a90e319646620a8e)
/publish/comment.php: r1879 (be85d63a29f23abfff6f506730adc5da)
/publish/search.php: r1748 (1f3b5b2dffa90ccf597959b1b0e975ff)
/publish/rss.php: r1864 (c48e432b1e7ccfe06de06842249f125d)
/publish.php: r1879 (3df74059a3060641e510e6d0a2b941e5)
/index.php: r1878 (a4ea5339eed6340fe7c7a5602833fdd8)
/css.php: r944 (df1c754417bdfb4e97a2c83ae5b454ee)
</pre>

Offline

#2 2006-10-06 23:24:16

hcgtv
Archived Plugin Author
From: Key Largo, Florida
Registered: 2005-11-29
Posts: 2,722
Website

Re: r1879 /lib/txplib_misc.php: Fatal error on post

Jon, it’s working fine for me in either Live, Testing or Debugging modes.

Maybe it’s because I’m using MySQL 4.0 instead of 4.1?

<code>
Textpattern version: 4.0.3 (r1880)
Last Update: 2006-09-16 13:23:13/2006-08-31 15:17:23
Permanent link mode: section_id_title
Site URL: txpun.com
PHP version: 4.3.10-16
Server Local Time: 2006-10-06 19:23:02
MySQL: 4.0.24_Debian-10sarge2-log
Locale: C
Server: Apache/2.0.54 (Debian GNU/Linux) PHP/4.3.10-16
Apache version: Apache/2.0.54 (Debian GNU/Linux) PHP/4.3.10-16
PHP Server API: apache2handler
rfc2616_headers:
Server OS: Linux 2.6.12.6-xenU
active_plugins: mcw_templates-0.2, SimplePie Plugin for Textpattern-1.2m
</code>

Offline

#3 2006-10-06 23:31:30

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: r1879 /lib/txplib_misc.php: Fatal error on post

I don’t know. I just reverted back to a September 30th version, and it works fine.

Offline

#4 2006-10-06 23:51:33

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: r1879 /lib/txplib_misc.php: Fatal error on post

Unable to replicate the error. This would indicate that your forms are somehow modified the error is thrown when we check that the following are integer values:

Annotate (Comments on/off)
Status (Draft..Sticky)
textile_body (use textile…leave untouched)
textile_excerpt (use textile…leave untouched)

What are your settings for those values? Have you made any modification to the article-publishing screen, or are you using any code, be it plugins, greasemonkeyscripts, proxies, “virus-scanner” etc. that may interfere with the request and change values?

Offline

#5 2006-10-07 00:05:56

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: r1879 /lib/txplib_misc.php: Fatal error on post

Ok, got it. Error appears when comments are turned off completely. Should be fixed in 1882.

Offline

#6 2006-10-07 21:00:58

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: r1879 /lib/txplib_misc.php: Fatal error on post

Yep, it’s fixed. Thanks!

Offline

Board footer

Powered by FluxBB