Upload Feature Inhibited Error When Adding Files or Images in 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.

Upload feature inhibited – make sure uploads are supported and the directory is writable for PHP.

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.

  • /assets/cache directory and all files inside it, except 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. Sometimes, the directories have to be CHMOD set to 0777 (rwxrwxrwx) for the uploading to work properly.

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. 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(). Locate file_uploads directive under the Configuration – PHP Core section. It should shows On, else edit your PHP.INI to turn off the PHP file uploading support.

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.

Upload File in ModX using File Manager

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. 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/. 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. Note that all directory path has to be finished with slash (/).



Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe to comments feature has been disabled. To receive notification of latest comments posted, subscribe to Tip and Trick Comments RSS feed or register to receive new comments in daily email digest.
Custom Search

Incoming Search Terms for the Article

modx Error, "Failed to upload file, internal error..." - error, "failed to upload file, internal error..." - modx file manager path - modx upload - Error, "Failed to upload file, internal error..." ModX - modx file upload - modx failed to upload file internal error - Upload feature inhibited - make sure uploads are supported and the directory is writable for PHP. - modx Upload feature inhibited - modx upload images - modx upload file - modx file manager - modx failed to upload file, internal error - modx failed to upload file - modx failed to upload internal error - modx "Failed to upload file, internal error..." - modx upload permissions - upload feature inhibited - fckeditor modx - upload modx - modx file manager access denied - modx file upload error - Error, "Failed to upload file, internal error - modx manage files Invalid path - modx hebrew - modx upload files - Upload feature inhibited modx - modx Failed to upload file, internal error... - modx Upload feature inhibited - make sure uploads are supported and the directory is writable for PHP. - modx Invalid path - modx file manager permissions - failed to upload file, internal error modx - Upload feature inhibited - make sure uploads are supported and the directory is writable for PHP - MODx failed to upload - modx error failed to upload file internal error - failed to upload file internal error modx - modx images - z33wp io error - failed to upload internal error modx - modx "Failed to upload" - modx image upload internal error - modx uploader - upload feature inhibited make sure uploads are supported and the directory is writable for php. - modx directory writable - modx "Error, "Failed to upload file, internal error..."" - invalid path modx - tinymce modx - "Failed to upload file, internal error" modx - modx upload limit - modx upload image -