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?任何想法可能是去错了吗?