Page 1 of 2

Smarty Errors on install

Posted: Tue May 09, 2006 3:31 am
by Ryno
I've never had a problem installing CMS Made Simple before but when trying to install 0.13 beta 2, I got all these Smarty errors. Output is below or see http://www.seventhvision.com.au/cms/

Code: Select all

string(84) "Smarty error: problem creating directory '/home/s/sevenn/www/cms/tmp/cache/%%D8/D86'" string(105) "Smarty error: problem writing temporary file '/home/s/sevenn/www/cms/tmp/cache/%%D8/D86/wrt44600b452ad47'" string(90) "Smarty error: problem creating directory '/home/s/sevenn/www/cms/tmp/templates_c/%%D8/D86'" string(111) "Smarty error: problem writing temporary file '/home/s/sevenn/www/cms/tmp/templates_c/%%D8/D86/wrt44600b44df7d0'" string(90) "Smarty error: problem creating directory '/home/s/sevenn/www/cms/tmp/templates_c/%%D8/D86'" string(111) "Smarty error: problem writing temporary file '/home/s/sevenn/www/cms/tmp/templates_c/%%D8/D86/wrt44600b450152e'"
Warning: fetch(): Unable to access /home/s/sevenn/www/cms/tmp/templates_c/%%D8/D86/D862692E%%template%3A4.php in /home/s/sevenn/www/cms/lib/smarty/Smarty.class.php on line 1265

Warning: fetch(/home/s/sevenn/www/cms/tmp/templates_c/%%D8/D86/D862692E%%template%3A4.php): failed to open stream: No such file or directory in /home/s/sevenn/www/cms/lib/smarty/Smarty.class.php on line 1265

Warning: fetch(): Unable to access /home/s/sevenn/www/cms/tmp/templates_c/%%D8/D86/D862692E%%template%3A4.php in /home/s/sevenn/www/cms/lib/smarty/Smarty.class.php on line 1265

Warning: fetch(/home/s/sevenn/www/cms/tmp/templates_c/%%D8/D86/D862692E%%template%3A4.php): failed to open stream: No such file or directory in /home/s/sevenn/www/cms/lib/smarty/Smarty.class.php on line 1265

Warning: fetch(): Failed opening '/home/s/sevenn/www/cms/tmp/templates_c/%%D8/D86/D862692E%%template%3A4.php' for inclusion (include_path='.:/usr/local/lib/php/') in /home/s/sevenn/www/cms/lib/smarty/Smarty.class.php on line 1265
I've tried deleting all the files, reuploading them (a few times) and continually I get these errors. I tried just then installing it under XAMPP on Windows XP Pro and it works fine so it's either my FTP client (filezilla) or something on the server has changed?

Re: Smarty Errors on install

Posted: Tue May 09, 2006 5:03 am
by Dr.CSS
did you leave the Database host,, address, port, and name at the install default, such as local, etc. etc.
it sounds like it has no permissions to write to the database or wrong pointer/address,,

    mark

Re: Smarty Errors on install

Posted: Tue May 09, 2006 5:29 am
by Ryno
Hey Mark,

After wasting half an hour on the phone to the tech support person who maintains our servers, I found out that the smarty directive use_sub_dirs does not work if PHP is set to run in safe mode (as our server goes, grrrrrr). Bring on PHP 6 already!

I figured it out by readinig http://forum.cmsmadesimple.org/index.ph ... 08.15.html, which is probably what I should've done in the first place, I just presumed it must be my fault that it wasn't working.

Re: Smarty Errors on install

Posted: Tue May 09, 2006 8:24 am
by cyberman
Ryno wrote: I found out that the smarty directive use_sub_dirs does not work if PHP is set to run in safe mode (as our server goes, grrrrrr).
Can you set a .htaccess file?

If yes this content

Code: Select all

php_flag safe_mode off
could perhaps help ...

Re: Smarty Errors on install

Posted: Tue May 09, 2006 9:48 am
by Ted
I just commmitted the safe_mode check before it sets this to true.

Re: Smarty Errors on install

Posted: Tue May 09, 2006 9:55 am
by cyberman
When we will see the next beta  :) ?

Re: Smarty Errors on install

Posted: Tue May 09, 2006 10:02 am
by Ted
Going to look at my list one more time, but I'm actually thinking it'll be today.  We'll see how it goes.

Re: Smarty Errors on install

Posted: Fri May 19, 2006 8:00 pm
by lanceallen
I'm getting a similar error after what appears to be a successful install of cmsmadesimple-0.13. I've installed other versions of CMS Made Simple including 0.12 Fiji.
string(58) "Smarty error: problem creating directory 'C:/websites/715'" string(58) "Smarty error: problem creating directory 'C:/websites/715'"
Warning: fetch(C:\websites\715\sdespta.com/tmp/templates_c\%%D8\D86\D862692E%%template%3A4.php): failed to open stream: No such file or directory in C:\websites\715\sdespta.com\lib\smarty\Smarty.class.php on line 1265

Warning: fetch(): Failed opening 'C:\websites\715\sdespta.com/tmp/templates_c\%%D8\D86\D862692E%%template%3A4.php' for inclusion (include_path='.;c:\php\includes') in C:\websites\715\sdespta.com\lib\smarty\Smarty.class.php on line 1265
Do you need any other details to help? Thank you!

Re: Smarty Errors on install

Posted: Sat May 20, 2006 10:20 pm
by Lector
I have similar problems after installing version 0.13 which I wanted to use for an additional homepage (I have version 0.11.2 running smoothly for quite a while).

The following error message appears:
SecureSSI: Das Script (/usr/export/www/vhosts/funnetwork/hosting/indisguise/cmsmadesimple/index.php) hat versucht ausserhalb von ihrem Userverzeichniss auf die Datei /tmp/wrtvS22t4 zuzugreifen.
Dies ist nicht erlaubt!
string(155) "Smarty error: problem writing temporary file '/usr/export/www/vhosts/funnetwork/hosting/indisguise/cmsmadesimple/tmp/templates_c/%%D8/D86/wrt446f935111f8f'"
SecureSSI: Das Script (/usr/export/www/vhosts/funnetwork/hosting/indisguise/cmsmadesimple/index.php) hat versucht ausserhalb von ihrem Userverzeichniss auf die Datei /tmp/wrtz4E6tS zuzugreifen.
Dies ist nicht erlaubt!
string(155) "Smarty error: problem writing temporary file '/usr/export/www/vhosts/funnetwork/hosting/indisguise/cmsmadesimple/tmp/templates_c/%%D8/D86/wrt446f935112e88'"
Warning: fetch(/usr/export/www/vhosts/funnetwork/hosting/indisguise/cmsmadesimple/tmp/templates_c/%%D8/D86/D862692E%%template%3A4.php): failed to open stream: No such file or directory in /usr/export/www/vhosts/funnetwork/hosting/indisguise/cmsmadesimple/lib/smarty/Smarty.class.php on line 1265

Warning: fetch(): Failed opening '/usr/export/www/vhosts/funnetwork/hosting/indisguise/cmsmadesimple/tmp/templates_c/%%D8/D86/D862692E%%template%3A4.php' for inclusion (include_path='.:') in /usr/export/www/vhosts/funnetwork/hosting/indisguise/cmsmadesimple/lib/smarty/Smarty.class.php on line 1265
By the way: PHP is not running in safe mode as fas as I can see.

Re: Smarty Errors on install

Posted: Sun May 21, 2006 2:12 am
by Ted
Yeah, it seems a lot of people are having issues with the use_subdirs in smarty, both on unix and windows.  Even though it gives a slight performance increase, if it's going to cause so many issues, I'll probably just change it back in the next release.

To fix it, open up lib/content.functions.php.  Look for the line with:

Code: Select all

$this->use_sub_dirs = true;
Change it to:

Code: Select all

$this->use_sub_dirs = false;
That should solve the problem temporarily.

Re: Smarty Errors on install

Posted: Sun May 21, 2006 5:43 am
by Lector
Thanks a lot, it helped immediately  ;D

Re: Smarty Errors on install

Posted: Sun May 21, 2006 6:47 am
by Lector
Sorry, here I am again.

Just after breakfast I wanted to start creating the new homepage.

The first thing I did was looking at the existing menu. But when trying to open it the following error message appears:
SecureSSI: Das Script (/usr/export/www/vhosts/funnetwork/hosting/indisguise/cmsmadesimple/index.php) hat versucht ausserhalb von ihrem Userverzeichniss auf die Datei /usr/export/www/vhosts/funnetwork/hosting/indisguise/cmsmadesimple/fileloc.php zuzugreifen.
Dies ist nicht erlaubt!

Warning: main(): Sicherheitsverletzung: in /usr/export/www/vhosts/funnetwork/hosting/indisguise/cmsmadesimple/index.php on line 22

Warning: main(/usr/export/www/vhosts/funnetwork/hosting/indisguise/cmsmadesimple/fileloc.php): failed to open stream: Operation not permitted in /usr/export/www/vhosts/funnetwork/hosting/indisguise/cmsmadesimple/index.php on line 22

Fatal error: main(): Failed opening required '/usr/export/www/vhosts/funnetwork/hosting/indisguise/cmsmadesimple/fileloc.php' (include_path='.:') in /usr/export/www/vhosts/funnetwork/hosting/indisguise/cmsmadesimple/index.php on line 22
It seems there is another correction that should be made. Can you please help me again? Thanks in advance.

Re: Smarty Errors on install

Posted: Tue May 23, 2006 12:31 pm
by Lector
Either nobody looks in here, or this question is to simple (but I have no answer myself) or there is no solution (which I cannot believe).

So maybe someone please could answer here. This would really be very kind  :)

Re: Smarty Errors on install

Posted: Tue May 23, 2006 12:46 pm
by tsw
Have you checked that fileloc.php is there? if not upload it again.

which version are you using?

Re: Smarty Errors on install

Posted: Tue May 23, 2006 12:50 pm
by cyberman
Hi Lector,

we are not clairvoyants - perhaps you should read this to the first  ;D

http://forum.cmsmadesimple.org/index.ph ... 573.0.html

PS: If you have another problem please open a new topic so other users can search for your problem too  :).