Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-06-13 15:38:31

Austin
Member
Registered: 2006-06-13
Posts: 19

404 error on comment_preview

I need help getting the comments to work on my site. I’m using the default comment_form in my articles and am using messy URLs. But whenever I hit the comment preview button, I get a 404 error. I am a beginner. Tried to find the answer on this forum, but couldn’t. Thanks.

Offline

#2 2006-06-13 15:44:58

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

Re: 404 error on comment_preview

Can you post your diagnostics please.

Also, If you can provide us with a link, that would be very helpful.

Offline

#3 2006-06-13 15:59:23

Austin
Member
Registered: 2006-06-13
Posts: 19

Re: 404 error on comment_preview

Thanks. I’ve been keeping comments off because of this problem, but should I turn them on,a nd repost for you?

http://byaustinkelley.com/worldcup/

Textpattern version: 4.0.3 (r1188)
last_update: 2006-06-04 22:05:13/2006-06-04 20:27:34
Document root:
$path_to_site: C:\Domains\byaustinkelley.com\wwwroot\worldcup
Textpattern path: C:\Domains\byaustinkelley.com\wwwroot\worldcup\textpattern
Permanent link mode: messy
Temp folder: C:\Domains\byaustinkelley.com\wwwroot\worldcup\textpattern\tmp
Site URL: byaustinkelley.com/worldcup
PHP version: 4.4.3RC2-dev
Register globals: 1
server_time: 2006-06-13 09:55:57
MySQL: 4.1.18-nt
Locale: English_United States.1252
Server: Microsoft-IIS/6.0
php_sapi_mode: cgi-fcgi
os_version: Windows NT 5.2

Pre-flight check:
————————————
C:\Domains\byaustinkelley.com\wwwroot\worldcup\textpattern\setup\ still exists
————————————

Offline

#4 2006-06-13 16:22:46

Austin
Member
Registered: 2006-06-13
Posts: 19

Re: 404 error on comment_preview

and here’s the error page:

http://byaustinkelley.com/worldcup/id=52#cpreview

Offline

#5 2006-06-13 16:29:43

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

Re: 404 error on comment_preview

Ah… IIS. I am guessing this will help you:

http://forum.textpattern.com/viewtopic.php?pid=110171#p110171

Offline

#6 2006-06-13 17:16:34

Austin
Member
Registered: 2006-06-13
Posts: 19

Re: 404 error on comment_preview

I made the change, as directed, in textpattern/publish/comment.php.

But comment_preview still gives me an error. It seems to be directing me to the right url:
http://byaustinkelley.com/worldcup/id=52#cpreview

but still, no luck.

Offline

#7 2006-06-13 18:01:54

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

Re: 404 error on comment_preview

No the url is not correct, it is missing a ? right after the last slash.

We have a fix in svn which may fix this for you. Try the following:

  • Open textpattern/publish.php
  • Around line 219-224 find:
    // IIS - can someone confirm whether or not this works?
    […]
    $out['request_uri'] = serverSet('SCRIPT_NAME').( (serverSet('QUERY_STRING')) ? '?'.serverSet('QUERY_STRING') : '');

replace it with the Lines 219-228 from here:
http://dev.textpattern.com/browser/development/4.0/textpattern/publish.php

Offline

#8 2006-06-13 18:32:17

Austin
Member
Registered: 2006-06-13
Posts: 19

Re: 404 error on comment_preview

That did it. Thanks.

Offline

#9 2006-06-13 22:40:22

ohdeer
Member
Registered: 2006-06-13
Posts: 13

Re: 404 error on comment_preview

I also need help with my comments in textpattern.
When I have previewed the comment and pushed the submit-btn I come to a 302-page instead of the article.

In the 302-page is says:

Found

The document has moved here.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

And heres my diagnostics:

Textpattern version: 4.0.3 (r1188)
last_update: 2006-05-26 20:28:11/2006-05-26 20:17:45
Document root: /customers/ohdeer.se/ohdeer.se/httpd.www
$path_to_site: /customers/ohdeer.se/ohdeer.se/httpd.www
Textpattern path: /customers/ohdeer.se/ohdeer.se/httpd.www/textpattern
Permanent link mode: year_month_day_title
Temp folder: /customers/ohdeer.se/ohdeer.se/httpd.www/textpattern/tmp
Site URL: www.ohdeer.se
PHP version: 4.4.1
server_time: 2006-06-14 00:37:26
MySQL: 4.0.24_Debian-10sarge2-log
Locale: en_GB.UTF-8
Server: Apache
php_sapi_mode: cgi-fcgi
os_version: Linux 2.6.12.6-vs2.0

.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

————————————

Last edited by ohdeer (2006-06-13 22:42:06)

Offline

#10 2006-06-14 01:16:02

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

Re: 404 error on comment_preview

ohdeer, I think you’ve encountered a known bug with has been fixed in svn (and will be available at the next maintenance release). Try replacing txplib_misc.php with this one (scroll to the bottom of the page and under “Download in other formats:” click on “Original Format”) and let us know if that fixes it.

Offline

#11 2006-06-14 08:50:27

ohdeer
Member
Registered: 2006-06-13
Posts: 13

Re: 404 error on comment_preview

I´ve replaced the file with the one you said. But now when I´m trying visit my website this text comes up:

Fatal error: Cannot redeclare since() (previously declared in /customers/ohdeer.se/ohdeer.se/httpd.www/textpattern/publish.php:848) in /customers/ohdeer.se/ohdeer.se/httpd.www/textpattern/lib/txplib_misc.php on line 917

Offline

#12 2006-06-14 18:14:44

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

Re: 404 error on comment_preview

Ah, shoot, too much difference (forgot about the function being moved). Sorry ‘bout that.

Okay, go back to the one from the zip. Open it up and go to line #1237. You want that function, “txp_status_header”, to look like this.

Offline

Board footer

Powered by FluxBB