Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2006-05-03 03:59:51

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

Re: Comments submitting to wrong page

Hmm.

I looked at an article and the comment form is generating the correct url:

<form method="post" action="/index.php?id=12#cpreview"

When I preview a comment, this correct url is preserved. So it is only when you submit the comment that you are not redirected properly?

Offline

#14 2006-05-03 09:27:36

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

Re: Comments submitting to wrong page

It’s an IIS+PHP configuration issue, apparently “REQUEST_URI” is not being set on your installation. We are working around this in some places (like the part that Mary highlighted), we’ll make sure to do so for the redirect as well (in the next maintenance update 4.0.4).

In the meantime, you can try to fix this by:

  • Opening textpattern/publish/comment.php
  • Finding somewhere around the line 188 the occurence of the line
    ? fInput('hidden','backpage',serverset("REQUEST_URI"))
  • and replacing it with
    ? fInput('hidden','backpage',$url)

Offline

#15 2006-05-08 06:52:02

janw
Member
From: Groningen
Registered: 2005-11-18
Posts: 47

Re: Comments submitting to wrong page

Thanks a lot!
That solves my problem :-)

Offline

Board footer

Powered by FluxBB