Title: Javascript code appearing in shortcut
Last modified: May 19, 2020

---

# Javascript code appearing in shortcut

 *  [Peatkay](https://wordpress.org/support/users/peatkay/)
 * (@peatkay)
 * [6 years ago](https://wordpress.org/support/topic/javascript-code-appearing-in-shortcut/)
 * Hi there,
 * Your plugin has stopped working. Javascript code is being outputted in the shortcode
   on the front end.
 * Could you take a look please?
 * Thanks
 * Pete
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fjavascript-code-appearing-in-shortcut%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Contributor [M Usman](https://wordpress.org/support/users/hafizusman/)
 * (@hafizusman)
 * [6 years ago](https://wordpress.org/support/topic/javascript-code-appearing-in-shortcut/#post-12869027)
 * Hi [@peatkay](https://wordpress.org/support/users/peatkay/) is there is any log
   message? in debug mode?
 *  Thread Starter [Peatkay](https://wordpress.org/support/users/peatkay/)
 * (@peatkay)
 * [6 years ago](https://wordpress.org/support/topic/javascript-code-appearing-in-shortcut/#post-12925370)
 * Sorry it took a while to come back to you.
    This is all the error log says
 *     ```
       [02-Jun-2020 08:58:36 UTC] PHP Notice:  add_submenu_page was called <strong>incorrectly</strong>. The seventh parameter passed to <code>add_submenu_page()</code> should be an integer representing menu position. Please see <a href="https://wordpress.org/support/article/debugging-in-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 5.3.0.) in /home/srispice/public_html/wp-includes/functions.php on line 5167
       [02-Jun-2020 08:58:37 UTC] PHP Notice:  Undefined variable: intance in /home/srispice/public_html/wp-content/themes/ultimatum/wonderfoundry/widgets/menus/mdm.php on line 14
       [02-Jun-2020 08:58:41 UTC] PHP Notice:  Undefined variable: intance in /home/srispice/public_html/wp-content/themes/ultimatum/wonderfoundry/widgets/menus/mdm.php on line 14
       [02-Jun-2020 08:58:56 UTC] PHP Notice:  add_submenu_page was called <strong>incorrectly</strong>. The seventh parameter passed to <code>add_submenu_page()</code> should be an integer representing menu position. Please see <a href="https://wordpress.org/support/article/debugging-in-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 5.3.0.) in /home/srispice/public_html/wp-includes/functions.php on line 5167
       ```
   
 *  Moderator [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * (@jdembowski)
 * Forum Moderator and Brute Squad
 * [5 years, 12 months ago](https://wordpress.org/support/topic/javascript-code-appearing-in-shortcut/#post-12994185)
 * [@hafizusman](https://wordpress.org/support/users/hafizusman/) I’ve archived 
   your reply. While I know you have the best of intentions, it’s forum policy that
   you _not_ ask users for admin or server access. Users on the forums aren’t your
   customers, they’re your open source collaborators, and requesting that kind of
   access can put you and them at high risk.
 * If they _are_ paying customers (such as people who bought a premium service/product
   from you) then by all means, direct them to your official customer support system.
   But in all other cases, you need to help them here on the forums.
 * Thankfully are other ways to get information you need:
    - Ask the user to install the [Health Check plugin](https://wordpress.org/support/plugin/health-check/)
      and get the data that way.
    - Ask for a link to the [http://pastebin.com/](http://pastebin.com/) or [https://gist.github.com](https://gist.github.com)
      log of the user’s web server error log.
    - Ask the user to create and post a link to their `phpinfo();` output.
    - Walk the user through [enabling WP_DEBUG and how to log that output to a file and how to share that file.](https://wordpress.org/support/article/debugging-in-wordpress/)
    - Walk the user through basic troubleshooting steps such and disabling all other
      plugins, clear their cache and cookies and try again (the Health Check plugin
      can do this without impacting any site vistors).
    - Ask the user for the step-by-step directions on how they can reproduce the
      problem.
 * You get the idea.
 * We know volunteer support is not easy, and this guideline can feel needlessly
   restrictive. It’s actually there to protect you as much as end users. Should 
   their site be hacked or have any issues after you accessed it, you could be held
   legally liable for damages. In addition, it’s difficult for end users to know
   the difference between helpful developers and people with malicious intentions.
   Because of that, we rely on plugin developers and long-standing volunteers (like
   you) to help us and uphold this particular guideline.
 * When you help users _here_ and in public, you also help the next person with 
   the same problem. They’ll be able to read the debugging and solution and educate
   themselves. That’s how we get the next generation of developers.
 *  Thread Starter [Peatkay](https://wordpress.org/support/users/peatkay/)
 * (@peatkay)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/javascript-code-appearing-in-shortcut/#post-13115088)
 * Hi M Usman,
 * How did you get on at looking into this?
 * I really need a fix asap.
 * Pete
 *  Thread Starter [Peatkay](https://wordpress.org/support/users/peatkay/)
 * (@peatkay)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/javascript-code-appearing-in-shortcut/#post-13115187)
 * Actually we have decided to go with another plugin.
    Thanks

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

The topic ‘Javascript code appearing in shortcut’ is closed to new replies.

 * ![](https://ps.w.org/sip-reviews-shortcode-woocommerce/assets/icon-128x128.png?
   rev=2503556)
 * [SIP Reviews Shortcode for WooCommerce](https://wordpress.org/plugins/sip-reviews-shortcode-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/sip-reviews-shortcode-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/sip-reviews-shortcode-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/sip-reviews-shortcode-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sip-reviews-shortcode-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sip-reviews-shortcode-woocommerce/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [Peatkay](https://wordpress.org/support/users/peatkay/)
 * Last activity: [5 years, 11 months ago](https://wordpress.org/support/topic/javascript-code-appearing-in-shortcut/#post-13115187)
 * Status: not resolved