Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-01-04 17:00:20

NikLP
Member
From: Nottingham
Registered: 2005-02-01
Posts: 43
Website

Validation error caused by text in publish.php v4.0.3

Whee look I fixed something! :)

If you have Production Status set to ‘debugging’ in v4.0.3, the text set by publish.php for ‘secondpass’ causes xhtml 1.0 strict validation to fail.

Line 434 reads:

trace_add(‘[ —- ‘.gTxt(‘secondpass’).’ —- ]’);

…which generates a validation error for commenting syntax. Simply changing the text in this line to somthing more simple:

trace_add(‘[ – ‘.gTxt(‘secondpass’).’ – ]’);

removes this error!

Obviously if you’re debugging, you’re not too worried about people seeing it – but then again, if you’re debugging for validation, you might not want that error there all the time! Personally I use the htmlTidy extensions for FFox which tells me straight away if I have a validation error, and this problem was setting off alarm bells when really the problem is non-existent and very simple to fix.

Hope this is helpful to someone (or makes it into 4.0.4!)

Nik

Offline

Board footer

Powered by FluxBB