Title: Js reference error
Last modified: February 8, 2024

---

# Js reference error

 *  Resolved [Venutius](https://wordpress.org/support/users/venutius/)
 * (@venutius)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/js-reference-error-2/)
 * Hi there, I’m getting this JS error in the console when I’m on most pages but
   currently seeing it in the plugins page.
 * Uncaught ReferenceError: photocrati_ajax is not defined
   [https://thealicesyndrome.com/wp-content/plugins/nextgen-gallery/static/AttachToPost/ngg_attach_to_post_tinymce_plugin.js?ver=3.58&wp-mce-49110-20201110-tadv-5900:301](https://thealicesyndrome.com/wp-content/plugins/nextgen-gallery/static/AttachToPost/ngg_attach_to_post_tinymce_plugin.js?ver=3.58&wp-mce-49110-20201110-tadv-5900:301)
   ngg_attach_to_post_tinymce_plugin.js:301:4

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

 *  [Jaime Segura](https://wordpress.org/support/users/jaimeimagely/)
 * (@jaimeimagely)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/js-reference-error-2/#post-17480261)
 * Hi [@venutius](https://wordpress.org/support/users/venutius/),
 * I would like to help on this, are you still facing this issue?
 * Please try updating to the latest version and let me know.
 * Also, is there any visible effect anywhere in the backend or frontend, for example
   broken galleries, menus, buttons?
 * Please keep me posted.
 *  Thread Starter [Venutius](https://wordpress.org/support/users/venutius/)
 * (@venutius)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/js-reference-error-2/#post-17483013)
 * Hi there, It’s happening on all my non-NG admin pages, so I think the JS is loading
   and looking for selectors that are not there, and giving the error.

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

The topic ‘Js reference error’ is closed to new replies.

 * ![](https://ps.w.org/nextgen-gallery/assets/icon-256x256.png?rev=2083961)
 * [Photo Gallery, Sliders, Proofing and Themes - NextGEN Gallery](https://wordpress.org/plugins/nextgen-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/nextgen-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/nextgen-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/nextgen-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nextgen-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nextgen-gallery/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Venutius](https://wordpress.org/support/users/venutius/)
 * Last activity: [2 years, 3 months ago](https://wordpress.org/support/topic/js-reference-error-2/#post-17483013)
 * Status: resolved