Newbie to cataloger (image viewing problem)
Posted: Mon Feb 12, 2007 12:04 pm
Hi All,
I've been through quite a few threads on cataloger and can't get the images to work.
What I have done
1/ I chnaged the /uploads/images directory to full access:
drwxrwxrwx 2 root root 16384 2007-02-12 21:36 catalog
drwxrwxrwx 2 root root 16384 2007-02-12 22:46 catalog_src
2/ I have tried to FTP the images into the /uploads/images/catalog directory and they all have 777 permission
3/ I made a change to GD.php file to set the permission when uploaded to 644
extract
function save($filename, $type = '', $quality = 85)
{
$type = $type==''? $this->type : $type;
$functionName = 'image' . $type;
if(function_exists($functionName))
{
fopen($filename,'w');
chmod($filename,"644");
$this->old_image = $this->imageHandle;
if($type=='jpeg')
$functionName($this->imageHandle, $filename, $quality);
else
$functionName($this->imageHandle, $filename);
$this->imageHandle = $this->old_image;
$this->resized = false;
}
} // End save
I have no other ideas of whats causing my issue
I have the latest version of cataloger and CMSMadeSimple
/M
I've been through quite a few threads on cataloger and can't get the images to work.
What I have done
1/ I chnaged the /uploads/images directory to full access:
drwxrwxrwx 2 root root 16384 2007-02-12 21:36 catalog
drwxrwxrwx 2 root root 16384 2007-02-12 22:46 catalog_src
2/ I have tried to FTP the images into the /uploads/images/catalog directory and they all have 777 permission
3/ I made a change to GD.php file to set the permission when uploaded to 644
extract
function save($filename, $type = '', $quality = 85)
{
$type = $type==''? $this->type : $type;
$functionName = 'image' . $type;
if(function_exists($functionName))
{
fopen($filename,'w');
chmod($filename,"644");
$this->old_image = $this->imageHandle;
if($type=='jpeg')
$functionName($this->imageHandle, $filename, $quality);
else
$functionName($this->imageHandle, $filename);
$this->imageHandle = $this->old_image;
$this->resized = false;
}
} // End save
I have no other ideas of whats causing my issue
I have the latest version of cataloger and CMSMadeSimple
/M