Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-09-09 13:33:14

eyediver
New Member
From: Denmark
Registered: 2005-02-02
Posts: 3
Website

Comments won't work on submit!

Hi

First of all I’m new at this whole TXP thing and I’m no server guy. I like TXP very much but I’m frankly quite frustrated at this point and I’m about to give up on it all if nothing results from this post. I have looked through this forum but havn’t found any solution yet.

I have made a clean install of TXP 4.01, and I’m using the standard article (id=1). I have tried using both messy and clean urls with the same result. As far as I can see the server supports mod_rewrite, but that shouldn’t be an issue as the same thing occurs in messy mode.

In this example I’m going to use messy-mode, as I want to rule out the possibility of mod_rewrite not being active. I havn’t changed anything in .htaccess

This is what I do to repeat the problem.

  1. Browsing to the section the url looks like: /?s=article
  2. Clicking “Comment” the URL changes to: /index.php?id=1#comment
  3. I now write my comment and click the “Preview” button and the URL changes to: /index.php?id=1#cpreview
  4. All looks good and I now click the “Submit” button.

This is where it goes off track. The URL is still the same: /index.php?id=1#cpreview, but now I get this error:

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.

When I click the “here” link it loads /index.php?id=1 and the error-page remains the same. I then click “here” again and it now loads the article page with my new comment at the bottom. The URL is still /index.php?id=1

Any help is much appreciated as I am stuck and unable to figure out what to do now.

Cheers,
Martin

Offline

#2 2005-09-09 16:08:22

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

Re: Comments won't work on submit!

It is likely because you have the .htaccess uploaded. Remove it, and switch back to messy if you haven’t. Any change?

Offline

#3 2005-09-09 23:13:48

eyediver
New Member
From: Denmark
Registered: 2005-02-02
Posts: 3
Website

Re: Comments won't work on submit!

I have tried renaming the .htaccess file and I am running in ?=messy mode. It is still the same problem with the 500 error.
Might it be the way the server is set up?

Offline

#4 2005-09-09 23:38:27

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

Re: Comments won't work on submit!

No, this is actually something that can happen in rare circumstances (server-environment) with the regular textpattern-code. We will fix this for the next release. In the meantime, you can edit publish.php and near line 43 delete the following two lines (or alternatively comment them out adding a doubleslash in front of them //like this):

<code> header(“Status: 200 OK”); header(“HTTP/1.1 200 OK”);
</code>

In most cases it should not have any adverse effect.

Offline

#5 2005-09-10 22:36:00

eyediver
New Member
From: Denmark
Registered: 2005-02-02
Posts: 3
Website

Re: Comments won't work on submit!

Excellent!! It works in both messy and clean mode.

Thanks a lot for the swift reply.

Offline

#6 2006-02-23 12:16:34

massimo
Member
Registered: 2006-02-02
Posts: 14

Re: Comments won't work on submit!

i have the same problem but i can’t find that two lines in the latest textpattern release

Offline

#7 2006-02-23 22:34:58

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

Re: Comments won't work on submit!

Then you don’t have the same problem.


Alex

Offline

Board footer

Powered by FluxBB