Clicking "Choose files to upload" does nothing.

My Flash Version is 10 (Client runs on Windows XP) ^^
My wordpress package version is 2.5.1-11+lenny3.

So I temporarily altered line 808 in /usr/share/wordpress/wp-admin/includes/media.php (the parameters for the swfupload flash object) to "debug: true" instead of "debug: false".

Now pressing the "Choose files to upload" Button dumps:


----- SWFUPLOAD SETTINGS     ----
ID: undefined
upload_url: http://blog.lapstore.de/wp-admin/async-upload.php
file_post_name: async-upload
post_params: {
   post_id: -1279682902
   auth_cookie: ***|***|******
   type: image
   tab: type
   short: 1
}
file_types: *.*
file_types_description: All Files
file_size_limit: 2097152b
file_upload_limit: 0
file_queue_limit: 0
flash_url: http://blog.lapstore.de/wp-includes/js/swfupload/swfupload_f9.swf
flash_width: 1px
flash_height: 1px
flash_color: #FFFFFF
debug_enabled: true
swfupload_element_id: flash-upload-ui
degraded_element_id: html-upload-ui
user_swfUploadLoaded_handler: function () {
}
user_upload_complete_handler: function uploadComplete(fileObj) {
   if (swfu.getStats().files_queued == 0) {
       jQuery("#insert-gallery").attr("disabled", "");
   }
}
----- SWFUPLOAD SETTINGS END ----


SWF DEBUG: SWFUpload Init Complete
SWF DEBUG:
SWF DEBUG: ----- SWF DEBUG OUTPUT ----
SWF DEBUG: Build Number:           SWFUPLOAD 2.0.2 FP9 2008-01-07 0001
SWF DEBUG: movieName:              SWFUpload_0
SWF DEBUG: Upload URL: http://blog.lapstore.de/wp-admin/async-upload.php
SWF DEBUG: File Types String:      *.*
SWF DEBUG: Parsed File Types: SWF DEBUG: File Types Description: All Files (*.*)
SWF DEBUG: File Size Limit:        2097152 bytes
SWF DEBUG: File Upload Limit:      0
SWF DEBUG: File Queue Limit:       0
SWF DEBUG: Post Params:
SWF DEBUG:                         post_id=-1279682902
SWF DEBUG:                         short=1
SWF DEBUG:                         type=image
SWF DEBUG:                         tab=type
SWF DEBUG:                         auth_cookie=***|***|***
SWF DEBUG: ----- END SWF DEBUG OUTPUT ----
SWF DEBUG:
Flash called back and is ready.
SWF DEBUG: Event: fileDialogStart : Browsing files. Multi Select. Allowed file types: *.*
Could not call SelectFiles: Error: Error calling method on NPObject!



The above last lines of the dump apply to firefox & chrome, while IE7 instead says:


...
...
Flash called back and is ready.
SWF DEBUG: Event: fileDialogStart : Browsing files. Multi Select. Allowed file types: *.*
Could not call SelectFiles: [object Error]




When setting up wordpress a few days ago on a freshly installed machine I followed the README.debian
instructions and used the setup-mysql script. Worked fine so far.

I assumed a compatibility issue and as a quick fix I altered /usr/share/wordpress/wp-admin/includes/media.php
to just not use swfupload:
I inserted "$flash = false;" right before the "if" statement in line 779. I hope this brute-force repair didn't revive any
critical security issues?

Peter Blunck




--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to