I don't mean to sound ingorant, but I'm having troubles configuring g2.
I don't quite understand the part where I have to create a directory.
$gallery->setconfig('data.gallery.base', '')
I have tried several different things, but still nothing. :roll:
Any info would be appreciated!
And no, I'm not a moron :eek:
Just new to PHP!
Posts: 8194
Just put a directory in there where Gallery can store its data. You will need to create it and chmod it 0777...
Posts: 5
I got that part.
My question is, where do I actually create the directory?
I guess in the same dir and the Main.php?
Do I need the full path when putting the directory into the config file?
Or just the dir name?
HEre is the the error I keep getting :
Warning: Smarty error: problem creating directory "/%%-17/%%-1740578653" in /home/willreyn/public_html/gallery/lib/smarty/Smarty.class.php on line 1043
Warning: Smarty error: problem writing temporary file '/%%-17/%%-1740578653/3e7d046bb23a6' in /home/willreyn/public_html/gallery/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 /home/willreyn/public_html/gallery/lib/smarty/Smarty.class.php on line 1580
Warning: fetch(/%%-17/%%-1740578653/global.tpl.php) [function.fetch]: failed to create stream: No such file or directory in /home/willreyn/public_html/gallery/lib/smarty/Smarty.class.php on line 1165
Warning: fetch() [function.fetch]: Failed opening '/%%-17/%%-1740578653/global.tpl.php' for inclusion (include_path='') in /home/willreyn/public_html/gallery/lib/smarty/Smarty.class.php on line 1165
I'm guessing that this caused because it can't find the dir.
Posts: 7994
Create the directory anywhere that you have write access. Put the entire path to the directory into your config file. It'll look like this:
$gallery->setconfig('data.gallery.base', '/path/to/your/directory');
Then open gallery/setup/setup.php in your web browser and it'll tell you if you did it properly.