Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
far41  
#1 Posted : Thursday, December 6, 2007 1:12:13 AM(UTC)
far41

Rank: Advanced Member

Groups: Member
Joined: 10/26/2006(UTC)
Posts: 30

Hello,

I have a major problem since many users can't upload anything anymore.

Configuration is with firefox 2.0.0.11, and latest aurigma 2.5.70.0 release.

It works fine, apparently, with a 1.6.0 java platform but the problem is with older versions (1.4, 1.5...) :

- image uploader installs correctly, but when you select a photo to Add it, then message at the bottom says to wait to display it, but nothing happens and it becomes totally frozen.

It even look like the internet connection stops.

No way to copy the console : it becomes all blank.

For sure everything has been fine till I install the latest release, without any other change in the configuration.

What can we do ?

Thanks

Alex Makhov  
#2 Posted : Thursday, December 6, 2007 12:47:10 PM(UTC)
Alex Makhov

Rank: Advanced Member

Groups: Member
Joined: 8/3/2003(UTC)
Posts: 998

Hello,

There are two ways to make a Java console dump. The standard way is to copy it's text. The other way is to make a screenshot. You should make Java console visible in one time with the browser. Thus the last content of Java console will be visible after problem occurs. I hope there is something in this screenshot because in other way we will have to work with the client by sending him a lot of questions and special log versions of Image Uploader. So please ask your problem clients to make a screenshot.

Sincerely yours,

Alex Makhov

UserPostedImage Follow Aurigma on Twitter!

far41  
#3 Posted : Thursday, December 6, 2007 6:28:57 PM(UTC)
far41

Rank: Advanced Member

Groups: Member
Joined: 10/26/2006(UTC)
Posts: 30

Thanks Alex for your reply.

I confirm you that a java update on a member computer did solve the problem. The version was java 1.3.1_03 .

The good point is that I do have one computer here with this problem.

Configuration : XP Pro - FF2.0.0.11 - Aurigma 2.5.70.0 and JAVA Version 1.5.0 (build 1.5.0_09-b03)

Here is was I get on the console before clicking on the ADD button :

Java Plug-in 1.5.0_09

Utilisation de la version JRE 1.5.0_09 Java HotSpot(TM) Client VM Répertoire d'accueil de l'utilisateur = D:\Documents and Settings\xxx


TEXT...


Code:

Aurigma ImageUploader version: 2.5.70.0
Current document URL: http://www.xxx.aspx
Reading cookies
Cookies: 
__utmz=119350683.1195041631.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none); 
__utma=119350683.2124966633.1195041631.1196959774.1197021888.22; 
ASP.NET_SessionId=wi5r4b55reggoznaeiz4ik45; __utmb=119350683; 
__utmc=119350683
Reading referer
Referer: http://www.xxx.aspx

It looks like it installs correctly, but once you cliks on the ADD button it displays the message at the bottom to wait till it displays the thumbnails, and it slows down.

The java console gets all empty (don't even see the white background behind the text but just the brown window background).

The only solution is to stop everything, since nothing happens even after a very long wait.

Here is my configuration:

Code:
	//Create JavaScript object that will embed Image Uploader to the page.
    var iu = new ImageUploaderWriter("ImageUploader1", 900, 500);

    //For ActiveX control full path to CAB file (including file name) should be specified.
    iu.activeXControlCodeBase = "../Drivers/ImageUploader4.cab";
    iu.activeXControlVersion = "4,5,70,0";
    
    //Unlock
    iu.addParam("LicenseKey", "zzzz");

    //For Java applet only path to directory with JAR files should be specified (without file name).
    iu.javaAppletCodeBase = "../Drivers/";
    iu.javaAppletCached = true;
    iu.javaAppletVersion = "2.5.70.0";

    iu.showNonemptyResponse = "off";

    //Configure appearance and behaviour.
    iu.addParam("PaneLayout", "ThreePanes");
    iu.addParam("FolderPaneHeight", "250");
    iu.addParam("ShowDebugWindow", "true");
    iu.addParam("ShowDescriptions", "false");
    iu.addParam("BackgroundColor", "#ffffff");
    iu.addParam("AllowMultipleRotate", "true");
    iu.addParam("AllowMultipleRemove", "true");
    iu.addParam("ButtonDeleteFilesText", "");
    iu.addParam("ButtonStopText", "");

    //Configure Image Uploader to rotate photos automatically 
    //according to the orientation stored in EXIF metadata.
    iu.addParam("EnableAutoRotate", "true");
    
    //Customize send button
    iu.addParam("ButtonSendImageFormat", "Width=140;Height=45;");

    //Append the form with total file size to the upload.  
    //iu.addParam("AdditionalFormName", "Form1");

    //Configure file mask to upload JPEG images only.
    iu.addParam("FileMask", "*.jpeg;*.jpg;*.jpe;*.gif;*.bmp;");

    //Set image size restrictions.
    iu.addParam("MinImageWidth", "120");
    iu.addParam("MinImageHeight", "120");

    //Exclude the source file from upload because only 
    //resized versions of the photo will be sent.
    iu.addParam("UploadSourceFile", "false");
    
    //Configure upload settings.
    iu.addParam("Action", "../zzz.aspx");
    iu.addParam("FilesPerOnePackageCount", "1");
    iu.addParam("AutoRecoverMaxTriesCount", "10");
    iu.addParam("AutoRecoverTimeOut", "10000");

    //Allow upload not only files, but also entire folders.
    //iu.addParam("AllowFolderUpload", "true");

    //Configure settings of the optimized image. Optimized image
    //is resized to 1200x960 with JPEG quality = 60 and EXIF 
    //metadata is preserved.
    iu.addParam("UploadThumbnail1FitMode", "Fit");
    iu.addParam("UploadThumbnail1Width", "1280");
    iu.addParam("UploadThumbnail1Height", "960");
    iu.addParam("UploadThumbnail1JpegQuality", "60");
    iu.addParam("UploadThumbnail1CopyExif", "true");
    //iu.addParam("UploadThumbnail1CompressOversizedOnly", "true");
    
    //Configure user quota restriction. In real-life application these values should be 
    //loaded from server.
    //iu.addParam("MaxFileCount", "10");
    //iu.addParam("MaxTotalFileSize", "5242880");
    var maxNb = document.getElementById("<%=maxNbH.ClientID %>");
    var maxMb = document.getElementById("<%=maxMbH.ClientID %>");
    iu.addParam("MaxFileCount", maxNb.value);
    iu.addParam("MaxTotalFileSize", maxMb.value);

    //Configure URL files are uploaded to.
    //iu.addParam("Action", "ee.aspx?");
    iu.addParam("Action", "../ss.aspx");
    
    //Add form field so that next page sees what album is entered, if any. See js function on top
    iu.addEventListener("BeforeUpload", "beforeUploadHandler");
   

    //Add event handlers.
    iu.addEventListener("UploadFileCountChange", "ImageUploader_UploadFileCountChange");
    iu.addEventListener("Progress", "ImageUploader_Progress");
    iu.addEventListener("ViewChange", "ImageUploader_ViewChange");

    iu.fullPageLoadListenerName = "fullPageLoad";

Edited by user Monday, February 25, 2008 3:21:30 PM(UTC)  | Reason: Not specified

Alex Makhov  
#4 Posted : Sunday, December 9, 2007 12:00:56 PM(UTC)
Alex Makhov

Rank: Advanced Member

Groups: Member
Joined: 8/3/2003(UTC)
Posts: 998

Hello,

Please, try to do the following things with your page:

1. Comment event handlers one by one

2. Comment blocks of property sets

And check after each of these actions if the problem is still there. This is a common way of looking for the problem resolution. Then please write us about the results and we will try to find the reason of the problem.

Sincerely yours,

Alex Makhov

UserPostedImage Follow Aurigma on Twitter!

far41  
#5 Posted : Monday, December 10, 2007 6:22:42 PM(UTC)
far41

Rank: Advanced Member

Groups: Member
Joined: 10/26/2006(UTC)
Posts: 30

Hello Alex,

Thanks for your reply in the forum.

I answer through email because of a screen copy.

I am really sorry but I don't understand what you mean with these "comments" :

1. Comment event handlers one by one

2. Comment blocks of property sets

Are you talking about using a step by step debug mode ? But the only way to see the bug for me now is online, not on a development computer.

The good point is that I have found something that will interest you.

I was so much thinking of a java issue that I forgot to look at the javascript console, and it's interesting.

After loading this uploader here is the kind of message I get:

"Exception: Access denied to the property XULElement.disabled" when calling nsIDOMXULControlElement:disabled...

etc...location JSFRAME : http:www.xxx.aspx" : fullPageLoad : line 136 data:no"

And line 136 is :

Code:

function fullPageLoad(){ 
    imageUploader1=getImageUploader("ImageUploader1");
      LINE 136 : document.getElementById("spanMaxFileCount").innerHTML = imageUploader1.getMaxFileCount();
    document.getElementById("spanMaxTotalFileSize").innerHTML = formatFileSize(parseInt(imageUploader1.getMaxTotalFileSize()));
    } 

So the issue seems to come from this imageUploader1.getMaxFileCount(); ?

I am sure it will be really helpful for you !

Thanks

Edited by user Monday, February 25, 2008 3:21:55 PM(UTC)  | Reason: Not specified

Alex Makhov  
#6 Posted : Monday, December 10, 2007 8:09:42 PM(UTC)
Alex Makhov

Rank: Advanced Member

Groups: Member
Joined: 8/3/2003(UTC)
Posts: 998

Hello Jean-Charles,

I have several ideas about the reason of the problem by now:

1) imageUploader1 is a reference to the object and it should be defined with «var» like here:

var imageUploader1=getImageUploader("ImageUploader1");

2) There are two dots in your code. Is it a bug of cupy-paste:

document.getElementById("spanMaxFileCount")..innerHTML = imageUploader1.getMaxFileCount();

3) MaxFileCount property value is usually statis and you usually know it's value when you create your html-page so may be it would be better to change the code to use MaxFileCount not through getMaxFileCount but like here (ASP.NET variant)

document.getElementById("spanMaxFileCount")..innerHTML =

4) As about commenting the code, I mean trying to disable iu.addEventListener code lines one by one:

//iu.addEventListener…

to see what event handler makes image uploader freeze.

Hope my ideas will help you.

Sincerely yours,

Alex Makhov

UserPostedImage Follow Aurigma on Twitter!

far41  
#7 Posted : Monday, December 10, 2007 10:23:47 PM(UTC)
far41

Rank: Advanced Member

Groups: Member
Joined: 10/26/2006(UTC)
Posts: 30

Hi Alex,

I just want to confirm you that it now works.

The double dots issue is just due to modifications made by your/my email, because I just have one dot on my code and email.

I have discovered that imageUploader1.getMaxFileCount();

and imageUploader1.getMaxTotalFileSize()

have no data, which creates the problem.

So rather than reading these values I now read the same ones on my page:

var maxNbPhotos = document.getElementById("");

//document.getElementById("spanMaxFileCount").innerHTML = imageUploader1.getMaxFileCount();

document.getElementById("spanMaxFileCount").innerHTML = maxNbPhotos.value;

var maxMbPhotos = document.getElementById("");

//document.getElementById("spanMaxTotalFileSize").innerHTML = formatFileSize(parseInt(imageUploader1.getMaxTotalFileSize()));

document.getElementById("spanMaxTotalFileSize").innerHTML = formatFileSize(parseInt(maxMbPhotos.value));

I did the same on function ImageUploader_UploadFileCountChange(){

where I read the same values.

So it looks like these steps don't do the job here:

var maxNb = document.getElementById("");

var maxMb = document.getElementById("");

iu.addParam("MaxFileCount", maxNb.value);

iu.addParam("MaxTotalFileSize", maxMb.value);

So far so good.

But I do have another interesting thing to notice : I gave you the error message on my previous message, but I realized that I also have a MESSAGE on the javascript console, which still exists now : OVERFLOWING !

So I think my workaround happens to work, but there is still something to investigate...

Please keep in mind that the issue happened only after the 2.5.70.0 update. Everything was fine before, and I had not changed anything on that page for months.

So it was good even with some old 1.4 versions. It is just after the latest IU version that these installation problems happened.

Thanks

Alex Makhov  
#8 Posted : Wednesday, December 12, 2007 6:13:08 PM(UTC)
Alex Makhov

Rank: Advanced Member

Groups: Member
Joined: 8/3/2003(UTC)
Posts: 998

Hello,

I have answered you in a PM.

Sincerely yours,

Alex Makhov

UserPostedImage Follow Aurigma on Twitter!

Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.