Image Manager error

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
User avatar
klendino
Forum Members
Forum Members
Posts: 67
Joined: Wed Oct 19, 2005 8:22 pm

Image Manager error

Post 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
bLuE

Re: Image Manager error

Post 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
User avatar
klendino
Forum Members
Forum Members
Posts: 67
Joined: Wed Oct 19, 2005 8:22 pm

Re: Image Manager error

Post by klendino »

Hi bLeU

This indeed solved my problem.
Thanks for the tip!

Klendino
MaxPhantom

Re: Image Manager error

Post 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
MaxPhantom

Re: Image Manager error

Post 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
Post Reply

Return to “CMSMS Core”