Theme Importing Error - DTD Version mismatch

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
gfroyle

Theme Importing Error - DTD Version mismatch

Post by gfroyle »

I decided to try and use Theme Manager to import some themes from themes.cmsmadesimple.org.

I successfully downloaded andreas01.xml and imported it.

I then tried some others like "OrangeGreyShadow.xml" and immediately got the message "DTD Version mismatch: cannot import".

On checking the web servers error log files I found that the following error message appeared whenever I tried to import these others..

PHP Notice: Undefined index in ...../admin/moduleinterface.php on line 89
PHP Fatal Error: Call to a member function GetFriendlyName() on a non-object in ... /admin/moduleinterface.php

So why should it be OK with andrea01.xml but not the others?

[I also had problems with the zip files for ALL of the zipped ones .. they refused to unzip with various error messages]

I am using a fresh install CMSms 0.13 version with recent versions of Apache/PHP/MySQL.

Help appreciated..

gordon
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Theme Importing Error - DTD Version mismatch

Post by Dr.CSS »

You need to upgrade the Theme manager the link is here...

http://dev.cmsmadesimple.org/frs/?group_id=72

What type of errors did you get with the .zip files?

Did you unzip them on your computer or sever?

The zip files may have the template and CSS and Menu templates in them, if so you will need to copy/paste them into their respective files in CMSMS, eg,. open the template in notepad then copy/paste it into a new template, do the same with the other files.

You will need to change any menu templates that end in .mm into .txt and then do the same as the other files.

The templates are in the midst of being converted into .xml files, if you need a particular one let me know I may have it already, just not uploaded to the theme site yet. 

Sorry, working as fast as I can on this.

  Thank you for your patience.
                                        mark
gfroyle

Re: Theme Importing Error - DTD Version mismatch

Post by gfroyle »

mark wrote: What type of errors did you get with the .zip files?

Did you unzip them on your computer or sever?
Thanks for the info.. I will try upgrading the Theme Manager.

The zip files errors were odd..

On attempting "unzip andreas00_cmsm.zip" I get

Archive:  andreas00_cmsms.zip
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of andreas00_cmsms.zip or
        andreas00_cmsms.zip.zip, and cannot find andreas00_cmsms.zip.ZIP, period.


This was on Mac OS X using the terminal, but I got the same error on Linux  ...
gfroyle

Re: Theme Importing Error - DTD Version mismatch

Post by gfroyle »

mark wrote: You need to upgrade the Theme manager the link is here...
I upgraded.. at least I removed the old ThemeManager directory and downloaded and replaced it with the latest one from the list.

In the list of installed modules, the version number for ThemeManager is 1.0.7.

But the problem still happens.. when I select the XML file, like OrangeGreyShadow.xml, and attempt to Import, I just get the same error:

DTD Version mismatch, cannot import


I am happy with the andreas01 theme for the moment, but at some stage would like to understand what creates this error - and presumably if I am getting this error with a fresh install on a standard configuration, then others might be...


Cheers

gordon
JohnnyKRK

Re: Theme Importing Error - DTD Version mismatch

Post by JohnnyKRK »

Hi,
I have also DTD Version mismatch problem with CMSMS_Themes.xml theme,
so I edit the file and I have added the following tag 1.2
after CMSMS_Themes.
After doing that you will be able to import.

For other problems if any like I have Smarty error: unable to read resource:
"globalcontent:phpdig_header" see Mark's solution in:
http://forum.cmsmadesimple.org/index.ph ... l#msg32792l

regards
Johnny
fuquam

Re: Theme Importing Error - DTD Version mismatch

Post by fuquam »

Same error here. I want to try the tabbed2 theme. I tried uploading the .zip file in theme manager wondering if there was an unzip function but no go. I've also tried manually sticking the files in their directories but I'm not exactly sure where they all go. Anyone have the tabbed2 theme installed and can export an XML version or tell me how to use the source files from the .zip?
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Theme Importing Error - DTD Version mismatch

Post by Dr.CSS »

On the themes site the last link/menu item has a little tutorial for using the zipped files...

http://themes.cmsmadesimple.org/using_t ... lates.html
Schebesta
New Member
New Member
Posts: 2
Joined: Tue May 06, 2008 11:43 pm

Re: Theme Importing Error - DTD Version mismatch

Post by Schebesta »

I have got the same error:

Warning: file_get_contents() [function.file-get-contents]: open_basedir restriction in effect. File(/tmp/php_upload/phpIA1J8G) is not within the allowed path(s) in /home/cy/cyc/cycloneinburma.com/public/www/modules/ThemeManager/action.importtheme.php on line 89

Warning: file_get_contents(/tmp/php_upload/phpIA1J8G) [function.file-get-contents]: failed to open stream: Operation not permitted in /home/cy/cyc/cycloneinburma.com/public/www/modules/ThemeManager/action.importtheme.php on line 89
Error!

DTD Version mismatch, cannot import

I have checked the DTD version of the template and its 1.2
I installed version cmsmadesimple-1.2.4.zip.
I have also CHMOD 777 for the folders /tmp and created a new folder called /tmp/php_upload and chmod it to 777 aswell.


Any help on this one would be superb!
Schebesta
New Member
New Member
Posts: 2
Joined: Tue May 06, 2008 11:43 pm

Re: Theme Importing Error - DTD Version mismatch

Post by Schebesta »

Schebesta wrote: I have got the same error:

Warning: file_get_contents() [function.file-get-contents]: open_basedir restriction in effect. File(/tmp/php_upload/phpIA1J8G) is not within the allowed path(s) in /home/cy/cyc/cycloneinburma.com/public/www/modules/ThemeManager/action.importtheme.php on line 89

Warning: file_get_contents(/tmp/php_upload/phpIA1J8G) [function.file-get-contents]: failed to open stream: Operation not permitted in /home/cy/cyc/cycloneinburma.com/public/www/modules/ThemeManager/action.importtheme.php on line 89
Error!

DTD Version mismatch, cannot import

I have checked the DTD version of the template and its 1.2
I installed version cmsmadesimple-1.2.4.zip.
I have also CHMOD 777 for the folders /tmp and created a new folder called /tmp/php_upload and chmod it to 777 aswell.


Any help on this one would be superb!
Still keen on some help on this. I reinstalled the CMS and still no dice...
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Theme Importing Error - DTD Version mismatch

Post by Dr.CSS »

When you get the first error what did you do to get it?...

The "DTD Version mismatch, cannot import" error is fixable by opening it up in something like PSPad editor and changing the DTD version... iirc...
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Theme Importing Error - DTD Version mismatch

Post by calguy1000 »

No, they're encountering a basedir issue, which is something different.

I'll put it on my list.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Locked

Return to “CMSMS Core”