I'm installing a test site at http://rogier.servebeer.com/drupal-4.6.0/ , but have problems getting the image module to work. I try to upload an image through content -> create content -> image. When I fill out the form there and hit submit, I always get an 404, and the browser is quickly redirected to the form. In firefox it seems as if nothing happens, but in IE the 404 is obvious. It's not clear what the url is that it is attemtempting to retrieve. When I look in the drupal installation file system, I see that it is adding the uploading the pictures to the files/images/temp folder. But nothing appears in the images folder itself. So obviously the process is getting stuck somewhere halfway.
I'm not sure if this is a bug or support request. I've had some issues loading the database scheme into postgresql, but everything else seems to be working ok now. Could this be a database issue? How can I find out what is wrong?
I have drupal 4.6.0 installad on Gentoo Linux with:
-mod_php-4.3.11
-apache-2.0.54
-postgresql-8.0.1
Other modules that I have installed (all working ok ecept for img_assist ofcourse):
-Img_assist
-Poormanscron
-TinyMCE
-Feedback
Thanks very much for any help !! I am not very famliar with drupal yet.
Comments
Comment #1
azote commentedsame problem here this is what the log shows when it happends:
PHP Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 8188 bytes) in /data/drupal/includes/image.inc on line 284, referer: http://carlosrivero.com/node/add/image
this happends if I upload a image with big dimensions .. It has work greaat for me for images around 1024x720 but when I try to upload a 2048x1536 dies!
looks like the resize function cant handle it well...
Comment #2
azote commentedupdated to bug.
Comment #3
walkah commentedit does sound like the two issues could well be the same... i.e. the upload is completing , but PHP is running out of memory during the resizing / scaling.
however, i have no problem repeatedly uploading and resizing 5 derivatives on an 2048x1536 image ... with PHP configured to only use 8mb ram... :/
However, if you're hitting ram issues - try disabling some of the other contrib modules... if that works, then you may need to increase your memory_limit in php.ini
Comment #4
rogier commentedAha. Yes, it's same behaviour at my place. Small succeed without problem, larger ones fail. While testing, I have this site at a very low-spec system. So I took a look at my processes, and it might well be that php was running out of swap! So actually this seems to be not an error of drupal, but my system configuration. I'm going to try this at a different host or shut down some other processes to free memory and see what happens.
Comment #5
azote commentedhey rogier did it happend on your other host too ?
Comment #6
EvilJohn commentedI figured this out. I was having the same problem for any image that was bigger than about 70k. I edited the memory_limit=8M setting in /etc/php.ini . This allowed me to upload large images. I set it for 32M which seems to let me do all but the largest images.
I'm running on a linux Fedora Core 1 server. If there's anymore info I can provide, feel free to contact me.
Comment #7
azote commentedis setting memory_limit=32M bad???
can it kill the server later on?
this a bug then? some kind of memory leak on the resize image function?
Comment #8
RobRoy commentedYeah, that's definitely the problem. You can add one of these in your .htaccess file to do the trick. This only sets the mem limit for this site.
php_value memory_limit 32M
But there should be some sort of error generated.
Comment #9
drewish commentedThis version is no longer supported. If this issue is occurring with a more recent version please open a new issue.
Comment #10
kahara commentedissue is occurring again. I haven't tried any of the above yet.
Drupal 5.5
PHP 5.0.4
Comment #11
kahara commentedmemory limit was set by host. Solved.