Page 1 of 2

Problems with Image Manager

Posted: Mon May 29, 2006 11:02 am
by dcross
Upgraded to 0.13, PHP 4.3.4 and GD2, Win2k3.

First time I've really used Image Manager.  If I upload an image, the page complete and the image thumb appears.  So I go ahead an upload another, the page completes but the image doesn't appear.  I get a white space as though the browser hasn't completed the rendering of the page.  Now if this happens when working in a folder, the folder disappears as well.

Now looking at the server file themselves, the folder does exist, with the uploaded images present.  But only the thumb for the image that worked is present.

So how do I get CMSMS to read this folder and show it again?

Regards.

Re: Problems with Image Manager

Posted: Mon May 29, 2006 11:23 am
by dcross
It appears to be a size of image problem.  Is there a limit to the dimensions and\or filesizes here?

Re: Problems with Image Manager

Posted: Mon May 29, 2006 11:52 am
by tsw
check that your GD installation is working in php

and maybe this could help

http://wiki.cmsmadesimple.org/index.php ... ge_Manager

Re: Problems with Image Manager

Posted: Mon May 29, 2006 12:07 pm
by dcross
GD works.  If I upload a small, say less than 100K file it works fine.  Anything above that it just doesn't want to know.  The file is actually uploaded to the uploads/images folder but the thumbnail is simply not created.  All the while the image file exists - without the thumbnail, the folder will not appear in Image Manager.  I gave to manually delete the image file before Image Manager will show the folder.

GD works perfectly fine with Coppermine gallery which also runs on this server and it works with images up to 2mb in size.

The CMSMS help pages for Image Manager do not indicate anything about file sizes.

Re: Problems with Image Manager

Posted: Mon May 29, 2006 12:16 pm
by tsw
File size restrictions usually come from php configuration, but if your image is uploaded alright I cant see that being a problem.

But if GD is converting big image and its hitting php memory limit or execution time (Im not sure how ImageManager handles multiple images, if it tries to do all images at one run it might hit those restrictions)

Or this could be a strange bug.. I cant reproduce it though (just uploaded 1Mb file to my test site and everything worked fine)

create file info.php with this content



and look for
max_execution_time
memory_limit
and upload_max_filesize
apache has its own restrictions for $_POST size but as your image is uploaded I cant see that being in the way (and check that the uploaded image is fine after upload)

Re: Problems with Image Manager

Posted: Mon May 29, 2006 12:36 pm
by dcross
tsw wrote: max_execution_time
memory_limit
and upload_max_filesize
max-execution_time = 90
Can't find memory_limit but 'memory_limit = 16M' is listed in the php.ini file
upload_max_filesize = 2M

also max_input_time = 90

Also, when clicking the Bin icon in IM to delete the image - the file is not actually removed from the server like I expect.

Cheers.

Re: Problems with Image Manager

Posted: Mon May 29, 2006 12:46 pm
by dcross
In the config.php file, the line

$config['image_manipulation_prog'] = 'GD';

What does ist need to be to use ImageMagick?  Do I just replace GD is ImageMagick?

I know to set the library path.  Is this all I need to do in order to use ImageMagick?  Does PHP need configuration or anything?

Cheers.

Re: Problems with Image Manager

Posted: Mon May 29, 2006 8:19 pm
by Dr.CSS
can you FTP images to the uploads/images folder then see them in IM...
or what ever folder you have... is it in the uploads/images folder...


  mark

Re: Problems with Image Manager

Posted: Tue May 30, 2006 9:32 am
by dcross
mark wrote: can you FTP images to the uploads/images folder then see them in IM...
or what ever folder you have... is it in the uploads/images folder...
I can upload via FTP.  It is in uploads/images.  The image does not appear in IM if I FTP it.

I beginning to wonder if there a delay in the processing.  Some of the images that were not showing last night now are this morning??

Re: Problems with Image Manager

Posted: Tue May 30, 2006 9:51 am
by tsw
Does your apache/php process have write permissions to /uploads/ folder?

Re: Problems with Image Manager

Posted: Tue May 30, 2006 10:17 am
by dcross
tsw wrote: Does your apache/php process have write permissions to /uploads/ folder?
I guess so, surely if it didn't the upload wouldn't work.  I'm using Windows Srv 2003 - not Linux\Apache.  I don't think PHP runs as a different account.

Cheers.

Re: Problems with Image Manager

Posted: Tue May 30, 2006 10:51 am
by tsw
Hmm anything in the server logs? (I dont really know enough about windows servers)

Re: Problems with Image Manager

Posted: Tue May 30, 2006 11:03 am
by dcross
tsw wrote: Hmm anything in the server logs? (I dont really know enough about windows servers)
I'm affraid not, I've already looked.  Is there any way I can PHP, GD or even CMS to log what it's doing?

Re: Problems with Image Manager

Posted: Tue May 30, 2006 11:04 am
by tsw
change debug=true in config not sure how much debuggin imagemanager does...

Re: Problems with Image Manager

Posted: Tue May 30, 2006 3:07 pm
by Dr.CSS
if you have a folder inside uploads/images/yourfolder...
going to IM you will see images and at the top your folder is listed, it shows folders first then images...
clik the folder... yourfolder  you should be able to see your images...
i have 13 folders in mine and i can just clik one to see the images...

ok if you read the link in the post tsw yesterday all i've said is reduntant...