Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2007-04-23 18:24:16
- lcm
- New Member
- Registered: 2007-04-23
- Posts: 6
Comments cause 404 error
I am sorry in advance if my post is too “low level.” I am not a developer or even an HTML coder. Just a regular person who wanted a blog on my own domain.
I am relatively smart. :-)
So I got textpattern installed, found a template I liked, and generally got the hang of stuff over the weekend. Just a personal blog at www.zmitchellz.com.
But any attempt to comment results in a 404 error. I changed over to messy URLs in the admin preferences, but if I need to do something with the .htaccess file too, I don’t know what.
Please be gentle – I am so sorry to be so basic. :-)
Thanks in advance if anyone takes pity on me and can tell me specifically what to do.
Laura
Offline
Re: Comments cause 404 error
Hi lcm
and welcome to txp:)
Can you post the code found in the presentation>forms>comment_form
I don’t think that it’s either the htaccess or the clean/messy url…
I might be wrong but it will be good to start with the elimination method
Last edited by colak (2007-04-23 18:36:40)
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#3 2007-04-23 18:39:00
- lcm
- New Member
- Registered: 2007-04-23
- Posts: 6
Re: Comments cause 404 error
Sure!
It looks like this:
<txp:comments_error wraptag=“ul” break=“li” />
<table cellpadding=“4” cellspacing=“0” border=“0”>
<tr> <td align=“right”> <label for=“name”><txp:text item=“comment_name” /></label> </td>
<td> <txp:comment_name_input /> </td>
<td>
<txp:comment_remember />
</td>
</tr>
<tr> <td align=“right”> <label for=“email”><txp:text item=“comment_email” /></label> </td>
<td colspan=“2”>
<txp:comment_email_input />
</td>
</tr>
<tr> <td align=“right”> <label for=“web”><txp:text item=“comment_web” /></label> </td>
<td colspan=“2”>
<txp:comment_web_input />
</td>
</tr>
<tr> <td align=“right”> <label for=“message”><txp:text item=“comment_message” /></label> </td>
<td colspan=“2”>
<txp:comment_message_input />
</td>
</tr>
<tr> <td align=“right”> </td>
<td> <txp:comments_help /> </td>
<td align=“right”>
<txp:comment_preview />
<txp:comment_submit />
</td>
</tr>
</table>
I don’t think I changed anything here, but maybe I did (accidentally).
Offline
#4 2007-04-23 23:50:37
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Comments cause 404 error
http://www.zmitchellz.com/index.php?id=7#comment
http://www.webproducer.at/index.php?id=7#cpreview
For some reason, the form is trying to go to another location. My guess is that there is some kind of .htaccess redirect being used that is interfering. Could you post its contents?
Offline
#5 2007-04-24 01:10:52
- lcm
- New Member
- Registered: 2007-04-23
- Posts: 6
Re: Comments cause 404 error
Mary,
I see what you mean, that when you click preview it goes to an entirely different page.
I don’t understand the rest of your question (so sorry!) When you say some htaccess file and can I post “its” contents – do you mean the contents of the .htaccess file?
The one .htaccess file I see has the following 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
Laura
Offline
#6 2007-04-24 01:17:02
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Comments cause 404 error
Yes, that is what I meant. Unfortunately the problem doesn’t appear to be there. Can you go to your Diagnostics tab and post the results you get for “High” detail?
Offline
#7 2007-04-24 01:20:48
- lcm
- New Member
- Registered: 2007-04-23
- Posts: 6
Re: Comments cause 404 error
Here you go:
Textpattern version: 4.0.4 (r1956)
Last Update: 2007-04-21 13:24:10/2007-04-23 11:56:33
Document root: /home/zmitchellz/www/www
$path_to_site: /home/zmitchellz/www/www
Textpattern path: /home/zmitchellz/www/www/textpattern
Permanent link mode: messy
Temporary directory path: /home/zmitchellz/www/www/textpattern/tmp
Site URL: www.zmitchellz.com
PHP version: 4.4.6
Register globals: 1
Server Local Time: 2007-04-23 21:19:33
MySQL: 5.0.37-log
Locale: en_GB.UTF-8
Server: Apache
PHP Server API: cgi
RFC 2616 headers:
Server OS: Linux 2.6.19-grsec
.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_filesystem: binary
character_set_results: utf8
character_set_server: latin1
character_set_system: utf8
character_sets_dir: /usr/local/mysql5/share/mysql/charsets/
17 Tables: -
PHP extensions: xslt, xml, tokenizer/0.1, standard/4.4.6, sockets, session, pspell, posix, pcntl, overload, mysql, mhash, mcrypt, mbstring, ldap, imap, iconv, gettext, gd, ftp, exif/1.4 $Id: exif.c,v 1.118.2.37.2.7 2007/01/09 11:38:04 tony2001 Exp $, domxml/20020815, db, curl, ctype, calendar, bcmath, zlib/1.1, pcre, openssl, Zend Optimizer
/include/txp_category.php: r1879 (aee777474b2f67ca07fc25756ba25c15)
/include/txp_plugin.php: r1917 (74184c0d8ed8608f840707a255178617)
/include/txp_auth.php: r1879 (b1dd4072b7daf4e997c6ff65ce3d1b2d)
/include/txp_form.php: r1913 (16ec600b41438b4cca10d2c8a19b2db8)
/include/txp_section.php: r1891 (2959593586ba3e97bc602f369c32e738)
/include/txp_tag.php: r1915 (3b4a7f73d92f9bbbe09985c5aa830d29)
/include/txp_list.php: r1892 (41f4d32fd070234b78f94adefebd5234)
/include/txp_page.php: r1913 (34331a5468bbb18dd9f6a282f3aa11e8)
/include/txp_discuss.php: r1909 (9b9ee934a30f52cd7a4d8cb45c8380ab)
/include/txp_prefs.php: r1946 (05615b6275d8927a2a0d51918d70a896)
/include/txp_log.php: r1919 (ed54d02e865319f2506c642a6bde768b)
/include/txp_preview.php: r1238 (5a4ae3ff0d68f4cb573d6d62a00ce9e8)
/include/txp_image.php: r1955 (20be975e67fa7c4aa9a1a3e51bfaf379)
/include/txp_article.php: r1889 (7749f699c03d0c57e04fafe17dbfa94c)
/include/txp_css.php: r1897 (f5cf1c20badb96a063c7c180e9020359)
/include/txp_admin.php: r1879 (d36dac010d21df7bcf9cf5e242b34d58)
/include/txp_link.php: r1879 (0652287df8bb32c66cfa1b939402404a)
/include/txp_diag.php: r1902 (96697ade63048e517177f4129d47de76)
/include/txp_file.php: r1895 (6ed67b094522e51b028dc88baa07444c)
/include/txp_import.php: r1238 (634e75d1b61958875ff275e3130f23ad)
/lib/admin_config.php: r1747 (1563fcbaffe25b3272b0d85ff9d5571d)
/lib/txplib_misc.php: r1956 (182c50b86195f1abe9dbe15728df3cae)
/lib/taglib.php: r1535 (04806ef864d5b0d2974e0e5f6397a2d7)
/lib/txplib_head.php: r1887 (b110efd071e9a5bb395beea66ced128a)
/lib/classTextile.php: r1943 (2c559991e34738eef1990dc079bd91c4)
/lib/txplib_html.php: r1937 (c206ca9cb9a54a7a95f3355b77fd0fa2)
/lib/txplib_db.php: r1879 (d68b6ea69950e405c4fec23b8641d9c2)
/lib/IXRClass.php: r765 (cbe59b59246dce060a4b4a52b4d448d8)
/lib/txplib_forms.php: r1887 (0049a228dc8eb346f8603478a7c1b2e2)
/lib/class.thumb.php: r1955 (12961180eee3add5096e69e0a154284e)
/lib/constants.php: unknown (0e40251c717c52b2b7fe992b62a3e97a)
/lib/txplib_update.php: r1239 (757f8189fcc53a795d7c807f17b2e788)
/lib/txplib_wrapper.php: unknown (584448787b4a3488200722672c0eee0d)
/publish/taghandlers.php: r1949 (3fa1b9ded18e6074b2495a3f4e3c33b5)
/publish/atom.php: r1864 (50602e2f1c443819a0a60f14f39d3093)
/publish/log.php: r1637 (a4a772567079f18101a1752446f3f6d4)
/publish/comment.php: r1951 (a3f803d744fea80808eb27a3f6b28674)
/publish/search.php: r1748 (b0182abc287055fe0932c263b2a5266d)
/publish/rss.php: r1864 (ae43eaa9ebe6b00e63810ae60ca7c6b6)
/publish.php: r1945 (abff727405efc6c4ec8b1cb403290063)
/index.php: r1948 (adf86f44861797f4969373c708ef48fb)
/css.php: r944 (763fa7658fc19ad23a5b2126fcdf366c)
(Thank you so much for patiently helping me!)
Offline
#8 2007-04-24 01:49:55
- lcm
- New Member
- Registered: 2007-04-23
- Posts: 6
Re: Comments cause 404 error
Ok, so my default page looks like this:
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”>
<html>
<head>
<base href=“http://www.webproducer.at/flexible-layout/” />
<title><txp:page_title /></title>
<link rel=“stylesheet” type=“text/css” media=“screen”
href=”<txp:css />” />
<!—[if IE]><link rel=“stylesheet” type=“text/css” href=”<txp:css n=“ie” />” /><![endif]—>
</head>
<body>
<txp:linklist wraptag=“p” /> </div>
</div> </div> <div id=“col-c” class=“sidecol”> <div class=“box”><txp:search_input label=“Search” wraptag=“p” /> <txp:category_list break=“li” wraptag=“ul” /> <p><txp:feed_link label=“RSS” /> / <txp:feed_link label=“Atom” flavor=“atom” /></p>
</div> </div> <div class=“clear” id=“em”></div> </div> </div> <div id=“footer” class=“clear”> <p>Published with <a href=“http://www.textpattern.com/” title=“Textpattern”>Textpattern</a></p> </div> </div> </body></html>
which is code I copied when I chose and applied a template design. You can see at the top it refers to the http://www.webproducer.at site, which you noted the error was trying to go to.
Now, I have NO CLUE what I am doing, but if I replace that URL with mine (zmitchellz.com) it sort of works but sort of doesn’t. It does allow the submit button to show up, but then it tells me 403 error rejected by the spamfilter.
Does any of this give you a clue???
Offline
#9 2007-04-24 01:58:28
- lcm
- New Member
- Registered: 2007-04-23
- Posts: 6
Re: Comments cause 404 error
I think I fixed it!!!!!!!
I did what I did before, and looked up the 403 error, so I also added a trailing dot to my spam filter thingie.
And it’s working!!
Does what I did make any sense??
I don’t really know why it worked…..
Offline
#10 2007-04-24 02:51:17
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Comments cause 404 error
Ah, two problems then. It does, in fact, make perfect sense. Glad you got it all worked out.
The base tag can actually be removed altogether, you shouldn’t need it. This is what it does.
Offline
Pages: 1