another: 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
brammetje

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

Post by brammetje »

Hey CMSMS'ers,

I hope I don't bother you with a silly question - I am quite new to CMSMS.

I am using CMSMS 1.0.4, the server has PHP 4.3.9

Like in this thread, I also have trouble uploading themes. But I think it is not a permission problem, because
uploads
uploads/images
tmp/templates_c
all have permissions 777, and I can see that something actually gets installed inside uploads, and in templates_c.

See attached screenshot from my FTP program (Cyberduck), I was trying to upload the theme Andreas03 on 27th february. The upper lines in the picture show the contents of tmp/templates_c. Below that you can see that a folder Andreas03 actually got created inside uploads, but that it is empty.

Maybe for you guys the test in the file ThemeManager-and then a lot of characters, ending in ...error.tpl.php is useful? Opened in a text editor, it says:

Code: Select all

<?php /* Smarty version 2.6.14, created on 2007-02-27 14:24:06
         compiled from module_file_tpl:ThemeManager%3Berror.tpl */ ?>
<h3><?php echo $this->_tpl_vars['title_error']; ?>
</h3>
<p><?php echo $this->_tpl_vars['admin_nav']; ?>
</p>
<?php if ($this->_tpl_vars['message'] != ''): ?><p><?php echo $this->_tpl_vars['message']; ?>
</p><?php endif; ?>
I am not really a permissions-specialist, so maybe I guessed wrong and it can still be a permissons problem. And if not, what else can cause the error?

any help is appreciated! Thanks in advance....

[edit: cleared up my question and added version numbers]

[gelöscht durch Administrator]
Last edited by brammetje on Tue Feb 27, 2007 2:07 pm, edited 1 time in total.
brammetje

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

Post by brammetje »

This is from the FAQ at my hoster. Does that explain why I have upload troubles?
Question: PHP variables don't get sent to pages?
Answer: DHOST doesn't support global variables, thus you must include POST (aka HTTP_POST_VARS) or GET (aka HTTP_GET_VARS) on variables that are passed to other scripts.

$_POST['variable'] - Variables that are directly sent to same/other script.
$_GET['variable'] - Variables passed over the URL. (i.e. script.php?action=go)

If you don't want to have the hassle of adding POST or GET to all of your variables...add this to the very top of your php script:

CODE
extract($_POST);
extract($_GET);


That code turns $_POST['variable'] and $_GET['variable'] into $variable.
Locked

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