Disable WordPress 2.5 Flash Image/Video/Media Uploader with Plugin禁用WordPress的2.5閃光圖片/視頻/媒體上傳與插件
WordPress 2.5 WordPress的2.5 features a new media (including image, video and file) uploader that built on Adobe Flash technology which supports multiple files uploading to the gallery at one time and upload progress indicator bar.增添了一個新的媒體(包括圖片,視頻和文件)上載的基礎上的Flash技術,支持多種文件上傳到觀眾在同一時間和上傳進度指示器酒吧。 Unfortunately, the media uploader has numerous不幸的是,媒體上載有許多 bugs and problems錯誤和問題 , which basically make the Flash uploader not working, or not successfully uploading the files. ,基本上是讓閃光燈上傳器不工作,或不能成功上傳檔案。
There are a few symptoms for the broken Flash uploader error.有幾個症狀為打破閃存上載錯誤。 For example, blogger can adds the files to upload, but nothing happen or progress to upload the selected files.例如,可以增加博客的檔案上傳,但沒有發生或進展上傳選定的文件。 Sometimes the upload process manages to get to “Crunching” but stop working after, or comes out with HTTP error, or even worse, freeze and crash the browser to not responding.有時上傳過程管理去“運算” ,但停止工作後,或者出來的HTTP錯誤,或者更糟的是,凍結和系統崩潰的瀏覽器沒有回應。 Other reported problems including the the add media buttons disappearing or not showing up.報告的其他問題,包括媒體的添加按鈕消失或不顯示。
WordPress Support has WordPress的支撐 listed上市 several steps to check and fix the possible problems that cause user cannot upload photos, images, videos, music and other media files in WordPress 2.5.幾個步驟來檢查和修復可能出現的問題,造成用戶無法上傳照片,圖像,視頻,音樂和其他媒體文件在WordPress的2.5 。 If the Flash based media uploader does not work after whatever effort, workaround and solution been done, including some如果閃存的媒體上載不工作後,無論努力,解決方法和解決方案已經完成,其中包括一些 bug錯誤 fixes修復 , such as disable conflicting plugin and bypass mod_security to try to solve the error and issue, there is a plugin to force disable (or later re-enable) the Flash uploader.如停用衝突的插件和繞行mod_security ,以試圖解決的錯誤和問題,有一個插件強制停用(或更新的重新啟用)的Flash上傳程序。
To enable the Flash media uploader to be disabled via plugin, a filter has to be added to Flash uploader (only on WordPress version 2.5.x, as the change is set to implement in milestone version 2.6).為了使Flash媒體上載停用通過插件,過濾器已被添加到閃存上載(只在WordPress的版本2.5.x ,因為變化是一套執行的里程碑2.6版) 。 To do so, edit the \wp-admin\includes\media.php file using your favorite text editor directly by logging in to server or locally (has to be uploaded and overwrite replaced the original media.php file).為了做到這一點,編輯\可濕性粉劑管理員\包括\ media.php文件,並使用您最喜愛的文本編輯器直接登錄到服務器或本地(已被上傳並覆蓋代替了原來的media.php檔案) 。 Change the following code at around line 765 to 770.更改下面的代碼行約765至770 。
Before:之前:
$flash_action_url = get_option('siteurl') . "/wp-admin/async-upload.php";
// If Mac and mod_security, no Flash. :(
$flash = true;
if ( false !== strpos(strtolower($_SERVER['HTTP_USER_AGENT']), ‘mac’) && apache_mod_loaded(’mod_security’) )
$flash = false;
After:經過:
$flash_action_url = get_option('siteurl') . "/wp-admin/async-upload.php";
$flash = apply_filters('flash_uploader', true);
// If Mac and mod_security, no Flash. :(
$flash = true;
if ( $flash && false !== strpos(strtolower($_SERVER['HTTP_USER_AGENT']), ‘mac’) && apache_mod_loaded(’mod_security’) )
$flash = false;
Then, download the然後,下載 no-flash-uploader.php沒有閃光uploader.php , and upload the PHP file to \wp-content\plugins\ directory, and activate the plugin via WordPress administration page. ,並上傳PHP文件到\可濕性粉劑內容\插件\目錄,並激活插件通過WordPress的管理頁面。 After activating to disable the Flash media uploader, the uploader will no longer make use of Flash technology, and all advanced features that come with it also been disabled.激活後禁用Flash媒體上載,上傳器將不再使用Flash技術,所有先進的功能,來與它也被禁用。
IMPORTANT : You're reading a machine translated page which is provided "as is" without warranty. 重要:您正在閱讀的機器翻譯網頁這是“原樣”提供,無保修。 Unlike human translation, machine translation does not understand the grammar, semantics, syntax, idioms of natural language, thus often produce inaccurate and low quality text which is misleading and incomprehensible.不同人的翻譯,機器翻譯不了解語法,語義,句法,成語自然語言,因此,往往產生不準確,低質量的文字這是誤導和費解。 Thus, please refer to因此,請參閱 original English article英文原文的文章 when in doubt.當懷疑。
Related Articles相關文章
- Fix WordPress 2.5 Image or Media Flash Uploader Not Working Issue in IE7修正2.5 WordPress的圖像或媒體閃光燈上傳不工作的問題在IE7
- Media Buttons Disabler Plugin to Remove “Add Media” Icons in WordPress 2.5媒體按鈕Disabler插件刪除“添加媒體”圖標在WordPress的2.5
- PHP Fatal Error on Call to Add_Query_Var in Taxonomy.php After Upgrading to WordPress 2.5 RC2 PHP的致命錯誤就請Add_Query_Var在Taxonomy.php後升級到WordPress的2.5 RC2中
- WordPress 2.5.1 Released for Download WordPress的2.5.1發布下載
- Call To Undefined Function: ctype_digit() in WordPress 2.5呼籲未定義功能: ctype_digit ( )在WordPress的2.5
- WordPress 2.5 RC2 Released for Download WordPress的2.5 RC2測試版發布下載
- Call to Undefined Function: wp_constrain_dimensions() When Uploading Images or image_downsize() in Gallery/Media Library in WordPress 2.5呼籲未定義功能: wp_constrain_dimensions ( )當上傳圖片或image_downsize ( )在畫廊/傳媒圖書館在WordPress的2.5
- Call to Undefined Function get_currentuserinfo() Error in WordPress呼籲未定義功能get_currentuserinfo ( )在WordPress的錯誤
- How to SEO Optimize WordPress 2.5 Blog Web Page Title Without Optimal Title Plugin如何優化搜索引擎優化WordPress的2.5博客網頁標題無標題的優化插件
- Upload Photos to Flickr with Friendly Flickr Applications將照片上傳到Flickr與友好Flickr應用程序

































April 3rd, 2008 11:18 2008年四月三日11:18
[...] If using the Flash uploader is too much trouble, disable the Flash media uploader with this plugin. [...]如果使用閃光燈上載是太麻煩,請禁用Flash媒體上載與此插件。 [...]
April 4th, 2008 12:03 2008年4月四日12:03
[...] an alternative you can just disable the media uploader and revert to the old one via a plugin. [...]替代您可以只禁用媒體上載,並回复到舊的通過一個插件。 Or just use Firefox and wait for WordPress [...]或只使用Firefox ,等待WordPress的[...]
April 17th, 2008 10:55 2008年四月17號10:55
[...] reading Disable WordPress 2.5 Flash Image/Video/Media Uploader with Plugin at Tip and [...] [...]閱讀禁用WordPress的2.5閃光圖片/視頻/媒體上傳的插件在提示和[...]
April 20th, 2008 00:49 2008年4月二十零號00:49
Thank you very much !非常感謝!
Now I can send files, but I still get the same error message I have with IE7.現在我可以傳送檔案,但我仍然得到相同的錯誤訊息我已與7 。
However even with this error, the upload works.不過即使有這個錯誤,上傳作品。
April 20th, 2008 00:52 2008年4月二十零號0時52
What error message you have?什麼錯誤訊息嗎?
April 21st, 2008 14:04 08年4月21號14:04
I have just folowed all of your instructions and I am still getting this error: Fatal error: Call to undefined function wp_constrain_dimensions() in /home2/newyorka/public_html/wp-admin/includes/image.php on line 173我剛才folowed您所有的指示和我仍然得到這個錯誤:致命錯誤:呼叫功能,以未定義wp_constrain_dimensions ( )在/ home2/newyorka/public_html/wp-admin/includes/image.php線173
I have altered the htaccess to turn of the mod thing and nothing has worked on my Mac (10.5) in safari or FF我已經改變了htaccess打開的改進型的事情,沒有任何工作我的Mac ( 10.5 )在Safari或法郎
Anything else I can do?別的我能怎麼辦呢?
thanks謝謝
April 21st, 2008 15:11 08年4月21號15:11
Have you tried to re-upload wordpress files?您是否嘗試過重新上傳WordPress的文件嗎? Probably some files have corrupted.一些文件可能已損壞。
May 10th, 2008 16:21 2008年5月10日16:21
[...] to a blog post I found, “…the media uploader has numerous bugs and problems, which basically make the [...] [...]到博客後,我發現, “ ...媒體上載有許多漏洞和問題,基本上使[...]
June 9th, 2008 18:51 2008年6月9日18:51
Is it possible to totally remove the media buttons from the Write Post page?是否有可能完全消除媒體按鈕,從收件後的網頁? I don’t want users to use or even see these things.我不想讓用戶使用或什至看到這些東西。 I also want to remove the text editor buttons too!我也想刪除的文字編輯器的按鈕呢!
June 9th, 2008 21:28 2008年6月9日21:28
It was much easier to revert to the previous version of wordpress, however, I have another problem.( I still cannot imbed video. . .) I design the photos to be a specific size on the blog page but have found that the uploader puts an ‘alt’ size into the html that takes precedence in the presentation, unifying all the photo sizes to a smaller format.這是很容易恢復到以前版本的WordPress的,但是,我有另外一個問題。 (我仍然無法著床視頻。 。 。 )我設計的照片是一個特定大小的博客頁面,但發現,上載了一個'舊'大小成的html ,考慮優先於介紹,統一所有的照片尺寸為較小的格式。 When I finish writing, I have to go back through the code and remove all the ‘alt’s from the code so that all is seen as I planned when I publish.當我完成寫作,我要回去通過代碼和刪除所有'舊的代碼從以使所有被看作是我計畫當我發布。
October 1st, 2008 23:25 08年10月一日23:25
The above instructions do not work for me… the flash uploader still gets called.上述指示,不工作對我來說...閃存上載依然神采奕奕要求。
I noticed, by debugging the code, that by the time the function that you edit in your instructions gets called, the browser is already displaying the ‘loading upload form’ bar (ie: the screen has turned black).我注意到,通過調試的代碼,即由時間的功能,您編輯您的指示得到所謂的,瀏覽器已經展示了'載入上傳表單酒吧(即:屏幕已經變成黑色) 。
I’ve tried clearing the cache, and I’m using FF3..我試過清除緩存,我使用的FF3 .. any ideas on what could be going wrong?任何想法可能是去錯了嗎?