Upload hangs
dbck - July 15, 2008 - 18:31
| Project: | Flash Node |
| Version: | 6.x-2.2 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | postponed (maintainer needs more info) |
Jump to:
Description
I go to create a new Flash node, enter in title, description, select my SWF file (21MB), and click submit. I can see the progress bar at the bottom of IE signify that the file is uploading. But once the progress bar reaches 100%, the browser screen remains blank. The status bar reads "Waiting for http://www... /node/add/flashnode..."
I check to see if the node has been published - nothing appears under Content from the admin screen. However, I do see the SWF file uploaded in sites > default > files > flash > temp. Am I missing something?

#1
I just tried to use the Flash import option - when I click OK, I get a blank browser screen again :(
#2
A few people seem to be getting this error, but it's not something I've ever seen on my system.
The fact the file is there in files/flash/temp says the upload worked, but just to be sure can you check what your PHP upload limit is (Administer > Site configuration > File uploads). Towards the bottom of the page it says Your PHP settings limit the maximum file size per upload to .
Do small flash files work ok? If some do, how big do they need to get before the problem occurs?
However, someone else reported problems with the import function and large files recently, so I will have to investigate. The import routine is designed to get around the PHP upload restriction, and I've tested it on large files, so I'm not sure why it is failing for some users. Importing shouldn't care how big the file is as it simply writes data in to the flash node table - there is no actual file manipulation going on.
#3
Ok weird. I just tested it with a small SWF - and it worked fine. My max upload limit is set at 100MB, so my other files should have gone through. Then I thought I'd try to import again, and it worked with the original file!? I was uploading other SWF files to the import folder while testing - perhaps thats what did it? Whatever it was, I'm glad it works now :)
#4
Well I thought it had magically fixed itself, but it's back today. I came in today to import in the rest of the SWF files I uploaded yesterday only to have the browser page go blank when I try to import. Any ideas?
Small SWF files do work.
Default max upload: 100MB
Defaul total file size per user: 1000MB
#5
I wonder... with a large upload is the script timing out. If the maximum execution time is being exceeded then the script (i.e. Drupal) will fail. Because reporting is turned off you simply get a white screen.
When I did some quick searches on this I found some references, particularly related to file uploads, and interestingly they seem to say that the upload completes, but the script generates an error when the upload finishes. That kind of fits with the behaviour people are seeing?
I will see if I can simulate this locally - my local server obviously doesn't take very long to upload even a large file, so that might be why I've not been seeing this error.
#6
If you can, try adding these lines to
index.php<?phperror_reporting(E_ALL);
ini_set('display_errors', TRUE);
ini_set('display_startup_errors', TRUE);
?>
This should let PHP report additional error messages that might give a clue as to what is happening.
There seem to be two bugs - one associated with large uploads, and one with the import function.
Looking at uploads first...
If I simulate an upload that exceeds my local maximum run time by using the
sleep()function then I get a white screen with the messages:Fatal error: Maximum execution time of 60 seconds exceeded in C:\Xampp\htdocs\modules\flashnode\flashnode.module on line 429
Fatal error: Maximum execution time of 60 seconds exceeded in C:\Xampp\htdocs\includes\session.inc on line 56
Fatal error: Maximum execution time of 60 seconds exceeded in C:\Xampp\htdocs\includes\session.inc on line 14
Can you try running a regular upload with a large file and see if it is the execution time that's the problem.
The second error seems to be the import routine. This shouldn't be timing out, but maybe it is. Could you try running an import and see what error messages that generates.
Don't forget to remove the lines from
index.phpwhen you're done!#7
Ok I tried that, and don't see anything - still just a white screen. Maybe I didn't do it right? I pasted this between the existing PHP tags of the site root index.php:
error_reporting(E_ALL);ini_set('display_errors', TRUE);
ini_set('display_startup_errors', TRUE);
When I try to upload, I see the progress bar, then goes to a blank page. When I try to import a SWF file, it just immediately goes to a white page.
#8
The code you added is right, but something odd is going on if you still just get a blank page after the progress bar. I will need to give this some more thought.
You said small files work ok? I will need to think about how to write some extra debug messages to try and pinpoint this problem, but if you are getting dumped to a blank screen then I'm not sure on the best way to do it...
#9
A white screen could mean an Apache error, often associated with memory issues (quite a good explanation here, or the offical Drupal page).
Are you able to review the Apache error log, or try the suggested memory options?
#10
Ok - after taking a break from this site, I'm back at it...
First I uninstalled the flash module, removed from server, and reinstalled.
I followed the instructions on http://drupal.org/node/158043
I tried to upload a 13MB SWF - only to see the white screen again.
argh!
#11
This is a stubborn error - sorry you are having so much trouble getting flash node working - kind of defeats the "easy way to add flash" concept.
What version of Drupal are you running, and what version of flash node.
In terms of contributed modules, which ones have you installed, just in case there is a clash with something that I haven't come across before.
Are any other modules playing up, or just flash node?
Thanks for persisting with flash node - I just hope we can get it working!
#12
Just a thought - if you activate the upload module and then upload the swf file as a regular attachment on, say, a story, does that work? If it does then we can pin the problem to the way flash node is trying to handle the file. If it doesn't work then it suggests a wider problem as both modules are unable to accept the swf file.
If upload module works and flash node doesn't then I can try comparing the code in the two to see if there are any obvious differences that explain this behaviour.
#13
#289250: Upload hang and import hang describes a similar issue under flash node 5.x That thread has been marked as a duplicate and the content copied on to this thread for convenience.
Curious that this post seems to say things worked before SWF Tools was installed, and not after. SWF Tools for Drupal 6 wasn't available when people started reporting this error, so not sure if this is important versus Drupal 5. More work still needed as I cannot recreate this error!
#14
I was able to increase server memory to allow flashnode to upload SWF. I have uninstalled SWF TOOLS as it is not needed. I only intend to use flash content type and upload via the flash node for direct display of an integrated viewer. However, with the server memory upgraded and php.ini modified to accept file uploads of 20MB, the max file size that the flashnode will execute is about 10 MB. Any larger file gives the WSOD. So I tried to use the "import flash" option for the larger files, and the module has no problem listing the available files to import, but executing an import of a large file (>10MB) also gives the WSOD and does not create the node. The import option is very nice, I would just like to figure out how to use it on the larger files.
Thanks,
#15
Ok, I'm back at it... :)
I'm running Drupal 6.3, Flash node 6.x-1.1.
Other installed modules include: Webform 6.x-2.1.2.
Just flash node seems to be acting funny. I just went through a round of uploading attachments to a page - file sizes ranged from a few K to 18MB - uploads worked fine.
#16
So yesterday, I was able to upload attachements (PDFs, JPGs, DOCs, PPTs, ZIPs, etc.) to pages - that worked fine.
BUT, when I tried to attach a 17MB SWF file - I got a pop up window with the yellow triangle caution! saying...
An HTTP error 0 occurred.
/portal/upload/js
Interesting...
#17
I did a search on that error - and saw a post #240777: Attach: An http 0 occurred saying that there may be an issue with clean URLs. I disabled clean URLs and tried to attach an SWF again. I still get the HTTP error 0 - only now it says "/portal/?q=upload/js".
I kept on searching thru other posts and tried updating misc/jquery.form.js with the latest [#226653] - still get the upload error.
#18
I have just committed a new version of flash node to branch DRUPAL-5--3 which writes diagnostic messages to the watchdog during the node creation and import routines. Could you try it out and post back your results. This might help pin-point the failing step.
A successful creation of a node (via Create content) would be
Generating flash node form
Generating flash node form
Validating flash node form
Inserting flash node
Starting _flashnode_insert helper
_flashnode_insert helper success
flashnode: added Test diagnostics.
A successful creation of a node (via import) would be:
Generating import form
Generating confirmation form
Generating confirmation form
Starting import of files
Importing files/flash/movies/Test.flv
Preparing file object
Saving the node
Inserting flash node
Node saved
Adding to the {files} table
flashnode: imported Test.flv.
Thanks!
#19
Well I've updated Drupal to the latest version, and updated Flash Node too - but still getting the wsod :( I did notice that with SWF Tools I can embed FLVs. I may just have to do that instead...
#20
I have the same problem with Flash Node 6.x-2.2 I am trying to upload a 14mb flash file; it uploads and the screen goes blank. The node is not created. I can see the file in sites\default\files\flash\temp
I have tried this from three different machines, using IE and FireFox with the same result. I am able to create flash nodes with a 4mb swf successfully so size is clearly the issue.
In the past I have been able to create flash nodes up to 25mb in size on the same server; no server config changes have been made (the upload limit is 30mb). The only changes have been Drupal updates, Flash Node updates and updates of other modules.
Has anyone found a fix that works for this issue?
#21
I will have to work on this some more. I have never had this issue occur, and I don't really understand why the size issue arises! The import option doesn't actually read the file, just the file name. However, size does, it seems, matter...
#22
I'm also experiencing this problem on Drupal 5.12 and Flashnode 5.x-6.0. I've tried with both large (17MB) and small (3.5MB) files, which upload successfully to the temp folder, then I get the WSOD.
What I noticed is that when I attempted to delete the file out of the temp folder via FTP, I got a permission denied error. The file owner was listed in Filezilla as "(?)". I'm still very new to PHP and Drupal, so I'm not even sure where to begin testing if this is part of the problem or not, but perhaps that's something that you can look at. Maybe when the file upload is complete and the script is trying to move it to the main folder it is getting blocked because of a permission problem and thus the script itself fails? Perhaps someone with more experience in this arena can test it out and see.
#23
Aha!
I have some insight. I've been experiencing this issue for many months. Any flash file larger that 1.2megs would not import and would give wsod. I did lots of researched, checked php settings, tried many solutions. The only option was to break the swf file into 2 smaller parts - a real pain.
Doing some digging into flash and adobe, I found that this may not be a drupal issue, but a flash issue.
I've been using Adobe Captivate to create swf files. There are some compression options that seem to cause wsod in drupal and other adobe apps when working with larger swf files. When I removed the 'Advanced project compression' option in Captivate to publish my swf file, then imports using flashnode worked! Finally!
However you are creating your swf file, I suggest looking into any compression options your software may have. Try disabling them and then upload and try a flashnode import.
Hope that helps!
M