Title: JavaScript error &#8220;Uncaught SyntaxError: missing ) in parenthetical&#8221;
Last modified: January 4, 2021

---

# JavaScript error “Uncaught SyntaxError: missing ) in parenthetical”

 *  Resolved [doffine](https://wordpress.org/support/users/doffine/)
 * (@doffine)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/javascript-error-uncaught-syntaxerror-missing-in-parenthetical/)
 * Hey there,
 * we just noticed an error in the JavaScript console in /wp-content/plugins/photo-
   gallery/js/jquery.mobile.min.js?ver=1.4.5
 * `Uncaught SyntaxError: missing ) in parenthetical`
 * Greetings,
    -doffine

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

 *  Plugin Support [Zhanna Khachatryan](https://wordpress.org/support/users/zhannak/)
 * (@zhannak)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/javascript-error-uncaught-syntaxerror-missing-in-parenthetical/#post-13876946)
 * Hi [@doffine](https://wordpress.org/support/users/doffine/) ,
 * Thanks for your inquiry.
 * Can you please make sure that you have the latest version of the plugin installed–
   that is 1.5.66 if free and 2.5.66 if pro.
 * If you don’t have the latest version, then please update and check again.
    If
   you have the latest version, and the issue persists, please write your WordPress
   version as we could not reproduce the issue on our end.
 *  Thread Starter [doffine](https://wordpress.org/support/users/doffine/)
 * (@doffine)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/javascript-error-uncaught-syntaxerror-missing-in-parenthetical/#post-13878683)
 * Hi [@zhannak](https://wordpress.org/support/users/zhannak/),
 * we are using current version 1.5.66. Our WordPress version is 5.6, PHP is 7.4.13.
 * Above console error message is by Firefox. Chrome calls it as follows:
 * `Uncaught SyntaxError: Unexpected identifier (jquery.mobile.min.js:7)`
 * (path is also `/wp-content/plugins/photo-gallery/js/jquery.mobile.min.js?ver=
   1.4.5`)
 * Greetings,
    -doffine
 *  [usminfoserv](https://wordpress.org/support/users/usminfoserv/)
 * (@usminfoserv)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/javascript-error-uncaught-syntaxerror-missing-in-parenthetical/#post-13882646)
 * I’m experiencing the same error since the upgrade to Photo Gallery 1.5.66 which
   updated the jquery.mobile.min.js from 1.3.2 to 1.4.5.
 * Uncaught SyntaxError: missing ) in parenthetical — jquery.mobile.min.js:7
 * Additionally, with autoptimize’s javascript aggregation turned on, this causes
   problems with unrelated pages. Deactivating photo gallery solves those issues.
   Turning off autoptimize’s aggregation feature also solves the issue. It’s not
   clear whether this is related to the syntax error… but it would be nice to have
   it fixed if possible.
 * Is there a pre-minified version of jquery.mobile.min.js that I could swap in 
   that would help narrow down where the issue is?
 *  [usminfoserv](https://wordpress.org/support/users/usminfoserv/)
 * (@usminfoserv)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/javascript-error-uncaught-syntaxerror-missing-in-parenthetical/#post-13882653)
 * And before you ask… we are using WordPress 5.6 and autoptimize 2.8.1
 *  [Asya Gabrilyan](https://wordpress.org/support/users/asyag/)
 * (@asyag)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/javascript-error-uncaught-syntaxerror-missing-in-parenthetical/#post-13905650)
 * Dear [@usminfoserv](https://wordpress.org/support/users/usminfoserv/),
    Sorry
   for the belated response.
 * Please update the gallery to version 1.5.67.
    It includes all the necessary fixes.
 * Sincerely,
 *  Thread Starter [doffine](https://wordpress.org/support/users/doffine/)
 * (@doffine)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/javascript-error-uncaught-syntaxerror-missing-in-parenthetical/#post-13908828)
 * [@asyag](https://wordpress.org/support/users/asyag/),
 * thank you very much. The error has gone with 1.5.67. I’ll mark this as resolved
   now.
 * Greetings,
    -doffine
 *  [usminfoserv](https://wordpress.org/support/users/usminfoserv/)
 * (@usminfoserv)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/javascript-error-uncaught-syntaxerror-missing-in-parenthetical/#post-13908882)
 * Completely resolved for me, too. Thank you!

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

The topic ‘JavaScript error “Uncaught SyntaxError: missing ) in parenthetical”’ 
is closed to new replies.

 * ![](https://ps.w.org/photo-gallery/assets/icon-256x256.png?rev=2068745)
 * [Photo Gallery by 10Web - Mobile-Friendly Image Gallery](https://wordpress.org/plugins/photo-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/photo-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/photo-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/photo-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/photo-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/photo-gallery/reviews/)

 * 7 replies
 * 4 participants
 * Last reply from: [usminfoserv](https://wordpress.org/support/users/usminfoserv/)
 * Last activity: [5 years, 4 months ago](https://wordpress.org/support/topic/javascript-error-uncaught-syntaxerror-missing-in-parenthetical/#post-13908882)
 * Status: resolved