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.特点一新的媒体(包括图像,视频和档案)上传认为,建立在的Adobe 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.有几个症状为破碎的Flash上传错误。 For example, blogger can adds the files to upload, but nothing happen or progress to upload the selected files.举例来说, Blogger的可以添加要上传的文件,但没有发生或进展上传选定的文件。 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).使快闪媒体上传到被禁用通过插件,过滤器,已被列入闪光上传(只对在WordPress版本2.5 ,作为改变是订定实施的里程碑,在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') . 元flash_action_url = get_option ( ' siteurl ' ) 。 "/wp-admin/async-upload.php"; “ / wp-admin/async-upload.php ” ;
// If Mac and mod_security, no Flash. / /如果Mac和mod_security ,没有闪光。 :( : (
$flash = true; 元=真正的闪光;
if ( false !== strpos(strtolower($_SERVER['HTTP_USER_AGENT']), ‘mac’) && apache_mod_loaded(’mod_security’) ) 如果(虚假! == strpos ( strtolower ( $ _server [ ' http_user_agent ' ] ) , '陆委会' ) & & apache_mod_loaded ( ' mod_security ' ) )
$flash = false; 元闪光=虚假的;
After:后:
$flash_action_url = get_option('siteurl') . 元flash_action_url = get_option ( ' siteurl ' ) 。 "/wp-admin/async-upload.php"; “ / wp-admin/async-upload.php ” ;
$flash = apply_filters('flash_uploader', true); 元闪光= apply_filters ( ' flash_uploader ' ,真正的) ;
// If Mac and mod_security, no Flash. / /如果Mac和mod_security ,没有闪光。 :( : (
$flash = true; 元=真正的闪光;
if ( $flash && false !== strpos(strtolower($_SERVER['HTTP_USER_AGENT']), ‘mac’) && apache_mod_loaded(’mod_security’) ) 如果美元(闪光& &虚假! == strpos ( strtolower ( $ _server [ ' http_user_agent ' ] ) , '陆委会' ) & & 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技术,和一切先进的功能,来与它也被禁用。
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修复的WordPress 2.5图片或媒体的Flash上载器不工作的问题,在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后,升级到2.5 RC2中的WordPress
- 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 get_currentuserinfo() Error in WordPress电话未定义的功能get_currentuserinfo ( )的错误在WordPress
- 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
- 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年4月3日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月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年4月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月20日0时49分
Thank you very much !非常感谢!
Now I can send files, but I still get the same error message I have with IE7.现在我可以传送档案,但我仍得到相同的错误讯息,我与IE7中。
However even with this error, the upload works.不过,即使有此错误的,上传作品。
April 20th, 2008 00:52 2008年4月20日0时52分
What error message you have?什么错误讯息,你呢?
April 21st, 2008 14:04 2008年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 2008年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 [...] [ … … ]到博客后我发现, “ … …媒体上载有许多错误和问题,基本上使[ … … ]