Title: Uncaught SyntaxError: Invalid regular expression: missing /
Last modified: August 30, 2016

---

# Uncaught SyntaxError: Invalid regular expression: missing /

 *  [ChenOhayon](https://wordpress.org/support/users/chenohayon/)
 * (@chenohayon)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/uncaught-syntaxerror-invalid-regular-expression-missing/)
 * Hi,
 * Crop image isn’t working, not sure what is the issue as it’s working on other
   sites :\
 * [http://take.ms/gmgbl](http://take.ms/gmgbl)
    [http://take.ms/XBnaH](http://take.ms/XBnaH)
 * Any ideas?
 * Thanks ahead,
    Chen
 * [https://wordpress.org/plugins/manual-image-crop/](https://wordpress.org/plugins/manual-image-crop/)

Viewing 1 replies (of 1 total)

 *  [_az_](https://wordpress.org/support/users/_az_/)
 * (@_az_)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/uncaught-syntaxerror-invalid-regular-expression-missing/#post-6371540)
 * I ran into the same error and after some debugging in the plugin i could the 
   find the error in my theme/plugin image definitions.
 * My theory now is:
 * In order for the plugin to work, you have to have enable the “crop” flag in the
   third parameter either in:
    `set_post_thumbnail_size(1,2,true)` or `add_image_size(
   1,2,true)`
 * There seems to be no check for that condition in the plugin itself.

Viewing 1 replies (of 1 total)

The topic ‘Uncaught SyntaxError: Invalid regular expression: missing /’ is closed
to new replies.

 * ![](https://ps.w.org/manual-image-crop/assets/icon-256x256.png?rev=3348923)
 * [Manual Image Crop](https://wordpress.org/plugins/manual-image-crop/)
 * [Support Threads](https://wordpress.org/support/plugin/manual-image-crop/)
 * [Active Topics](https://wordpress.org/support/plugin/manual-image-crop/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/manual-image-crop/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/manual-image-crop/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [_az_](https://wordpress.org/support/users/_az_/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/uncaught-syntaxerror-invalid-regular-expression-missing/#post-6371540)
 * Status: not resolved