Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-02-13 13:30:55

root
Member
From: Manila, Philippines
Registered: 2004-05-31
Posts: 48

4.03: SQL Error when Posting

I get this error in admin whenever I post.

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 ‘) order by Posted desc limit 1’ at line 1 select ID from `textpattern` where Posted < from_unixtime() order by Posted desc limit 1 in /root/txp/textpattern/lib/txplib_db.php on line 61

The thing posts, but having a “fatal error” can’t be good. Any ideas? :D

Offline

#2 2006-02-13 14:24:15

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

Re: 4.03: SQL Error when Posting

1) Are you running any plugins? Please turn all of them off and try again

2) Which version of mysql, which version of textpattern are you using? Please, post your diagnostics infromation.

3) What are the exat steps to reproduce the error on a clean installation? If we get a ste by tep procedure of how the error can be triggered starting from a clean install, we can try to find out the source of the error and fix it.

Offline

#3 2006-02-13 20:15:58

root
Member
From: Manila, Philippines
Registered: 2004-05-31
Posts: 48

Re: 4.03: SQL Error when Posting

I was reading back on past articles and while none of them seemed identical to my error, they all said to switch from “Debugging” to “Live” status. Now, my blog has been Live for some time now, but I’ve been editing my layout recently when the error’s come up. When I look at the site status, I find it in “debugging.” (I didn’t touch it, I promise!)

When I switch it back, the error goes away.

So is there an error here?

Thanks very much :D

Here’re my diagnostics:

(no plugins)

Textpattern version: 4.0.3 (r1188)
last_update: 2006-01-02 15:46:42/2006-01-02 15:42:53
Document root: /home/moonsha/public_html/beyond
$path_to_site: /home/moonsha/public_html/beyond/root/txp
Textpattern path: /home/moonsha/public_html/beyond/root/txp/textpattern
Permanent link mode: messy
open_basedir: /home/moonsha/:/usr/lib/php:/usr/local/lib/php:/tmp
Temp folder: /tmp
Site URL: beyond-sanity.org/root/txp
PHP version: 4.3.11
Register globals: 1
server_time: 2006-02-13 15:07:51
MySQL: 4.0.25-standard
Locale: en_US.UTF-8
Server: Apache/1.3.33 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.3.11 FrontPage/5.0.2.2634a mod_ssl/2.8.22 OpenSSL/0.9.7a
Apache version: Apache/1.3.33 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.3.11 FrontPage/5.0.2.2634a mod_ssl/2.8.22 OpenSSL/0.9.7a
php_sapi_mode: apache
os_version: Linux 2.4.26-ow3

Pre-flight check:
————————————
warn_register_globals_or_update
(my host doesn’t want to switch, and I don’t want to argue.)
————————————

.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

<Files root>
ForceType application/x-httpd-php
</Files>
————————————

Last edited by root (2006-02-13 20:18:17)

Offline

#4 2006-02-14 05:58:19

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: 4.03: SQL Error when Posting

Have you modified the admin write page at all? Running any plugins that affect that page?


Alex

Offline

#5 2006-02-14 10:30:37

root
Member
From: Manila, Philippines
Registered: 2004-05-31
Posts: 48

Re: 4.03: SQL Error when Posting

Not at all. I’ve never tampered with anything but the .htaccess file, and I’ve reverted back to the original. No plugins or hacks of any kind.

Offline

#6 2006-03-17 21:27:14

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: 4.03: SQL Error when Posting

Is this still a problem?

Offline

Board footer

Powered by FluxBB