Title: Uncaught ReferenceError: wp is not defined
Last modified: September 12, 2019

---

# Uncaught ReferenceError: wp is not defined

 *  [Uranbold](https://wordpress.org/support/users/uranbold/)
 * (@uranbold)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-wp-is-not-defined/)
 * Hello,
 * I have installed W3C Total Cache and also different language from the English(
   Mongolia) then Console has some error. Can you please fix it? How can i fix it
   on my own?
 *     ```
       Uncaught ReferenceError: wp is not defined
       <script type='text/javascript'>
       ( function( domain, translations ) {
       	var localeData = translations.locale_data[ domain ] || translations.locale_data.messages;
       	localeData[""].domain = domain;
       	wp.i18n.setLocaleData( localeData, domain );
       } )( "highlight-and-share", { "locale_data": { "messages": { "": {} } } } );
       </script>
       ```
   
 * Thanks.

The topic ‘Uncaught ReferenceError: wp is not defined’ is closed to new replies.

 * ![](https://ps.w.org/highlight-and-share/assets/icon-256x256.png?rev=2720292)
 * [Highlight and Share – Unobtrusive and Lightweight Content Sharing](https://wordpress.org/plugins/highlight-and-share/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/highlight-and-share/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/highlight-and-share/)
 * [Active Topics](https://wordpress.org/support/plugin/highlight-and-share/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/highlight-and-share/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/highlight-and-share/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Uranbold](https://wordpress.org/support/users/uranbold/)
 * Last activity: [6 years, 9 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-wp-is-not-defined/)
 * Status: not resolved