forum.coppermine-gallery.net
Support => cpg1.4 plugins => cpg1.4.x Support => Older/other versions => cpg1.4 JUpload by etienne_sf => Topic started by: Woshee on June 06, 2009, 11:22:05 am
-
Hi,
I've got a silly little problem there...
jupload refuses to transfer any image to coppermine (latest version).
With 3.5.1: freeze with a java error message : "No file uploaded ()"
With 3.5.2: freeze with a blank java error message
With 3.5.3: Don't freeze, with another java error message, and the debug output which is attached (it was too long to be paste into the post).
jupload used to work, 2 months ago. I don't use it every day, so I don't know why it doesn't work anymore.
I tried to clean up coppermine and jupload, by reinstalls, but no change.
Any idea?
Thanks for your amazing job.
Woshee
-
Hi,
Thanks for trying the three version.
The error in the log file is the same: ERROR: no file uploaded ()
The problem seems to be link to the server. I'll have to restore my VMWare, to test with my linux box.
Etienne
-
I wish you'll manage to find a workaround, it's the only way I have to do massive uploads.
-
hi,
Here is my answer in the 'other' freeze thread:
Ok,
I think the applet freezes, because of an OutOfMemoryError, that can occurs. Actually, this occurs for me, when uploading several files (>50), with limiter memory.
I added calls to free memory. For me, it works.
Can you try the attached jupload version ?
Etienne
Can you try the jupload version attached to this thread ?
Here is the URL:
http://forum.coppermine-gallery.net/index.php?action=dlattach;topic=59311.0;attach=21735 (http://forum.coppermine-gallery.net/index.php?action=dlattach;topic=59311.0;attach=21735)
Etienne
-
I didn't see any change.
I attached the debug output.
-
Hum, hum,
First, I confirm you tested the last version. That's a point, thanks for it.
Now: in your case, it's not a memory problem, as your freeMemory is: 155 608 296 bytes. Your maxMemory is even bigger.
So next steps, some questions:
1) In your case: can you upload some pictures, or no picture at all
- If some: what make the applet freeze: one or several pictures, the Nth for the upload (for instance the second)
- If none (which is my understanding), can you give me some info about your system. Could you post me your phpinfo ? (by PM, for security reasons)
2) Do you use ImageImack? there was a thread, saying that it does not work well. This point is on my todo list. But I didn't check it.
Etienne
Etienne
-
1) No pictures. It's exactly the same error if I only select one image.
I send you the phpinfo link via PM.
2) ImageImack? or ImageMagick? Coppermine is configured with GD 2.x
-
1) No pictures. It's exactly the same error if I only select one image.
I send you the phpinfo link via PM.
Ok
2) ImageImack? or ImageMagick? Coppermine is configured with GD 2.x
Yes, I wanted to write ImageMagick. With GD, you stop this possibility.
I read the php info for now.
Thanks
Etienne
-
A second answer to your mail: about phpinfo.
You have PHP 4.4.9. I have 5.2.6.
Problem: I can't find a way to download it. I'l go on searching. Perhaps you have a linux rpm for it, or the possibility (without insurance) of upgrading to php 5?
Etienne
-
The site is webhosted, I don't have any direct acces to it, but I managed to change to php5.
If you come again to the phpversion link, it'll be updated.
I attached the new debug output if it has changed with php5.
Thanks for your tries.
-
The problem changed between your first debug output, and the second one. I missed that: you had an error 'no file uploaded'. Now, the applet actually freeze.
Can you try the jupload patch available in the 'JUpload freezes up' thread:
http://forum.coppermine-gallery.net/index.php?action=dlattach;topic=59311.0;attach=21799 (http://forum.coppermine-gallery.net/index.php?action=dlattach;topic=59311.0;attach=21799)
I'm sorry to ask to test that, but I can't really reproduce what happens on your system. So I can not be sure, if I correct or not the issue you encounter.
Now, the bad news is that my laptop is to be formatted. I guess it will take one day or more to have it work again....
Etienne
-
With this version, there are no more error message, with the debug output being copied in the clipboard. It just freezes.
-
Ok,
I think I'm ok with this one. A hard one, I have to say. :-\
Can you check the release available in the other freeze thread:
JUpload package:
http://forum.coppermine-gallery.net/index.php?action=dlattach;topic=59311.0;attach=21874 (http://forum.coppermine-gallery.net/index.php?action=dlattach;topic=59311.0;attach=21874)
Message:
http://forum.coppermine-gallery.net/index.php/topic,59311.msg297126.html#msg297126 (http://forum.coppermine-gallery.net/index.php/topic,59311.msg297126.html#msg297126)
Etienne
-
Hi,
i have the same problem tryed 3.4.0 same problem. Then i learned that only pictures with a size bigger than 4MB would cause the problem, i could upload pictures with 3.8 or 3.9 MB even with 3.5.1. But if the picture size is greater than 4MB something causes the Warning (without content) message box to appear.
But to give any further help i could not find the logs. Do i have to switch them on somehow? where can i find them?
Sincerely sk8connection
-
Thanks etiene, but the same error again.
I attached the new debug output.
Do you want admin/ftp rights?
-
Hi,
i have the same problem tryed 3.4.0 same problem. Then i learned that only pictures with a size bigger than 4MB would cause the problem, i could upload pictures with 3.8 or 3.9 MB even with 3.5.1. But if the picture size is greater than 4MB something causes the Warning (without content) message box to appear.
But to give any further help i could not find the logs. Do i have to switch them on somehow? where can i find them?
Sincerely sk8connection
Hi,
There are actually two problems:
1) The size of picture, that may generate an OutOfMemoryError
2) The reaction of the applet, when such an error occurs.
This thread is about the second point: the previous applet version would freeze, when displaying an error message to the user, while uploading. This error should be solved with the 3.5.3rc5 version.
Please confirm it: I need feedback on this one. It's a really tricky problem, with deadlock in Java internal threads. According to me it's corrected.
Which mean: back to Point 1) again : OutOfMemoryError with big pictures. This again is a complex problem. To manage pictures, the code need to create a big memory area, to work on the picture, and down-scale it to the target size.
The problem is the same on client side (in the applet) or on server side (with GD or ImageMagick). With big pictures, I had to allow bigger size for server scripts, otherwise, I had memory errors.
I'm looking to find a solution there. But, as I can't control the memory used the applet, I guess there are no real solution.
So again:
a) This thread is about 'applet freezing'. Please give me feedback about that. The question: do still the applet freeze, or is the error message properly displayed ?
b) About memory problems: I created another thread. Please use it for this kind of discussion.
Link to this URL: http://forum.coppermine-gallery.net/index.php/topic,60114.new.html#new (http://forum.coppermine-gallery.net/index.php/topic,60114.new.html#new)
-
There is no more freezing since some version now.
But I don't upload big pictures. Their size are 200ko each maximum.
-
Great !
So, if I understand correctly, your issue is solved: Jupload is working (again) correctly for you. Correct ?
Etienne
-
Not at all!
All debug outputs I sent you from the beginning were obtained with small pictures.
Sorry for the misunderstanding.
-
Not at all!
All debug outputs I sent you from the beginning were obtained with small pictures.
Sorry for the misunderstanding.
Right, sorry. The misunderstanding is mine.
We're now back to the original problem. The error is 'No file uploaded'. This problem occurs on server side.
But, still: the applet now should no longer freeze. Correct ?
Do you want admin/ftp rights?
Hum, hum, yes, I would need that. And a set of pictures that don't work, if possible ... ?
Etienne
-
The applet is not freezing right.
Is end you all codes by PM.
-
Hi,
Thanks to your PM, I went there today. I come accross a new very very strange problem: your web server returns the response compressed in gzip, when the applet send the header to refuse any encoding ! I'm sure it's the first time it occurs, accrss all
The applet can't understand the server response.
I recommand switching back to the 3.4.0 release (see the forum, I attached this version to the first thread). You can install the 3.4.0 over your current installation, without any problem.
I'll ask you to test on your system the next release, when I'll be done with this one. Ok for you ?
Etienne
-
It doesn't work either with 3.4.0...
It used to work, with an older verison of coppermine, but I can't downgrade for security reasons...
3.4.0 debug output attached.
-
Ok,
I'll correct that ...
I'll try to repeat, then correct the problem on my Linux box. Then, I would need to confirm on your computer. Would it be possible ?
Etienne
-
yep, no problem, I'll try to help you as much as I can.
-
Hum, hum,
Standard upload doesn't work better.
Jupload works with a very small file (2k).
I guess you have a server problem. Disk full ? Some kind of quota ?
Etienne
-
I don't understand... 88% of the storage is free.
I used to transfer hundreds of images with jupload...
I tried a vanilla 1.4.24 coppermine with jupload 1.4.0, i couldn't upload images...
I didn't realize I can't upload any photo, even with the normal upload... its just confusing.
-
Ok, since it seems not to be related to jupload, I started a new topic:
http://forum.coppermine-gallery.net/index.php/topic,60157.0.html
Sorry, I think I wasted your time...
-
Solved!
It was a coppermine known bug. A little file to edit and it works well with the 3.5.3 cr6 which was installed.
-
Ok !
:P
So ... can you mark this thread as solved ?
Etienne
-
Hi,
i have the same problem tryed 3.4.0 same problem. Then i learned that only pictures with a size bigger than 4MB would cause the problem, i could upload pictures with 3.8 or 3.9 MB even with 3.5.1. But if the picture size is greater than 4MB something causes the Warning (without content) message box to appear.
But to give any further help i could not find the logs. Do i have to switch them on somehow? where can i find them?
Sincerely sk8connection
Hi all,
i found the solution: upgraded Jupload to the 3.6.0, and i had to change some PHP settings on the providers control center. I had to switch ON macgic_quote_gpc, and i had to switch OFF output_buffering in the PHP setting. Hope this can help, because since i changed this, Jupload works just fine.
Sincerely sk8connection
-
i found the solution: upgraded Jupload to the 3.6.0, and i had to change some PHP settings on the providers control center. I had to switch ON macgic_quote_gpc, and i had to switch OFF output_buffering in the PHP setting. Hope this can help, because since i changed this, Jupload works just fine.
Noted: I'll try that !
-
Hi,
I tested various values for magic_quote_gpc, and output_buffering.
I did not repeat any problem, on:
- Linux (fedora, recent one)
- Apache 2.2.11
- PHP 5.2.9
Can you give me more info ? (phpinfo by PM would be nice)
Etienne
-
Hum,
I can't find any problem on my Linux, after playing around a lot of parameters.
I give up, until someone can give me a precise description, so that I can repeat the problem.
Regards
Etienne