Title: Javascript syntax error in new update
Last modified: April 18, 2025

---

# Javascript syntax error in new update

 *  Resolved [theepicpen](https://wordpress.org/support/users/theepicpen/)
 * (@theepicpen)
 * [1 year ago](https://wordpress.org/support/topic/javascript-syntax-error-in-new-update/)
 * Hey there.
 * I updated your plugin yesterday (to Version 3.0.7), and today I discovered that
   I can no longer “Replace Media” files due to what seems like a javascript error.
   Neither drag-and-drop nor manually choosing a file via clicking “DRAG AND DROP
   FILES HERE” results in any change on the page (the new file does not show in 
   the right-hand window). I’ve tried completing this action in both Firefox and
   Chrome with no success.
 * Firefox’s Development Tools shows the following error:
 * `Uncaught SyntaxError: expected expression, got '<' replace-media.js:1:1`
 * Viewing the source at that location unfortunately only highlights `<!DOCTYPE 
   html>`, which doesn’t seem very helpful.
 * Rolling back to the previous version of the plugin (Version 3.0.6) fixes the 
   issue.

The topic ‘Javascript syntax error in new update’ is closed to new replies.

 * ![](https://ps.w.org/folders/assets/icon-256x256.gif?rev=2893439)
 * [Folders - Unlimited Folders to Organize Media Library Folder, Pages, Posts, File Manager](https://wordpress.org/plugins/folders/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/folders/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/folders/)
 * [Active Topics](https://wordpress.org/support/plugin/folders/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/folders/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/folders/reviews/)

## Tags

 * [javascript](https://wordpress.org/support/topic-tag/javascript/)

 * 1 reply
 * 2 participants
 * Last reply from: [theepicpen](https://wordpress.org/support/users/theepicpen/)
 * Last activity: [1 year ago](https://wordpress.org/support/topic/javascript-syntax-error-in-new-update/)
 * Status: resolved