Title: Javascript error in p2.js
Last modified: August 21, 2016

---

# Javascript error in p2.js

 *  [violacase](https://wordpress.org/support/users/violacase/)
 * (@violacase)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/javascript-error-in-p2js/)
 * line 1316: Uncaught ReferenceError: inlineEditPosts is not defined

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

 *  Moderator [Kathryn Presner](https://wordpress.org/support/users/zoonini/)
 * (@zoonini)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/javascript-error-in-p2js/#post-4505200)
 * Hi there, could you please let me know:
 * 1) what action were you taking when this error was displayed?
 * 2) could you provide a link to the specific page or post where you saw this in
   your console?
 * Thanks.
 *  Thread Starter [violacase](https://wordpress.org/support/users/violacase/)
 * (@violacase)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/javascript-error-in-p2js/#post-4505208)
 * Hi there, the error shows up directly after activating and running the theme.
   Also another javascript error is found: line 12 in (index) Uncaught SyntaxError:
   Unexpected token ILLEGAL. The (beginning of the) code I found there is:
 * >  // P2 Configuration
   >  var ajaxUrl = “
 * It was ran on a local (Windows8) PC with EasyPhp wamp.
 * I can’t reproduce these errors on a public Centos test site to show you because
   all seems ok there. Funny.
 *  Thread Starter [violacase](https://wordpress.org/support/users/violacase/)
 * (@violacase)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/javascript-error-in-p2js/#post-4505212)
 * Follow up:
 * To test in clean environment I did a fresh WordPress and P2 install with just
   the debug plugins ‘Console’ and ‘Debug Bar’ activated and ‘DEBUG’ set true in
   wp-config.php.
 * Same error messages (in Chrome).
 *  Moderator [Kathryn Presner](https://wordpress.org/support/users/zoonini/)
 * (@zoonini)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/javascript-error-in-p2js/#post-4505223)
 * Thanks for the details. I verified my own local install with MAMP and I’m not
   seeing any JavaScript errors on my end.
 * Since you’re not seeing this on a live server I’m not sure if I can be of further
   help here, but let me know if there’s anything I can do.
 *  Thread Starter [violacase](https://wordpress.org/support/users/violacase/)
 * (@violacase)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/javascript-error-in-p2js/#post-4505226)
 * It’s ok with me, Kathryn.
 * For your information: I don’t and didn’t need any help. I posted this because
   it could perhaps have some value for YOU.
    ‘Let me know if there’s anything else
   I can do’
 *  Moderator [Kathryn Presner](https://wordpress.org/support/users/zoonini/)
 * (@zoonini)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/javascript-error-in-p2js/#post-4505227)
 * Sure, no problem. Glad you’re all set. When folks post errors here it’s usually
   because they are asking for help in diagnosing them. 🙂

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

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

 * ![](https://i0.wp.com/themes.svn.wordpress.org/p2/1.5.8/screenshot.png)
 * P2
 * [Support Threads](https://wordpress.org/support/theme/p2/)
 * [Active Topics](https://wordpress.org/support/theme/p2/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/p2/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/p2/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [Kathryn Presner](https://wordpress.org/support/users/zoonini/)
 * Last activity: [12 years, 4 months ago](https://wordpress.org/support/topic/javascript-error-in-p2js/#post-4505227)
 * Status: not resolved