Page 1 of 1

Image Manager error

Posted: Tue Nov 01, 2005 3:51 am
by klendino
Hi

I just installed CMSMS and it looks fine untill now.
Emcountered following problem with Image Manager

I upload the images through ftp, then when accessing the Image Manager, this one is supposed to create the thumbnail files.

There is where I get the error : Fatal error: Call to a member function read() on a non-object in F:\WWW\Hoegaarden\lib\filemanager\ImageManager\Classes\ImageManager.php on line 217

I'm running on a W2k server with IIS5, php 5.05 and MySQL 4.1
CMS version is 0.10.3

I have a feeling this might have to do with the installation op PHP but not quiet sure about this

Anyone has a clue on how to solve this.

Tkx

Re: Image Manager error

Posted: Wed Nov 02, 2005 3:07 pm
by bLuE
Hi,

I got the same problem when trying to access to folders in my "uploads/images' directory.

After investigate, i found a way to solve this problem.
The code of the '/lib/filemanager/ImageManager/Classes/ImageManager.php' page must be corrected.
Go to line 214 to find this code : '      if(is_dir($path))'
Replace by this one : '        if(($path != "/") && (is_dir($path)))'
It just add a test too check the path name of the directory and avoid it if equal to '/'.

It's work for me, hope it will work for you.

bLuE

Re: Image Manager error

Posted: Thu Nov 03, 2005 2:17 am
by klendino
Hi bLeU

This indeed solved my problem.
Thanks for the tip!

Klendino

Re: Image Manager error

Posted: Tue Dec 06, 2005 11:20 am
by MaxPhantom
Hi,
I got the same problem:
Fatal error: Call to a member function on a non-object in /lib/filemanager/ImageManager/Classes/ImageManager.php on line 106

I am using the latest verion (11), and the named solution is corrected in the ImageManager.php.
The problem occured after creating a subdir.

Can anybody help me with this.

Max

Re: Image Manager error

Posted: Fri Dec 09, 2005 8:04 am
by MaxPhantom
The problem is solved. Thank you Melix.
Because my server is running in save mode, there is an owner conflict.
After changing the owner, with chown -R everything works fine.

Max