- This topic has 2 replies, 2 voices, and was last updated 5 years, 9 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP Lightbox Ultimate › Bug in code resulting in "Uncaught SyntaxError: Unexpected end of input"
In the latest version (v2.3.0) of Lightbox Ultimate (Developer Edition) I was getting an error (“Uncaught SyntaxError: Unexpected end of input”) when using the shortcode [wp_lightbox_ultimate_inline_content_embed].
When I investigated it I found the following problematic line (1026) of code in file ‘wp_lightbox_misc_functions.php’.
line 1026: closeClick: false // prevents closing when clicking OUTSIDE fancybox
When I changed it to use the following syntax, placing the inline comments in ‘/* */’ vs ‘//’, the errors went away.
line 1026: closeClick: false /* prevents closing when clicking OUTSIDE fancybox */
You might want to update your repo.
Hi, Thank you for pointing out this error. We have just updated the plugin on our website.
Great, thanks for fixing that.