Title: ERROR &#8220;The file contains JS code. Please remove &#8230;&#8221;
Last modified: March 31, 2025

---

# ERROR “The file contains JS code. Please remove …”

 *  Resolved [nima12312](https://wordpress.org/support/users/nima12312/)
 * (@nima12312)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/error-the-file-contains-js-code-please-remove/)
 * Hello everyone
 * In the Bit File Manager editor, when I try to edit the function.php file after
   saving, it gives the following error:
   “The file contains JS code. Please remove
   the code and try again. Or allow js mimetype”
 * While in the default WordPress editor there is no problem.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [nima12312](https://wordpress.org/support/users/nima12312/)
 * (@nima12312)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/error-the-file-contains-js-code-please-remove/#post-18393244)
 * Has anyone ever had this error?
 *  Plugin Support [wayes001](https://wordpress.org/support/users/wayes001/)
 * (@wayes001)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/error-the-file-contains-js-code-please-remove/#post-18400765)
 * Thank you for reaching out, and we hope you’re doing well.
 * To resolve the issue you’re experiencing in the **Bit File Manager** editor, 
   please follow these steps:
    1. Navigate to the **“Permissions”** settings within Bit File Manager.
    2. Under **“Allowed MIME types,”** add **JavaScript (JS)** to the list.
    3. Save the settings and try editing the `functions.php` file again.
 * If the issue still persists after this, feel free to contact us at **support@bitapps.
   pro**, and we’ll be happy to assist you further.
 * Thank you again for your patience and for using our product!
 *  Thread Starter [nima12312](https://wordpress.org/support/users/nima12312/)
 * (@nima12312)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/error-the-file-contains-js-code-please-remove/#post-18401012)
 * I thought the setting was the same as the preferences.
 * Thanks, my problem was solved.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘ERROR “The file contains JS code. Please remove …”’ is closed to new 
replies.

 * ![](https://s.w.org/plugins/geopattern-icon/file-manager_e5f2f9.svg)
 * [File Manager](https://wordpress.org/plugins/file-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/file-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/file-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/file-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/file-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/file-manager/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [nima12312](https://wordpress.org/support/users/nima12312/)
 * Last activity: [1 year, 2 months ago](https://wordpress.org/support/topic/error-the-file-contains-js-code-please-remove/#post-18401012)
 * Status: resolved