Smarty error

okwok

Joined: 2003-05-05
Posts: 1
Posted: Mon, 2003-05-05 15:57

Hi
these are my problems when I completed NetPBM setting.

Warning: Smarty error: problem creating directory "/%%-17/%%-1740578653" in /var/www/html/gallery2/lib/smarty/Smarty.class.php on line 1043

Warning: Smarty error: problem writing temporary file '/%%-17/%%-1740578653/3eb68987505ca' in /var/www/html/gallery2/lib/smarty/Smarty.class.php on line 1043

Warning: touch() [function.touch]: Unable to create file /%%-17/%%-1740578653/global.tpl.php because No such file or directory in /var/www/html/gallery2/lib/smarty/Smarty.class.php on line 1576

Warning: fetch(/%%-17/%%-1740578653/global.tpl.php) [function.fetch]: failed to create stream: No such file or directory in /var/www/html/gallery2/lib/smarty/Smarty.class.php on line 1165

Warning: fetch() [function.fetch]: Failed opening '/%%-17/%%-1740578653/global.tpl.php' for inclusion (include_path='.:/usr/lib/php/:/usr/share/pear/') in /var/www/html/gallery2/lib/smarty/Smarty.class.php on line 1165

i've changed the mode to 755 in the Netpbm directory.
What can i do?

please help :(

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Tue, 2003-05-06 04:29

That looks like your gallerydata/smarty/templates_c directory is no longer writeable by the webserver. What steps did you take (from installation) to get to this point? If you delete your gallerydata directory and start over again, can you reproduce this problem? If so, write down the steps you took in as much detail as possible. Thanks.

 
galez

Joined: 2003-05-11
Posts: 2
Posted: Sun, 2003-05-11 17:51

I have the same problem (gallery2-latest.tgz as of 05/11/03)

Steps:

1002 cd /var/www/galez.net/photos2/
1003 mkdir bin
1004 mkdir data
1005 cd bin/
1006 tar zxvf ~/gallery2-latest.tar.gz
1007 mv gallery2/* .
1008 rmdir gallery2/
1009 chmod 777 ../data/
1010 cp setup/config.php-dist config.php
1011 vim config.php
1013 mysqladmin drop gallery2 -u gallery2 -pgallery2
1014 mysqladmin create gallery2 -u gallery2 -pgallery2
1019 sudo chown apache. /var/www/galez.net/photos2/data/
1020 ls /var/www/galez.net/photos2/data

drwxrwxrwx 2 apache apache 4096 May 11 17:35 data

$diff config.php setup/config.php-dist
36c36
< $gallery->setConfig('setup.password', 'lePass');
---
> $gallery->setConfig('setup.password', '');
51c51
< $gallery->setConfig('data.gallery.base', '/var/www/galez.net/photos2/data/');
---
> $gallery->setConfig('data.gallery.base', '');
79,80c79,80
< $storeConfig['username'] = 'gallery2';
< $storeConfig['password'] = 'gallery2';
---
> $storeConfig['username'] = '';
> $storeConfig['password'] = '';

http://galez.net/photos2/bin/setup/test/index.php

Warning: mkdir() failed (No such file or directory) in /var/www/galez.net/photos2/bin/modules/core/classes/GalleryPlatform.class on line 368
Error (ERROR_COLLISION)

changed $gallery->setDebug(immediate); and now I get:

Warning: Smarty error: problem creating directory "/%%117/%%1172603085" in /var/www/galez.net/photos2/bin/lib/smarty/Smarty.class.php on line 1043

any ideas?

 
galez

Joined: 2003-05-11
Posts: 2
Posted: Sun, 2003-05-11 19:40

I got it ... I had to :

mkdir && chmod /var/www/galez.net/photos2/data/smarty/templates_c/

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Tue, 2003-05-13 03:53

Looks like you were missing a step. Before you go to http://galez.net/photos2/bin/setup/test/index.php you should go to http://galez.net/photos2/bin/setup/setup.php which will create all the directories for you.