rochester-rcl / irplus

Automatically exported from code.google.com/p/irplus
Apache License 2.0
8 stars 3 forks source link

Image upload error -- thumbnails aren't being generated #48

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Whenever we upload an image (JPEG or PNG, I haven't tried other file types) we 
get a Javascript error:

--------------------------------------------------------------------------
There was an error on this page.

Error description: TypeError: document.getElementById("file_added") is null

Click OK to continue.
--------------------------------------------------------------------------

The image file is uploaded and (after a refresh) will appear in the folder to 
which it was uploaded, but there's no thumbnail.  Our log shows an error 
(attached) that makes it look like IR+ is trying to do something with X11, 
which is bizarre!

Original issue reported on code.google.com by nkui...@nkuitse.com on 4 Feb 2011 at 2:56

Attachments:

GoogleCodeExporter commented 9 years ago
We haven't seen this issue on our UNIX environment - looking into the issue 
this may solve the problem.  

Try putting this in your ${CATALINA_HOME}/bin/catalina.sh script:
export JAVA_OPTS="${JAVA_OPTS} -Djava.awt.headless=true"

Original comment by nates...@gmail.com on 4 Feb 2011 at 4:21

GoogleCodeExporter commented 9 years ago
tomcat will need to be restarted after the changes are made

Original comment by nates...@gmail.com on 4 Feb 2011 at 4:22

GoogleCodeExporter commented 9 years ago
As a possible long term non tomcat configuation change - I have added code to 
initialize this property in the code as well.  Testing will need to be 
completed.  Will be added to the 2.x or 3.x release

Original comment by nates...@gmail.com on 4 Feb 2011 at 5:46