Title: Javascript error
Last modified: August 21, 2016

---

# Javascript error

 *  [tauno1](https://wordpress.org/support/users/tauno1/)
 * (@tauno1)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/javascript-error-28/)
 * Hey,
    I am having a javascript error on my site [http://fightgifs.com](http://fightgifs.com)
   with this line of code in footer.php: var main_menu=new main_menu.dd(“main_menu”);
 * Uncaught TypeError: Cannot read property ‘dd’ of undefined
 * Anyone has an idea what to do ? The error is creating a problem for a javascript
   plugin (Shashin). Whole script:
 *     ```
       <script type="text/javascript">
   
       jQuery(document).ready(function($){
   
       $('.carousel').elastislide({
   
       	imageW 	: 145,
   
       	minItems	: 2,
   
       	margin		: 10
   
       });
   
       var main_menu=new main_menu.dd("main_menu");
   
       main_menu.init("main_menu","menuhover");
   
       });
   
       </script>
       ```
   
 * Thanks a lot !

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

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/javascript-error-28/#post-4153133)
 * Have you tried:
 * – deactivating **all** plugins to see if this resolves the problem. If this works,
   re-activate the plugins one by one until you find the problematic plugin(s).
 * – switching to the default theme to rule out any theme-specific problems.
 * – [resetting the plugins folder](http://codex.wordpress.org/FAQ_Troubleshooting#How_to_deactivate_all_plugins_when_not_able_to_access_the_administrative_menus.3F)
   by FTP or PhpMyAdmin. Sometimes, an apparently inactive plugin can still cause
   problems.
 *  Thread Starter [tauno1](https://wordpress.org/support/users/tauno1/)
 * (@tauno1)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/javascript-error-28/#post-4153179)
 * I think it is theme related, but I would really like to keep using the theme.
   The problem also started quite recently, everything was working fine before.
 *  [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * (@wpyogi)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/javascript-error-28/#post-4153181)
 * Have you asked the developer of the theme about this?
 * [http://themeforest.net/user/mvpthemes](http://themeforest.net/user/mvpthemes)
 * [http://codex.wordpress.org/Forum_Welcome#Commercial_Products](http://codex.wordpress.org/Forum_Welcome#Commercial_Products)

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

The topic ‘Javascript error’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 3 participants
 * Last reply from: [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * Last activity: [12 years, 7 months ago](https://wordpress.org/support/topic/javascript-error-28/#post-4153181)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
