Loading...
 
Skip to main content

Architecture / Installation


You are viewing a reply to Re: image gallery - no thubernails

Re: Re: image gallery - no thubernails

I think i've found at least a "hack" for this problem.
Open the file lib/imagegals/imagegallib.php and find this lines:

function get_image($id, $itype = 'o', $xsize = 0, $ysize = 0) {
global $gal_use_db;

global $gal_use_dir;
$mid = "";

if ($itype == 't') {
$galid = $this->get_gallery_from_image($id);

$galinfo = $this->get_gallery_info($galid);
$xsize = $galinfo%22thumbSizeX%22;
$ysize = $galinfo%22thumbSizeY%22;
}

Now, comment out (adding "//" in front) the $xsize and $ysize lines, like this:

function get_image($id, $itype = 'o', $xsize = 0, $ysize = 0) {
global $gal_use_db;

global $gal_use_dir;
$mid = "";

if ($itype == 't') {
$galid = $this->get_gallery_from_image($id);

$galinfo = $this->get_gallery_info($galid);
//$xsize = $galinfo%22thumbSizeX%22;
//$ysize = $galinfo%22thumbSizeY%22;
}

This will prevent the following "if" statements, apparently causing the error. Everything works fine for me now, I hope this will solve the problem in your case as well 😉