Hidden eZSESSID form fields causes invalid XHTML 1.0 STRICT

Author Message

Eirik Alfstad Johansen

Friday 01 April 2005 2:58:54 am

Hi,

The hidden form fields containing the session ID causes validation errors for the XHTML 1.0 STRICT doctype, ref: http://validator.w3.org/check?uri=http%3A%2F%2Fwww.netmaking.no%2F3.5.1%2Findex.php%2Fnetmakin&charset=%28detect+automatically%29&doctype=%28detect+automatically%29&ss=1#line-105

This due to the fact that the hidden field needs to be surrounded by one of the following elements:

"p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del"

So my question is this: Is the hidden form field inserted by PHP or eZP and, if by eZP, where can I modify the HTML code so that it can be surrounded by one of the mentioned elements?

Thanks in advance !

Sincerely,

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

bisk

Friday 01 April 2005 3:25:25 am

I had a quick look at the validation link you provided. There is already a fieldset surrounding the hidden fields. But one hidden field is twice in the code, one before fieldset and one after, remove the first from the template (the name=eZSESSIDnetmakin input field) and I think it should validate.

-------------------------------
http://www.kookfijn.nl & http://www.magento.be

Eirik Alfstad Johansen

Friday 01 April 2005 3:43:23 am

Hi bisk,

Thanks for your reply, bisk. Actually, what you saw was me half way to fixing the problem (which I've now managed to fix entirely).

What was causing it was a combination of an anchient PHP bug (http://bugs.php.net/bug.php?id=13472), and the form fields being surrounded by div tags instead of fieldset tags.

I solved the problem by replacing the divs with fieldsets, and putting the following into my .htaccess file:

<IfModule mod_php4.c>
   php_value url_rewriter.tags "a=href,area=href,frame=src,fieldset=fakeentry"
</IfModule>

Sincerely,

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

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 20 2025 04:06:55
Script start
Timing: Jan 20 2025 04:06:55
Module start 'layout'
Timing: Jan 20 2025 04:06:55
Module start 'content'
Timing: Jan 20 2025 04:06:55
Module end 'content'
Timing: Jan 20 2025 04:06:55
Script end

Main resources:

Total runtime0.0152 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.0041 589.4141152.6563
Module start 'layout' 0.00410.0036 742.070339.5078
Module start 'content' 0.00770.0049 781.578189.4297
Module end 'content' 0.01260.0026 871.007834.3047
Script end 0.0152  905.3125 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002415.5206140.0002
Check MTime0.00116.9580140.0001
Mysql Total
Database connection0.00053.151110.0005
Mysqli_queries0.003019.421430.0010
Looping result0.00000.098610.0000
Template Total0.001811.710.0018
Template load0.00096.026610.0009
Template processing0.00095.605610.0009
Override
Cache load0.00064.203010.0006
General
dbfile0.00031.897280.0000
String conversion0.00000.040740.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