Title: Plugin causes Uncaught Error: Syntax error, unrecognized expression
Last modified: August 31, 2016

---

# Plugin causes Uncaught Error: Syntax error, unrecognized expression

 *  Resolved [frostyfire](https://wordpress.org/support/users/frostyfire/)
 * (@frostyfire)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/plugin-causes-uncaught-error-syntax-error-unrecognized-expression/)
 * New version of plugin causes an error while opening fancybox for any image:
 * /wp-includes/js/jquery/jquery.js?ver=1.11.3 Uncaught Error: Syntax error, unrecognized
   expression: [http://bmwguide.ru/bm-content/uploads/2015/08/maserati_shoot.jpg](http://bmwguide.ru/bm-content/uploads/2015/08/maserati_shoot.jpg)
 * When i turned off the plugin, and activated another fancy box – error disappeared.
   This error breaks navigation between images. In wich version of plugin it will
   be fixed?
 * [https://wordpress.org/plugins/fancy-gallery/](https://wordpress.org/plugins/fancy-gallery/)

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

 *  Plugin Author [Dennis](https://wordpress.org/support/users/dhoppe/)
 * (@dhoppe)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/plugin-causes-uncaught-error-syntax-error-unrecognized-expression/#post-7179404)
    1. “fancybox” is not included in this plugin.
    2. The error is not reproduce-able in WP 4.4.2, Twenty Sixteen 1.1, Gallery Manager
       Lite 1.6.3
    3. So the issue cannot be fixed
 *  Thread Starter [frostyfire](https://wordpress.org/support/users/frostyfire/)
 * (@frostyfire)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/plugin-causes-uncaught-error-syntax-error-unrecognized-expression/#post-7179524)
 * Found how to fix the problem. It was in additional settings with relations between
   images and attachments. I think wordpress sarted to generate this automatically
   [http://clip2net.com/s/3vFI009](http://clip2net.com/s/3vFI009)
 *  Plugin Author [Dennis](https://wordpress.org/support/users/dhoppe/)
 * (@dhoppe)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/plugin-causes-uncaught-error-syntax-error-unrecognized-expression/#post-7179526)
 * [@frostyfire](https://wordpress.org/support/users/frostyfire/) Great to hear 
   that the problem could be solved. Would you explain how you solved it to make
   this thread valuable for other readers?
 *  Thread Starter [frostyfire](https://wordpress.org/support/users/frostyfire/)
 * (@frostyfire)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/plugin-causes-uncaught-error-syntax-error-unrecognized-expression/#post-7179546)
 * I think it starts in latest update of wordpress.
 * When you are adding image to post it adds relation attribute (don’t know how 
   it named in english wersion, you can see it on screenshot [http://c2n.me/3vGs7Fr](http://c2n.me/3vGs7Fr)).
 * In code it looks like **rel=”attachment wp-att-5429″**: `<a href="http://bmwguide.
   ru/bm-content/uploads/2016/03/BMW-M3-GTR-Road-version-1900x1200-images-main.jpg"
   rel="attachment wp-att-5429"<img class="aligncenter size-large wp-image-5429"
   src="http://bmwguide.ru/bm-content/uploads/2016/03/BMW-M3-GTR-Road-version-1900x1200-
   images-main-1024x549.jpg" alt="BMW M3 GTR E46 Road Version" width="1024" height
   ="549" /></a>`
 * When you remove this relation – image preview starts to work correctly.
 * Syntax error, unrecognized expression – is not related to this problem, it’s 
   a bug of my theme that appeared after update.
 * P.S. Sorry for my English

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

The topic ‘Plugin causes Uncaught Error: Syntax error, unrecognized expression’ 
is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/fancy-gallery_859b95.svg)
 * [Gallery Manager](https://wordpress.org/plugins/fancy-gallery/)
 * [Support Threads](https://wordpress.org/support/plugin/fancy-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/fancy-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/fancy-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/fancy-gallery/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [frostyfire](https://wordpress.org/support/users/frostyfire/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/plugin-causes-uncaught-error-syntax-error-unrecognized-expression/#post-7179546)
 * Status: resolved