Upload Feature Inhibited Error When Adding Files or Images in ModX上傳功能抑制時發生錯誤,加入文件或圖像在modx
When trying to upload files, images or photos using the built-in file uploading utility in ModX Manage Files page, tinyMCE or FCKeditor (FCK) Resource Browser, the following error message may appear and uploading fails.當試圖上傳文件,圖片或照片使用內置在文件上載公用事業在modx管理檔案頁, tinymce或fckeditor ( fck )資源的瀏覽器,可能出現以下錯誤信息和上傳失敗。
Upload feature inhibited - make sure uploads are supported and the directory is writable for PHP.上傳功能抑制-確保上傳的支持和目錄是寫P HP的。
or,或,
Failed to upload file, internal error.沒有上傳文件,內部錯誤。
To fix the cannot and unable to and and upload files and pictures to the web server via ModX manager administration user interface, ensure that the following directories on the web server have writable access for Apache HTTPD server, especially when Apache (and so do ModX script) is running as ‘nobody’ with group ‘nobody’, and the ModX directories are uploaded or created by different user.定不能和無法和和上傳文件和圖片到Web伺服器通過modx管理員管理用戶界面,確保下列目錄在Web服務器上有寫訪問的Apache的httpd服務器,尤其是當Apache (以及這樣做modx腳本)正在運行,作為'人'同組'沒有人' ,和modx目錄上傳或創造不同的用戶。
- /assets/cache directory and all files inside it, except index.html /資產/緩存目錄和所有文件裡面,除了為index.html
- /assets/export folder /資產/出口文件夾
- /assets/images folder /資產/圖像文件夾
- /assets/files directory /資產/文件目錄
Login to the server, and use CHMOD command to change the permissions of the above directories’ attributes to at least 0666 (rw-rw-rw-), which grants read-write access to owner, group and public.登錄到該服務器,並使用chmod命令更改權限上述的目錄屬性到至少0666 ( RW光碟- RW光碟- RW光碟- ) ,其中贈款讀寫訪問所有者,組和公眾。 Sometimes, the directories have to be CHMOD set to 0777 (rwxrwxrwx) for the uploading to work properly.有時候,目錄要chmod設置為0777 ( rwxrwxrwx )為上傳到正常工作。
Also possible cause that forbids files been uploaded is file_uploads directive of PHP is turned off, although this situation is unlikely to happen in web hosting server.也可能的原因禁止文件已上載是file_uploads指令的PHP是關閉的,雖然這種情況是不大可能發生在虛擬主機服務器。 To check the value of file_uploads PHP directive, go to Reports -> System Info , then in the “Server” section, click on View after the phpinfo().檢查的價值file_uploads PHP指令,前往報告 -> “系統信息,然後在”服務器“部分,點擊查看後 , p hpinfo( ) 。 Locate file_uploads directive under the Configuration - PHP Core section.找到file_uploads指令下配置-P HP核心的部分。 It should shows On , else edit your PHP.INI to turn off the PHP file uploading support.它應顯示對 ,否則,編輯你的php.ini要關閉PHP文件上傳的支持。
Sometimes, user may have simply upload to the wrong directory.有時,用戶可能只需上傳到錯誤的目錄中。 As mentioned above, for security reason, only a few sub-directories inside the “assets” directory should be make writable to everybody, including Apache.正如上文所述,基於安全理由,只有少數小組目錄內的“資產”目錄,應作出寫入到所有人,包括阿帕奇。 When user using File Manager under Resources - Manage Files to upload, by default ModX will open root directory of ModX website, and attempt to upload to the root directory with no permission granted.當用戶使用檔案管理員下的資源-管理要上傳的文件,默認情況下m odx將打開的根目錄m odx網站,並嘗試上傳到根目錄中並沒有獲准。

As can see from figure above, the directory listing is for “/”, which is top root directory.作為可以看到,從上述的數字,目錄清單是為“ / ” ,這是頂端的根目錄。 To access the correct directory, simply click on the assets directory, and then go to the sub-folder which you want to upload the file.進入正確的目錄,只要按一下資產目錄,然後到子文件夾,您要上傳文件。
The same problem may happen using using TinyMCE or FCK editor to upload photos and images.同樣的問題可能發生的使用使用tinymce或fck編輯器上傳照片和圖像。 The issue mainly arises from invalid path been set as the path to the assets folder.問題主要源自無效的路徑被定為路徑的資產,文件夾中。 To correct and resolve the problem in future, go to Tools -> Configuration -> Interface & Features , and ensure that Resource URL is set as /home/nethler/public_html/assets/ and Resource Path as assets/ .以糾正和解決問題,在未來,去工具“ ->配置- >”界面與功能,並確保資源的U R L設置為/首頁/n e thler/p u blic_html/資產/和資源的路徑,作為資產/。 Another setting is at Tools -> Configuration -> File manager-> File Manager Path, which should be set as a directory which you want the File Manager to go into by default, instead of “/home/nethler/public_html/” which is set on installation by default.另一個是設置在工具“ ->配置- >”檔案管理員“- >檔案管理員的路徑,應定為一個目錄您想要檔案管理員進入默認情況下,而不是” /首頁/ ne t hler/pu b lic_html/“,這是定於安裝在默認情況下。 Note that all directory path has to be finished with slash (/).請注意,所有的目錄路徑,要完成與斜線( / ) 。
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相關文章
- 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: ctype_digit() in WordPress 2.5電話未定義的功能: ctype_digit ( )在WordPress 2.5
- MyBloop Free Unlimited File Storage Space with No Limit on Bandwidth and Files Count mybloop免費無限文件存儲空間,沒有限制的帶寬和檔案計數
- Disable WordPress 2.5 Flash Image/Video/Media Uploader with Plugin禁用的WordPress 2.5閃光圖片/視頻/媒體上傳與插件
- Upload Photos to Flickr with Friendly Flickr Applications將照片上傳到Flickr與友邦的Flickr應用程序
- MediaMax Offers 25 GB Free Online Storage for Files, Music, Videos and Pictures mediamax提供25 GB的免費在線存儲的文件,音樂,視頻和圖片
- Reduce Large Digital Photo File Sizes for Easy Emailing and Use on Websites減少大型數碼照片的文件大小,方便發送電子郵件和使用的網站上
- Embed PowerPoint Presentation Files in Blog or Website With Web-Based Service authorSTREAM嵌入PowerPoint簡報檔案,在博客或網站與基於Web的服務authorstream
- MediaFire Free File Sharing Hosting with Unlimited Space and Bandwidth mediafire免費文件共享託管與無限的空間和帶寬
- Watermarking Free Download to Add Watermark to Photos at Giveawayoftheday.com水印免費下載添加水印照片giveawayoftheday.com
































