1) click on the firebug button at the bottom right corner of the FireFox window 2) a window should pop up in the lower part of the screen 3) if not selected, click on the Console tab 4) click on the arrow next to 'Console' and select Show XMLHttpRequests if not selected already 5) refresh the page of the forum with the upload dialog (ctrl + f5) 6) try to upload a file - at least one line looking like: GET http://localhost/v/index.php?p=/post/checkupload/1285952177212_UploadAttachment_1/0&randval=0.14999688610715622
should appear in the lower part of the screen.
Click on the + button at the left of this line, that should expand the XMLHttpRequest to the server, navigate to the Response tab in the newly expanded panel, select the response and post it here. Should look something like this: {"Progress":{"key":"1285952177212_UploadAttachment_1","uploader":"UploadAttachment_1","apc":"yes","progress":0,"total":-1,"format_total":"0B","cache":{"current":0,"total":-1}},"FormSaved":true,"DeliveryType":"VIEW","Data":"","StatusMessage":"","RedirectUrl":""}
Please let us know what you find or if something fails along the way.
I'm running Vanilla Version 2.0.11 and FileUpload Version 1.2.1. I didn't see any XMLHttpRequests requests being sent when I selected my file for upload (tho I do see Vanilla's auto save XMLHttpRequests requests).
I think I found where it's messing up at, but I'm not sure starts at line 342 in the fileupload.js file. I base this upon using the breakpoints in firebug to see when i got the error.
if (ExecuteApcLookup) { var Action = ['post','checkupload',ApcKey,this.ProgressBars[UploaderID].Progress];
var FinalURL = gdn.url(Action.join('/')+'?randval='+Math.random());
I am also experiencing the same thing as @BradA1878 and @CrazyCarlx2. I have also tried changing permissions as well with no luck. Would certainly be interested in helping find a solution!
Also having this very same issue with latest Vanilla / Fileupload addon ... Always shows uploading and never actually uploads anything! Folder/File permissions - checked. Tested in Firefox only at this point.
Dunno if this might trigger some thought processing.. but whenever I hover over the 's.url' part of the code in firebug, the value is set to nothing. it just shows two double quotes. So basically the open() function is sending a url value of nothing.
Found out that it is caused by the browser returning "<pre>{JSON response}</pre>" instead of "{JSON response}" as the iframe document body's innerHTML which is then deemed "Invalid JSON" by the JQuery JSON parser - and so even the initial checkupload test doesn't work. Solution was as simple as
in the FileUpload javascript file in the UploadComplete function body just before it gets parsed by JQuery. That works at least in Firefox. In Opera it only got me one step further, where the upload itself should be finished - Opera error console says something like "Error: inline script compilation" and it appears that it cannot cope with the JSON data sent back from the server. This one will be harder to track because it does not show any trace.
Vanilla rocks! Peace to you all and thanks for this plug, Tim!
Comments
i have the same probleme
anyone want help us?
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •and the fileupload also is leate, 1.2.1
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Vanilla Forums Senior Developer [GitHub, Twitter, About.me]
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •I find this problem will happen in the chrome, IE9, if i use firefox, it won't happen.
more IE version and browser need test.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •1) click on the firebug button at the bottom right corner of the FireFox window
2) a window should pop up in the lower part of the screen
3) if not selected, click on the Console tab
4) click on the arrow next to 'Console' and select Show XMLHttpRequests if not selected already
5) refresh the page of the forum with the upload dialog (ctrl + f5)
6) try to upload a file - at least one line looking like:
GET http://localhost/v/index.php?p=/post/checkupload/1285952177212_UploadAttachment_1/0&randval=0.14999688610715622
should appear in the lower part of the screen.
Click on the + button at the left of this line, that should expand the XMLHttpRequest to the server, navigate to the Response tab in the newly expanded panel, select the response and post it here. Should look something like this:
{"Progress":{"key":"1285952177212_UploadAttachment_1","uploader":"UploadAttachment_1","apc":"yes","progress":0,"total":-1,"format_total":"0B","cache":{"current":0,"total":-1}},"FormSaved":true,"DeliveryType":"VIEW","Data":"","StatusMessage":"","RedirectUrl":""}
Please let us know what you find or if something fails along the way.
Catalin
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •i try what u say ,but i havent the same log as u
mine:
--------------------------
Permission refusée à d'obtenir la propriété Window.document de .
http://khaledmekaoui.6te.net/vanillaforums-Garden-9b5a2ee/plugins/FileUpload/js/fileupload.js?v=2.0.9
Line 308
---------------------
its a denied permission error
*****
my last line
-------------------
<?xml version="1.0" encoding="utf-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" target="_blank" rel="nofollow">http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
http://www.w3.org/1999/xhtml" xml:lang="en-ca">
Bonk
Bonk
Something funky happened. Please bear with us while we iron out the kinks.
---------------------------
so what can i do ??
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •$Configuration['Garden']['Errors']['MasterView'] = 'deverror.master.php';Vanilla Forums Senior Developer [GitHub, Twitter, About.me]
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Vanilla Forums Senior Developer [GitHub, Twitter, About.me]
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •I am having the same issue. I followed the direction above for using FireBug and this is the error I receive: I'm running Vanilla Version 2.0.11 and FileUpload Version 1.2.1. I didn't see any XMLHttpRequests requests being sent when I selected my file for upload (tho I do see Vanilla's auto save XMLHttpRequests requests).
Any thoughts on what be causing this issue?
Thanks!
~Brad
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Works with Firefox =) But not with Chrome.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •if (ExecuteApcLookup) {
var Action = ['post','checkupload',ApcKey,this.ProgressBars[UploaderID].Progress];
var FinalURL = gdn.url(Action.join('/')+'?randval='+Math.random());
jQuery.ajax({
url:FinalURL,
type:'GET',
async:true,
//data:{'Previous':Progress},
success:jQuery.proxy(this.Progress, this)
});
}
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Vanilla Forums Senior Developer [GitHub, Twitter, About.me]
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •// Open the socket
// Passing null username, generates a login popup on Opera (#2865)
if ( s.username ) {
xhr.open(type, s.url, s.async, s.username, s.password);
} else {
xhr.open(type, s.url, s.async);
}
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Folder/File permissions - checked.
Tested in Firefox only at this point.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Found out that it is caused by the browser returning "<pre>{JSON response}</pre>" instead of "{JSON response}" as the iframe document body's innerHTML which is then deemed "Invalid JSON" by the JQuery JSON parser - and so even the initial checkupload test doesn't work. Solution was as simple as
Response = Response.replace(/^\<pre\>/gi, '').replace(/\<\/pre\>$/gi, '');
in the FileUpload javascript file in the UploadComplete function body just before it gets parsed by JQuery. That works at least in Firefox. In Opera it only got me one step further, where the upload itself should be finished - Opera error console says something like "Error: inline script compilation" and it appears that it cannot cope with the JSON data sent back from the server. This one will be harder to track because it does not show any trace.
Vanilla rocks! Peace to you all and thanks for this plug, Tim!
Dan
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •