Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2006-02-02 07:34:42
- Champak
- Member
- Registered: 2006-01-31
- Posts: 56
write article db problem
I am getting the following error at the bottom of the page only when I click the write tab.
<code>Fatal error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘’ at line 1 select category_id from `jokestextpattern_category` where article_id= in /home/XXXXXXX/public_html/tester/textpattern/lib/txplib_db.php on line 61</code>
Any ideas?
(Edit: assumed resolved and marked as such. :) -Mary)
Offline
#2 2006-02-02 17:04:24
- KurtRaschke
- Plugin Author
- Registered: 2004-05-16
- Posts: 275
Re: write article db problem
Please post your Textpattern diagnostics.
-Kurt
kurt@kurtraschke.com
Offline
#3 2006-02-02 19:06:56
- Champak
- Member
- Registered: 2006-01-31
- Posts: 56
Re: write article db problem
I don’t know if I did this right but here. Thanks.
Textpattern version: 4.0.3 (r1188)
last_update: 2006-01-30 20:29:48/2006-01-30 20:21:14
Document root: /home/XXXXX/public_html
$path_to_site: /home/XXXXX/public_html/tester
Textpattern path: /home/XXXXX/public_html/tester/textpattern
Permanent link mode: section_id_title
Temp folder: /home/XXXXX/public_html/tester/textpattern/tmp
Site URL: www.XXXXX.com/tester
PHP version: 4.4.2
server_time: 2006-02-02 14:04:21
MySQL: 4.1.14-standard
Locale: en_GB.UTF-8
Server: Apache/1.3.34 (Unix) mod_fastcgi/2.4.2 mod_gzip/1.3.26.1a mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635 mod_ssl/2.8.25 OpenSSL/0.9.7a PHP-CGI/0.1b
php_sapi_mode: cgi
os_version: Linux 2.6.9-22.0.2.ELsmp
Pre-flight check:
————————————
/home/XXXXX/public_html/tester/textpattern/setup/ still exists
————————————
.htaccess file contents:
————————————
#DirectoryIndex index.php index.html
#Options +FollowSymLinks
#RewriteBase /relative/web/path/
<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.+) – [PT,L]
RewriteRule ^(.*) index.php </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_results: utf8
character_set_server: latin1
character_set_system: utf8
character_sets_dir: /usr/share/mysql/charsets/
21 Tables: jokestxp_discuss_nonce: 1 client is using or hasn’t closed the table properly, jokestxp_form: 2 clients are using or haven’t closed the table properly, jokestxp_note is latin1, jokestxp_plugin: 2 clients are using or haven’t closed the table properly, jokestxp_tcm_rqueue is latin1, jokestxp_tcm_rsum is latin1
PHP extensions: zip, xslt, xmlrpc/0.51, xml, wddx, tokenizer/0.1, standard/4.4.2, sockets, session, pspell, posix, overload, mysql, mhash, mcrypt, mbstring, imap, gettext, gd, ftp, exif/1.4 $Id: exif.c,v 1.118.2.37.2.4 2006/01/01 13:46:52 sniper Exp $, domxml/20020815, curl, ctype, calendar, bcmath, zlib/1.1, pcre, openssl
/include/txp_category.php: r1154 (dffd7979531373149c74e3eedfbb50e2)
/include/txp_plugin.php: r1167 (c2c7d7fc1e4918c79cd3658c62e4fbda)
/include/txp_auth.php: r1166 (3e2eaca7b151e14561125ab68e722203)
/include/txp_form.php: r947 (c0e4393328985742bd81cda61d10d5ed)
/include/txp_section.php: r1154 (d85c1ce405fccd9dac364c8ef4eb72eb)
/include/txp_tag.php: r1134 (3e2dfbd6fdccf0693c147ba22a9705e7)
/include/txp_list.php: r1042 (e85d2de1c63b41f0e5bdcf268e3c487b)
/include/txp_page.php: r876 (e22dc37b465b87757722732a225b25f3)
/include/txp_discuss.php: r1170 (1e56e08cc95c255783410076db12529f)
/include/txp_prefs.php: r1170 (c806be1b1f238e75a5ff6b7cf8432d17)
/include/txp_log.php: r906 (68c4f32b70ce41a349f197b6bba6c200)
/include/txp_preview.php: r628 (a16f84b6610fc66db0bce51e25b7af34)
/include/txp_image.php: r1168 (e8ec79ff9b3a21c356ee23da7973b1f0)
/include/txp_article.php: r1170 (88689d7469d16c13d51bd4adff03ebd7)
/include/txp_css.php: r922 (0c596d9968052b89581d1ca65a77c5de)
/include/txp_admin.php: r1074 (7e87ff0e29101593fb170b1a2de9fd59)
/include/txp_link.php: r1154 (7c0c55ff6580793dff0626f169e64ad6)
/include/txp_diag.php: r1154 (5d66b90f7e7720dd0e3526ca1b24cf89)
/lib/admin_config.php: r877 (9aea12193cc76eea1964eb0383ec6513)
/lib/txplib_misc.php: r1170 (7000a1b27aa40c90978211e6cff358ec)
/lib/taglib.php: r628 (493878f922262157601c26a999a1c478)
/lib/txplib_head.php: r1183 (fb85b66b4e379476935233f844844bef)
/lib/classTextile.php: r1141 (b066c2bfa94a26ae3d70b245dcf81369)
/lib/txplib_html.php: r1166 (bd11de6e6daa3391eab75a46db55ae36)
/lib/txplib_db.php: r1170 (5a2c3a1e328cd343a067cbb8fd25cd79)
/lib/IXRClass.php: r765 (2efb0fb05b55c634072b0bae9af38bdd)
/lib/txplib_forms.php: r950 (74da2c67abe4786c353ea416c13656eb)
/publish/taghandlers.php: r1188 (4e8eaeb0543d8fde09d6e423af4253b9)
/publish/atom.php: r1117 (14c1aa23c708898d7723b3d6b9c89050)
/publish/log.php: r864 (c3d16d3dfe375819a19fcd62398e4b86)
/publish/comment.php: r1187 (d55dde574418d2eaf6a394d703056d9a)
/publish/search.php: r884 (80f942f1dc301857c2fa9dcb16aa1246)
/publish/rss.php: r1099 (ce0d82b9435d8f1de01c8e2b6c585f93)
/publish.php: r1186 (d5c20bf2298e87969575f9e622bf2797)
/index.php: r1172 (52f753ebb51c1f7d5312485d9dbad7e4)
/css.php: r944 (df1c754417bdfb4e97a2c83ae5b454ee)
Last edited by Champak (2006-02-02 19:07:54)
Offline
#4 2006-02-03 16:55:03
- KurtRaschke
- Plugin Author
- Registered: 2004-05-16
- Posts: 275
Re: write article db problem
It does seem like there’s something a little odd going on with your database—maybe time to run REPAIR TABLE
? You can do that from phpMyAdmin or the mysql
command line.
-Kurt
kurt@kurtraschke.com
Offline
#5 2006-02-03 19:30:52
- Champak
- Member
- Registered: 2006-01-31
- Posts: 56
Re: write article db problem
Thanks, I did what you said. I think I understand what you were looking at. After I ran it I’m still having the same problem. The remaining diagnostic error is now:
<code>21 Tables: jokestxp_note is latin1, jokestxp_tcm_rqueue is latin1, jokestxp_tcm_rsum is latin1</code>
How do I fix the remaining problem now?
Offline
#6 2006-02-03 20:53:22
- KurtRaschke
- Plugin Author
- Registered: 2004-05-16
- Posts: 275
Re: write article db problem
The errors you’re seeing now pertain to character set issues, and you’ll find a number of other forum topics on solving character set issues (unfortunately I don’t have much experience with them). Are you still experiencing your original problem—the error on the ‘write’ tab? Looking at that error message, I doubt it could be caused by the character set mismatch. Are you using any plugins which modify Textpattern’s behaviour with regard to categories? (just a guess since the original error was complaining about txp_category
)
-Kurt
kurt@kurtraschke.com
Offline
#7 2006-02-03 21:16:48
- Champak
- Member
- Registered: 2006-01-31
- Posts: 56
Re: write article db problem
Yes the error is still happening on the write tab area. It looks like it is do to the Unlimited Category Plug. When I take it off the error goes away. The error is actually taking the place of everything below the excerpt box. Any ideas on this?
Offline
#8 2006-02-03 21:41:43
- KurtRaschke
- Plugin Author
- Registered: 2004-05-16
- Posts: 275
Re: write article db problem
Yes, contact the author of “the Unlimited Category Plug” and report the situation to them—it may be a bug or configuration error.
-Kurt
kurt@kurtraschke.com
Offline
#9 2006-02-05 01:09:49
- Champak
- Member
- Registered: 2006-01-31
- Posts: 56
Re: write article db problem
thanks I’ll check them out
Offline
Pages: 1