Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Server not found error after comment submission
Hello everyone,
I recently upgraded to 4.0.4 and noticed that my comment form gives a “Server not found” error on submission of a comment. Previewing the comment works fine and the comment does actually get submitted, however it does not go back to the article. On checking the URL, I noticed that it “doubled up” (e.g. http://www.godsporch.nethttp//www.godsporch.net/?id=71&commented=1#c000210) and so that is probably the reason why it gave that error, however I am not sure exactly what causes the URL to double up after comment submission.
Anyone know why and knows of a possible solution? Do you need me to post a tag trace or any diagnostic info?
Offline
Offline
Re: Server not found error after comment submission
Walker,
Thanks but that didn’t seem to solve the problem. Based on what is happening, I wouldn’t think it had anything to do with comment spam blacklisting. Comments are posted, but instead of getting carried back to the article afterwards, I get a “server not found” error. Any particular reason why you thought it had something to do with the FAQ solution you posted?
Offline
#4 2006-11-16 02:21:35
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Server not found error after comment submission
On checking the URL, I noticed that it “doubled up” (e.g. http://www.godsporch.nethttp//www.godsporch.net/?id=71&commented=1#c000210) and so that is probably the reason why it gave that error, however I am not sure exactly what causes the URL to double up after comment submission.
Yes, that’d be why. It’s hard to say why that would happen. Could you please post the results of your “High” diagnostics?
Offline
Re: Server not found error after comment submission
Here you go Mary:
Textpattern version: 4.0.4 (r1956)
last_update: 2006-10-22 04:14:21/2006-10-22 04:12:15
Document root: /home/ylynfatt/godsporch.net (/home/.dazzy/ylynfatt/godsporch.net)
$path_to_site: /home/.dazzy/ylynfatt/godsporch.net
Textpattern path: /home/.dazzy/ylynfatt/godsporch.net/textpattern
Permanent link mode: section_id_title
Temp folder: /home/.dazzy/ylynfatt/godsporch.net/textpattern/tmp
Site URL: www.godsporch.net
PHP version: 5.1.2
server_time: 2006-11-15 18:27:28
MySQL: 4.1.14-Debian_5-log
Locale: en_GB.UTF-8
Server: Apache/1.3.37 (Unix) mod_throttle/3.1.2 DAV/1.0.3 mod_fastcgi/2.4.2 mod_gzip/1.3.26.1a PHP/4.4.4 mod_ssl/2.8.22 OpenSSL/0.9.7e
php_sapi_mode: cgi-fcgi
rfc2616_headers:
os_version: Linux 2.4.32-grsec+f6b+gr217+nfs+a32+fuse23+++opt+c6+gr2b-v6.192
active_plugins: kgr_safe_excerpt-0.2, glx_gravatar-0.2, rss_admin_db_manager-4.1, zem_contact-0.6, rss_suparchive-0.18.htaccess file contents:
————————————
ErrorDocument 404 /index.php
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^hail/search$ textpattern/include/import/hail/search/index.php
RewriteRule ^hail/search/favicon.ico$ textpattern/include/import/hail/search/favicon.ico
RewriteRule ^hail/search/(.*)$ textpattern/include/import/hail/search/index.php?vego=$1 [L]
RewriteRule ^hail/mint/(.*)$ textpattern/include/import/hail/mint/$1
</IfModule>
————————————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: /data/mysql/malvina/share/mysql/charsets/
18 Tables: OKPHP extensions: libxml, xsl/0.1, xmlwriter/0.1, dom/20031129, xmlreader/0.1, xml, tokenizer/0.1, standard/5.1.2, SimpleXML, SPL, session, PDO, SQLite, Reflection, pspell, posix, pdo_sqlite/1.0.1, pdo_mysql/1.0.2, mysqli/0.1, mysql/1.0, mcrypt, mbstring, iconv, hash/1.0, gettext, gd, ftp, exif/1.4 $Id: exif.c,v 1.173.2.4 2006/01/01 12:50:06 sniper Exp $, date/5.1.2, curl, ctype, calendar, 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)
Offline
Re: Server not found error after comment submission
any other suggestions?
Offline
#7 2006-11-17 21:40:54
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: Server not found error after comment submission
Just an observation: you’re using the 404 ErrorDocument method for clean URLs, which is not well tested.
Alex
Offline
Re: Server not found error after comment submission
Hmm..Thanks zem. I had to use the 404 ErrorDocument method with TXP 4.0.3 because my comment previews were disappearing, but I guess it might not be necessary anymore.
I took out all the things I had changed based on this article , but then my pages wouldn’t load properly with clean URL’s, turns out my .htaccess was also missing a few things that were in the default .htaccess that comes with TXP, so I added them back in and now it seems everything is working. Thanks again.
#DirectoryIndex index.php index.html
#Options +FollowSymLinks
#RewriteBase /relative/web/path/
#ErrorDocument 404 /index.php
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^hail/search$ textpattern/include/import/hail/search/index.php
RewriteRule ^hail/search/favicon.ico$ textpattern/include/import/hail/search/favicon.ico
RewriteRule ^hail/search/(.*)$ textpattern/include/import/hail/search/index.php?vego=$1 [L]
RewriteRule ^hail/mint/(.*)$ textpattern/include/import/hail/mint/$1
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) - [PT,L]
RewriteRule ^(.*) index.php
</IfModule>
#php_value register_globals 0
Above is my .htaccess now
Last edited by axle_foley00 (2006-11-17 23:36:22)
Offline