Page 1 of 1

DTD HTML in product description

Posted: Tue Nov 04, 2008 7:32 pm
by mikeytrw
Hey,

Is it just my install or does everybody get 'DTD HTML' in the description box when inserting a new product, or indeed editing an old one?

Its an FCKeditor issue and not an OC one I think because I've tried manually setting the textarea content to nothing...


thanks
M.

Re: DTD HTML in product description

Posted: Tue Nov 04, 2008 8:45 pm
by Qphoria
Upgrade to latest SVN version to fix (tho I thought it was also fixed in 0.7.9RC3)

Re: DTD HTML in product description

Posted: Tue Nov 04, 2008 9:23 pm
by mikeytrw
Hi Q thanks for the quick response,

I'm very near releasing this site into the open world, can you tell where this fix is, so I can patch my current install rather that bringing a new one in?

thanks

Re: DTD HTML in product description

Posted: Wed Nov 05, 2008 3:09 am
by jty

Re: DTD HTML in product description

Posted: Wed Nov 05, 2008 3:25 am
by Qphoria
I'm not sure that was the only thing tho...
There is also the changes here:
http://code.google.com/p/open-cart/source/detail?r=151
http://code.google.com/p/open-cart/source/detail?r=169
and there are ongoing discussions in :
http://code.google.com/p/open-cart/issues/detail?id=101

Re: DTD HTML in product description

Posted: Wed Nov 05, 2008 7:50 pm
by mikeytrw
Hi,

the fix described in one of the posts listed above...
The solution
Find in files information.tpl, mail.tpl, newsletter.tpl and product.tpl - "oFCKeditor.Config['DocType'] = 'DTD HTML';" and delete this line.
Seems to have worked for me :)

Thanks guys

Re: DTD HTML in product description

Posted: Wed Nov 05, 2008 9:00 pm
by hm2k
For reference that's mentioned here: http://forum.opencart.com/index.php/top ... ml#msg8189

As you can see, the bug is mentioned in a thread talking about v0.8, which then became v1.0...

However, I'm not seeing this bug at all.

The proposed line you're trying to remove will mean that you're using XHTML instead of HTML, which will make your code invalid.

See: http://code.google.com/p/open-cart/sour ... tpl&old=49