Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-04-28 14:49:21

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

Comments submitting to wrong page

I got a static page as my default page.
My weblog is in section “blog”.
Now if I post a comment, I want to submit it to the same page (If I come from index.php?id=12 I want to see index.php?id=12 after I made a comment).

Now it submits to “index.php?commented=1#c000019” and it shows my default page.

How can I change this?

Offline

#2 2006-04-29 01:02:05

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

Re: Comments submitting to wrong page

That shouldn’t be, it’s supposed to already do that (return you to the correct page).

Offline

#3 2006-04-29 02:34:43

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

Re: Comments submitting to wrong page

How can I change this?

Textpattern is open source. Modify it any way you like.


Alex

Offline

#4 2006-04-29 08:23:05

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

Re: Comments submitting to wrong page

janw, if you can pst a link to the page in question and enable debug mode, we could take a look and try to find out where things are going wrong.

It usually is redirecting you to
index.php?id=12&commented=1#c000019

which displays the same page minus the comment form plus a short message in its place. See here:

http://txd.sencer.de/txp/index.php?id=1413

Offline

#5 2006-04-29 18:59:46

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

Re: Comments submitting to wrong page

it is redirecting to index.php?commented=1#c000020, without the id…..

Offline

#6 2006-05-01 09:05:38

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

Re: Comments submitting to wrong page

I understand what you are saying. Let me repeat what I asked you for:

janw, if you can post a link to the page in question and enable debug mode, we could take a look and try to find out where things are going wrong.

Offline

#7 2006-05-01 12:43:58

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

Re: Comments submitting to wrong page

It’s over here:
http://www.sprt.nl/index.php?s=blog
But It’s already live so I can’t enable debug mode.

Offline

#8 2006-05-01 13:12:46

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Comments submitting to wrong page

You can also enable it for just one minute or so, copy the output and paste it here. It would make it much easier for Sencer or someone else to help you.

Offline

#9 2006-05-01 13:21:38

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

Re: Comments submitting to wrong page

I tried yesterday but it doesn’t output anything?
What should I see?

Offline

#10 2006-05-01 13:25:06

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Comments submitting to wrong page

See instructions here.

Offline

#11 2006-05-01 13:52:58

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

Re: Comments submitting to wrong page

This is on the resulting page (which is my default page and thus the wrong one). Or do you need 1 before?

[SQL (0,001769): select name from `txp_lang` where lang=‘nl-nl’ limit 1]
[SQL (0,013743): select name, data from `txp_lang` where lang=‘nl-nl’ AND ( event=‘public’ OR event=‘common’)]
[SQL (0,001351): select name, code from `txp_plugin` where status=‘1’]
[SQL (0,001102): select * from `txp_section` where name = ‘default’ limit 1]
[SQL (0,000803): select host from `txp_log` where ip=‘195.85.176.98’ limit 1]
[SQL (0,000649): insert into `txp_log` set `time`=now(),page=’/index.php?commented=1’,ip=‘195.85.176.98’,host=‘wc-98.r-195-85-176.essentkabel.com’,refer=’‘,status=‘200’,method=‘GET’]
[SQL (0,001326): select user_html from `txp_page` where name=‘default’]
[Pagina: default]
<txp:output_form form=“meta” /> [SQL (0,001194): select form from `txp_form` where `name` = ‘meta’ limit 1] <txp:page_title/>
<txp:output_form form=“top” /> [SQL (0,000602): select form from `txp_form` where `name` = ‘top’ limit 1] <txp:output_form form=“sidebar” /> [SQL (0,000762): select form from `txp_form` where `name` = ‘sidebar’ limit 1] <txp:article_custom form=“news_teaser” section=“blog” sortby=“Posted” sortdir=“desc” limit=“10” /> [SQL (0,002696): select *, unix_timestamp(Posted) as uPosted from `textpattern` where 1 and Status=‘4’ and Posted < now() and Section = ‘blog’ order by Posted desc limit 0, 10] [SQL (0,000635): select Form from `txp_form` where `name` = ‘news_teaser’ limit 1] [Module: news_teaser] [artikel 24] <txp:image id=“24” /> [SQL (0,001099): select * from `txp_image` where id=‘24’ limit 1] <txp:permlink> <txp:title/> </txp:permlink> [artikel 12] <txp:permlink> <txp:title/> </txp:permlink> [artikel 11] <txp:image id=“17” /> [SQL (0,000693): select * from `txp_image` where id=‘17’ limit 1] <txp:permlink> <txp:title/> </txp:permlink> [artikel 13] <txp:image id=“12” /> [SQL (0,000846): select * from `txp_image` where id=‘12’ limit 1] <txp:permlink> <txp:title/> </txp:permlink> [artikel 10] <txp:image id=“16” /> [SQL (0,000613): select * from `txp_image` where id=‘16’ limit 1] <txp:permlink> <txp:title/> </txp:permlink> [artikel 14] <txp:image id=“18” /> [SQL (0,000858): select * from `txp_image` where id=‘18’ limit 1] <txp:image id=“19” /> [SQL (0,000736): select * from `txp_image` where id=‘19’ limit 1] <txp:permlink> <txp:title/> </txp:permlink> [artikel 21] <txp:image id=“22” /> [SQL (0,025878): select * from `txp_image` where id=‘22’ limit 1] <txp:permlink> <txp:title/> </txp:permlink> [artikel 15] <txp:permlink> <txp:title/> </txp:permlink> [artikel 18] <txp:permlink> <txp:title/> </txp:permlink> [artikel 17] <txp:permlink> <txp:title/> </txp:permlink> <txp:output_form form=“logo” /> [SQL (0,000703): select form from `txp_form` where `name` = ‘logo’ limit 1]
<txp:output_form form=“down”/> [SQL (0,000703): select form from `txp_form` where `name` = ‘down’ limit 1]
[ —- secondpass —- ] —>

Offline

#12 2006-05-02 09:55:41

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

Re: Comments submitting to wrong page

Any ideas?

Offline

Board footer

Powered by FluxBB