Error! Problem saving the files encoded in the theme.

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
ragawa

Error! Problem saving the files encoded in the theme.

Post 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?
Last edited by ragawa on Sat Jan 20, 2007 4:34 pm, edited 1 time in total.
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm

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

Post 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
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

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

Post by Dr.CSS »

You may also try setting the (unmask) to 002 or 000 or leave it blank...
nicleo

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

Post 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
cyberman

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

Post 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.
nicleo

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

Post 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
cyberman

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

Post 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.
nicleo

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

Post 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
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

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

Post by Dr.CSS »

Who is hosting your site and on what platform/OS?...
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

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

Post 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
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.
nicleo

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

Post 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
Locked

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