Redirect error after posting a comment

Author Message

Iris Hoekstra - Roscam Abbing

Monday 05 April 2004 6:08:45 am

If you would, please have a look at http://www.elysee.nl/index.php/content/view/full/100

Click on the 'n comments so far' link and try to add a comment. See the error that occurs. I have been trying to figure this one out for I don't know how long but I don't have a clue. Does anyone have any ideas?

I know some things still look a bit daft, especially in IE. I'm still working on it.

Thanks in advance, Iris

Eirik Alfstad Johansen

Wednesday 07 April 2004 1:32:12 am

Hi Iris,

I didn't find any errors, but rather I was brought to the version editing page. If this is what you're referring to as the error, it's probably because you are missing a hidden form field or two in your post-a-comment form.

Sincerely,

Eirik Johansen

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Iris Hoekstra - Roscam Abbing

Thursday 08 April 2004 4:46:05 am

Yes, this is exactly what I mean. When testing the site in Opera, you get an error, but in IE, it does what you described.

My form action looks like this:

action={concat("/content/edit/", $object.id, "/", $edit_version)|ezurl}

(Not sure I understand this, but I copied it from the "tscm" tutorial .)

And I have got these two hidden variables:

<input type="hidden" name="MainNodeID" value="{$main_node_id}" />
<input type="hidden" name="RedirectURI" value="{concat("content/view/full/", $object.parent_node.url_alias)|ezurl}" />

And I'm importing these two templates:

{include uri='design:content/edit_validation.tpl'}
{include uri='design:content/edit_attribute.tpl'}

Do I need anything else?

Eirik Alfstad Johansen

Tuesday 13 April 2004 12:09:42 am

Hi Iris,

If I remmeber correctly, there are also some hidden form fields in the edit_placement.tpl template which need to be included. I would recommend that you start with the default edit template and then remove code bit by bit to see which parts that are vital for the edit process to work, and which are not. Sadly, this is not documented anywhere.

Sincerely,

Eirik Johansen

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Iris Hoekstra - Roscam Abbing

Thursday 15 April 2004 1:31:56 pm

Thanks, Eirik. Unfortunately edit_placement didn't do the trick. The funny thing is that I also have the blog demosite up and running and there I can add comments without any problems. So I tried to copy everything I could from the templates from that site. I have compared everything about a hundred times but I can't see what's different.

When I look at Apache's access.log, I see that when I add a comment on the blog demosite it does this:
127.0.0.1 - - [15/Apr/2004:19:18:26 +0200] "GET /index.php/elysee/content/view/full/100 HTTP/1.1" 200 13168
127.0.0.1 - - [15/Apr/2004:19:18:42 +0200] "GET /index.php/blog/content/view/full/194 HTTP/1.1" 200 17071
127.0.0.1 - - [15/Apr/2004:19:18:52 +0200] "POST /index.php/blog/content/action HTTP/1.1" 200 8955
127.0.0.1 - - [15/Apr/2004:19:18:53 +0200] "GET /index.php/blog/content/stylesheets/admin.css HTTP/1.1" 200 11843
127.0.0.1 - - [15/Apr/2004:19:18:58 +0200] "POST /index.php/blog/content/edit/302/1 HTTP/1.1" 200 18427
127.0.0.1 - - [15/Apr/2004:19:19:10 +0200] "POST /index.php/blog/content/edit/302/1 HTTP/1.1" 200 12770
127.0.0.1 - - [15/Apr/2004:19:19:12 +0200] "GET /index.php/blog/content/edit/302/stylesheets/admin.css HTTP/1.1" 200 6912
127.0.0.1 - - [15/Apr/2004:19:19:18 +0200] "POST /index.php/blog/blogs/personal/party HTTP/1.1" 200 20423

But when I add a comment on my own site, all it does is this:
127.0.0.1 - - [15/Apr/2004:19:20:10 +0200] "GET /index.php/elysee/active_speakers/test HTTP/1.1" 200 12824
127.0.0.1 - - [15/Apr/2004:19:20:15 +0200] "POST /index.php/elysee/content/action HTTP/1.1" 200 8966
127.0.0.1 - - [15/Apr/2004:19:20:16 +0200] "GET /index.php/elysee/content/stylesheets/admin.css HTTP/1.1" 200 16555
127.0.0.1 - - [15/Apr/2004:19:20:20 +0200] "POST /index.php/elysee/content/edit/327/1 HTTP/1.1" 200 14407

Don't know if that helps, it's really just a different way of describing the same problem. But maybe it'll jog you memory or something.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 21:05:21
Script start
Timing: Jan 18 2025 21:05:21
Module start 'layout'
Timing: Jan 18 2025 21:05:21
Module start 'content'
Timing: Jan 18 2025 21:05:21
Module end 'content'
Timing: Jan 18 2025 21:05:21
Script end

Main resources:

Total runtime0.0180 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 589.1641152.6406
Module start 'layout' 0.00520.0041 741.804739.4609
Module start 'content' 0.00930.0066 781.265693.4453
Module end 'content' 0.01590.0020 874.710938.3047
Script end 0.0180  913.0156 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002413.3650140.0002
Check MTime0.00115.9949140.0001
Mysql Total
Database connection0.00084.517710.0008
Mysqli_queries0.004323.855030.0014
Looping result0.00000.083510.0000
Template Total0.00179.610.0017
Template load0.00105.729910.0010
Template processing0.00073.811610.0007
Override
Cache load0.00074.105710.0007
General
dbfile0.00169.014280.0002
String conversion0.00000.034440.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs