Welcome Guest, Not a member yet? Register   Sign In
root dir does not exists! CIG 0.3
#1

[eluser]learning_php[/eluser]
Hi,

I am Having trouble getting the CBI gallery beta to work:

root dir does not exists!

Code:
$config['cig_gallery_title'] = 'Demo Gallery';
$config['cig_gallery_root'] = 'wedding-site/assests/albums';
$config['cig_gallery_url'] = 'http://localhost/imagegallery';
$config['cig_filter_folders'] = array('test', '..', 'cache');
$config['cig_valid_types'] = array('jpeg', 'gif', 'png');
$config['cig_album_function'] = 'album'; //name of function you use in your controller to show thumbs for selected album.
$config['cig_image_function'] = 'image'; //name of function you use in your controller to show full image view.

Code:
class imagegallery extends Controller {
    

function imagegallery()
{
parent::Controller();
$this->load->library('CIG');
$this->cig->cache_init();
}

function index()
{
$data['gallery'] = $this->cig->get_dir_list();
$this->load->view('test_view', $data);
}

function album()
{
$data['album'] = $this->cig->get_image_list();
$this->load->view('test_view', $data);
}

function image()
{
$data['image'] = $this->cig->get_image();
$this->load->view('test_view', $data);
}

}
#2

[eluser]pistolPete[/eluser]
[quote author="learning_php" date="1240579225"]I am Having trouble getting the CBI gallery beta to work[/quote]
What gallery do you mean? Please provide a link.

[quote author="learning_php" date="1240579225"]root dir does not exists![/quote]
Is that an error message you get?
#3

[eluser]learning_php[/eluser]
Hi,

CIG 0.3 beta

i either get that on this screen: root dir does not exists!

or the following error:

Code:
A PHP Error was encountered

Severity: Warning

Message: getimagesize(../wedding-site/assets/albums/./cache) [function.getimagesize]: failed to open stream: Permission denied

Filename: libraries/CIG.php

Line Number: 270
A PHP Error was encountered

Severity: Warning

Message: getimagesize(../wedding-site/assets/albums/./test) [function.getimagesize]: failed to open stream: Permission denied

Filename: libraries/CIG.php

Line Number: 270
A PHP Error was encountered

Severity: Warning

Message: getimagesize(../wedding-site/assets/albums/./cache) [function.getimagesize]: failed to open stream: Permission denied

Filename: libraries/CIG.php

Line Number: 270
A PHP Error was encountered

Severity: Warning

Message: getimagesize(../wedding-site/assets/albums/./test) [function.getimagesize]: failed to open stream: Permission denied

Filename: libraries/CIG.php

Line Number: 270
A PHP Error was encountered

Severity: Notice

Message: Undefined variable: fileList

Filename: libraries/CIG.php

Line Number: 360
A PHP Error was encountered

Severity: Notice

Message: Undefined variable: fileList

Filename: libraries/CIG.php

Line Number: 363

this is a test
#4

[eluser]Phil Sturgeon[/eluser]
Is that a valid path?

Quote:../wedding-site/assets/albums/./test
#5

[eluser]learning_php[/eluser]
No, but everything I try does not remove the ./
#6

[eluser]Phil Sturgeon[/eluser]
After a quick look over that gallery I'd advise against using it. There are several issues with it and it is only a simple script. The next/previous links do no work and it seems it only supports CI installations in web root.

Not a good solution for everyone as I recently found out when releasing PyroCMS. The only feedback I had was to get it working all sub-dir's >.<

If you are intent on using this script, chuck a realpath() around that path (if you can). realpath() will work out the ../ and ./ to make a full path.
#7

[eluser]learning_php[/eluser]
Hi,

Thanks for that i think i will give this one a miss as it seems more hassle than it worth!!
any suggestions on what to use?
Thanks




Theme © iAndrew 2016 - Forum software by © MyBB