Importing Theme: "DTD Version mismatch, cannot import"

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Locked
fotojoe

Importing Theme: "DTD Version mismatch, cannot import"

Post by fotojoe »

Hey all,

New to CMSMS but I've had a good look and decided to give it a go for a new website. I'm having trouble installing themes though.

Every time I try to import a theme (Layout > Theme Manager > Import) I get the "DTD Version mismatch, cannot import". I've tried it with lots of Themes now and all give the same error. I tried both .xml and unzipped .zip themes, both the same.

Image

I'm running the latest stable release: 1.8.2

Anyone got any ideas?
I've seen similar threads on here from my searches but haven't found a solution. Want to get the site running asap so will have to find another CMS solution if I can't get past this.  :-\

Thanks for any help!
Joe
peterbus

Re: Importing Theme: "DTD Version mismatch, cannot import"

Post by peterbus »

found this on the net. Hope it 'll help you solve the problem

SYMPTOMS
CMS Made Simple may return the following error when attempting to import a theme using Theme Manager:

Theme Manager
Error!
DTD Version mismatch, cannot import

CAUSE
The issue occurs because the theme has not been successfully uploaded to the web server. By default, the php.ini file does not include a value for the upload_tmp_dir variable.  As a result the template is never written to the a local directory on the web server and cannot be read to determine the DTD version number.

RESOLUTION
Set the upload_tmp_dir value in php.ini to a directory that can be written by the IIS7 anonymous account.  Restart IIS.  You may now import the theme using Theme Manager
fotojoe

Re: Importing Theme: "DTD Version mismatch, cannot import"

Post by fotojoe »

Thanks for the reply. I don't have access to a php.ini file to change php settings. The template files seem to be uploading into the uploads folder ok.

Is there a way to manually upload the template files? I don't mind doing that.
peterbus

Re: Importing Theme: "DTD Version mismatch, cannot import"

Post by peterbus »

can't you find it or don't have permission? If the latter, can you ask your host to change the php.ini?


"Ad upload_tmp_dir = /var/tmp to php.ini, made sure that my webserver users could write to /var/tmp and restarted Apache -- all was well."
peterbus

Re: Importing Theme: "DTD Version mismatch, cannot import"

Post by peterbus »

Hi Joe,

If you go http://themes.cmsmadesimple.org/Download_Themes.html and choose to download the Theme "Another port from artisteer " (page 4) you'll find a instruction.txt file. In this you can read how to manually install this theme. MAybe you can use it with you's.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Importing Theme: "DTD Version mismatch, cannot import"

Post by Dr.CSS »

@fotojoe

Depending on which theme it is some have XML file and some are in ZIP form, if you could tell me what ones you can't get to work I may be able to fix them...
longhorn
Forum Members
Forum Members
Posts: 13
Joined: Wed Apr 13, 2011 8:54 pm

Re: Importing Theme:

Post by longhorn »

I'm having the same issue with a Theme called "Nichess_4" by Nichess. The Version I'm using is 1.9.4.2.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Importing Theme:

Post by Dr.CSS »

The XML is a mess, open the .tpl copy it into new template, copy CSS into new style sheet, upload images, change paths to images in template and CSS...

You need to make a GCB for the one called in the template or remove that call...
Gast00n
New Member
New Member
Posts: 2
Joined: Tue Nov 29, 2011 11:42 am

Re: Importing Theme:

Post by Gast00n »

longhorn wrote:I'm having the same issue with a Theme called "Nichess_4" by Nichess. The Version I'm using is 1.9.4.2.
nichess4 xml file gives an error because of an empty stylesheet.
Edit xml file, detele lines 68 to 72.

It worked for me (Cmsms v.1.10.1)

Once installed, just edit templates, and replace {stylesheet} by {cms_stylesheet}
Locked

Return to “Layout and Design (CSS & HTML)”