Title: Fixed it
Last modified: January 1, 2020

---

# Fixed it

 *  Resolved [craigtommola](https://wordpress.org/support/users/craigtommola/)
 * (@craigtommola)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/fixed-it-2/)
 * You need to add single quotes around your php in disable-right-click-for-wp.php:
   49
 * var show_msg = <?php echo $show_msg_on_off ?>;
 * should be
 * var show_msg = ‘<?php echo $show_msg_on_off ?>’;
 * Or else there is a console error, and the plugin doesn’t work.

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

 *  Plugin Author [Aftab Ali Muni](https://wordpress.org/support/users/aftabmuni/)
 * (@aftabmuni)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/fixed-it-2/#post-12286100)
 * Hi [@craigtommola](https://wordpress.org/support/users/craigtommola/)
    It is 
   not needed, and I had tested this plugin in many browsers and it is working. 
   Thanks for pointing it.
 *  Thread Starter [craigtommola](https://wordpress.org/support/users/craigtommola/)
 * (@craigtommola)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/fixed-it-2/#post-12286391)
 * Puzzling. Because without it. I receive a console error, pointing specifically
   at that line:
 * `Uncaught SyntaxError: Unexpected token ';'`
    `var show_msg = ;`
 * and the plugin doesn’t work, but when I add the single quotes, the console error
   is gone, and the plugin does work.
 * Chrome Version 79.0.3945.88 (Official Build) (64-bit)
    Mojave 10.14.6
 *  Plugin Author [Aftab Ali Muni](https://wordpress.org/support/users/aftabmuni/)
 * (@aftabmuni)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/fixed-it-2/#post-12288324)
 * Fixed it, Please take latest update.
    Thanks.
 *  Thread Starter [craigtommola](https://wordpress.org/support/users/craigtommola/)
 * (@craigtommola)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/fixed-it-2/#post-12289566)
 * Thank you kindly

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

The topic ‘Fixed it’ is closed to new replies.

 * ![](https://ps.w.org/disable-right-click-for-wp/assets/icon-256x256.png?rev=1970728)
 * [Disable Right Click For WP](https://wordpress.org/plugins/disable-right-click-for-wp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/disable-right-click-for-wp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/disable-right-click-for-wp/)
 * [Active Topics](https://wordpress.org/support/plugin/disable-right-click-for-wp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/disable-right-click-for-wp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/disable-right-click-for-wp/reviews/)

## Tags

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

 * 4 replies
 * 2 participants
 * Last reply from: [craigtommola](https://wordpress.org/support/users/craigtommola/)
 * Last activity: [6 years, 5 months ago](https://wordpress.org/support/topic/fixed-it-2/#post-12289566)
 * Status: resolved