Smarty Errors on install

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Ryno

Smarty Errors on install

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

Re: Smarty Errors on install

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

Re: Smarty Errors on install

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

Re: Smarty Errors on install

Post 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 ...
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

Re: Smarty Errors on install

Post by Ted »

I just commmitted the safe_mode check before it sets this to true.
cyberman

Re: Smarty Errors on install

Post by cyberman »

When we will see the next beta  :) ?
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

Re: Smarty Errors on install

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

Re: Smarty Errors on install

Post 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!
Lector
Forum Members
Forum Members
Posts: 65
Joined: Tue Aug 16, 2005 2:04 pm

Re: Smarty Errors on install

Post 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.
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

Re: Smarty Errors on install

Post 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.
Last edited by Ted on Sun May 21, 2006 2:14 am, edited 1 time in total.
Lector
Forum Members
Forum Members
Posts: 65
Joined: Tue Aug 16, 2005 2:04 pm

Re: Smarty Errors on install

Post by Lector »

Thanks a lot, it helped immediately  ;D
Lector
Forum Members
Forum Members
Posts: 65
Joined: Tue Aug 16, 2005 2:04 pm

Re: Smarty Errors on install

Post 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.
Lector
Forum Members
Forum Members
Posts: 65
Joined: Tue Aug 16, 2005 2:04 pm

Re: Smarty Errors on install

Post 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  :)
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm

Re: Smarty Errors on install

Post by tsw »

Have you checked that fileloc.php is there? if not upload it again.

which version are you using?
cyberman

Re: Smarty Errors on install

Post 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  :).
Locked

Return to “[locked] Installation, Setup and Upgrade”