Title: Javascript error
Last modified: September 1, 2016

---

# Javascript error

 *  Resolved [therealgilles](https://wordpress.org/support/users/chamois_blanc/)
 * (@chamois_blanc)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/javascript-error-105/)
 * I am getting the following javascript error on my site:
 *  Uncaught TypeError: Cannot read property ‘i’ of undefined
    [http://swinginatthesavoy.com/wp-content/plugins/page-scroll-to-id/js/jquery.malihu.PageScroll2id.js?ver=1.6.1](http://swinginatthesavoy.com/wp-content/plugins/page-scroll-to-id/js/jquery.malihu.PageScroll2id.js?ver=1.6.1)
   line 2
 * It is related to this line in jquery.malihu.PageScroll2id.js?ver=1.6.1:
 *     ```
       _currentTarget: function(a) {
                   var n = s["target_" + a.data(_).i];
       ```
   
 * where a is defined as follows:
 * `a = [section#guests._mPS2id-t.mPS2id-target, context: document, selector: "#
   guests"]`
 * I don’t quite understand the `a.data(_).i` syntax, so I don’t know how to debug/
   fix this.
 * Any advice would be appreciated.
 * [https://wordpress.org/plugins/page-scroll-to-id/](https://wordpress.org/plugins/page-scroll-to-id/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [therealgilles](https://wordpress.org/support/users/chamois_blanc/)
 * (@chamois_blanc)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/javascript-error-105/#post-7699823)
 * Okay never mind, I shouldn’t have added the _mPS2id-t class manually. My bad.

Viewing 1 replies (of 1 total)

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

 * ![](https://ps.w.org/page-scroll-to-id/assets/icon-256x256.png?rev=1401043)
 * [Page scroll to id](https://wordpress.org/plugins/page-scroll-to-id/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/page-scroll-to-id/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/page-scroll-to-id/)
 * [Active Topics](https://wordpress.org/support/plugin/page-scroll-to-id/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/page-scroll-to-id/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/page-scroll-to-id/reviews/)

## Tags

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

 * 1 reply
 * 1 participant
 * Last reply from: [therealgilles](https://wordpress.org/support/users/chamois_blanc/)
 * Last activity: [9 years, 9 months ago](https://wordpress.org/support/topic/javascript-error-105/#post-7699823)
 * Status: resolved