Page 1 of 1

Error! Problem saving the files encoded in the theme.

Posted: Sat Jan 20, 2007 4:31 pm
by ragawa
I have always got "Error! Problem saving the files encoded in the theme", when I try to import theme with xml file from the theme manager. I have chmod 777 the directory themplates_c. Anybody knows how to solve this problem?

Re: Error! Problem saving the files encoded in the theme.

Posted: Sat Jan 20, 2007 7:33 pm
by tsw
those images are saved in pictures folders, try chmodding uploads/images and other uploads forlders so that apache can write into them

hope this helps

Re: Error! Problem saving the files encoded in the theme.

Posted: Sun Jan 21, 2007 4:41 am
by Dr.CSS
You may also try setting the (unmask) to 002 or 000 or leave it blank...

Re: Error! Problem saving the files encoded in the theme.

Posted: Mon Feb 26, 2007 6:22 am
by nicleo
Hi,
I just installed CMSMS v 1.0.4 and get the same error.
I'm uploading the theme "Panoramica.xml" and get the error "Error! Problem saving the files encoded in the theme".
(same error for all xml themes I tested)

uploads\
uploads\images
....are set to 777.

I have not tried "try setting the (unmask) to 002 or 000 or leave it blank" as I don't know what this is.

Dir uploads\Panoramica is created but remains empty.

Best regards, Nick Leo

Re: Error! Problem saving the files encoded in the theme.

Posted: Mon Feb 26, 2007 8:10 am
by cyberman
nicleo wrote: I have not tried "try setting the (unmask) to 002 or 000 or leave it blank" as I don't know what this is.
Means, you have to go to admin panel, menu "Site admin > Global preferences". There you will see a field named File Creation Mask (umask). There you've to insert 002 or 000.

Re: Error! Problem saving the files encoded in the theme.

Posted: Mon Feb 26, 2007 12:29 pm
by nicleo
hmm, I tested 002 then 000 and then left it blank.
None of it made any difference.

Anything else I can try?

//Nick

Re: Error! Problem saving the files encoded in the theme.

Posted: Mon Feb 26, 2007 1:32 pm
by cyberman
Have no better solution  ::). Think, we must bypass your server ...

Install a local server like xampp and import themes there. There are no permission problems.

Now all xml datas are extracted and you can export it via ftp to your life server.

Re: Error! Problem saving the files encoded in the theme.

Posted: Thu Mar 01, 2007 6:58 am
by nicleo
Thanks, that worked as a temp solution.
However, I'm moving around a lot and I really need to get the import working at my web hotel.

It does work fine when running a server on my workstation so it must be a problem with my web hotel.

It seem a lot of users have the same problem and I have not seen any of the cases beeing fully solved.

....so if any one out there would find the solution to the problem, pls let us know ASAP.

//Nick

Re: Error! Problem saving the files encoded in the theme.

Posted: Thu Mar 01, 2007 10:33 pm
by Dr.CSS
Who is hosting your site and on what platform/OS?...

Re: Error! Problem saving the files encoded in the theme.

Posted: Thu Mar 01, 2007 11:07 pm
by calguy1000
Okay, your problem is probably 'safe mode' related, and this relates to many of the XML, and image upload issues I've seen of late.

Here's a quick and dirty description of the base operation of safe mode:
When safe_mode is on, PHP checks to see if the owner of the current script matches the owner of the file to be operated on by a file function or its directory.
This means, that if safe mode is enabled on your server, the directory for uploads and files has to be owned by the same user that the directory you're operating under works on (AND permissions have to be open sufficiently).

And when creating a new directory, as XML theme (and module) uploads do, the destination directory is then owned by the httpd process user, which means that any attempt to create a file in that new directory will fail in safe mode (because the directory being operated on probably isn't owned by the same user as the script that's executing the command).

In essence.  Safe mode sucks.  Don't use it,  and raise hell with your hoster if they use it.

see this: http://ca.php.net/features.safe-mode

Re: Error! Problem saving the files encoded in the theme.

Posted: Fri Mar 02, 2007 3:21 am
by nicleo
OK, that explains it.
I checked and Yes, they run in safe mode and they will not change it for me.

    http://ws1.surf-town.net/phpinfo.php

I guess I just just have to move to another hotel.

Thanks...

//Nick