Title: ReferenceError: template_directory is not defined
Last modified: August 21, 2016

---

# ReferenceError: template_directory is not defined

 *  [patlarsen1](https://wordpress.org/support/users/patlarsen1/)
 * (@patlarsen1)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/referenceerror-template_directory-is-not-defined/)
 * Hi, I’m getting this error.
    ReferenceError: template_directory is not defined
 * Please let me know if there is a fix.
 * Best,
    Pat
 * [http://wordpress.org/extend/plugins/black-studio-tinymce-widget/](http://wordpress.org/extend/plugins/black-studio-tinymce-widget/)

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

 *  Thread Starter [patlarsen1](https://wordpress.org/support/users/patlarsen1/)
 * (@patlarsen1)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/referenceerror-template_directory-is-not-defined/#post-3853593)
 * OS: Mac OS X 10.7.5
    Browser: Chrome Theme: Dynamo by Obox WP version: 3.5.1
 *  Thread Starter [patlarsen1](https://wordpress.org/support/users/patlarsen1/)
 * (@patlarsen1)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/referenceerror-template_directory-is-not-defined/#post-3853595)
 * I’m in Appearance, then widgets.
    I’m trying to add a black MCE text widget into
   a sidebar and then the template_directory error appears
 *  Plugin Author [Marco Chiesi](https://wordpress.org/support/users/marcochiesi/)
 * (@marcochiesi)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/referenceerror-template_directory-is-not-defined/#post-3853701)
 * Hi Pat,
    that error is not triggered by our plugin, as our code doesn’t reference
   any `template_directory` variable. So the first step is to find out the exact
   point where the error gets triggered. This kind of problems is usually related
   to conflicts with other plugins or themes. Please try to check your javascript
   browser console. Also you can try to selectively disable other plugins and/or
   to temporarily switch to another theme.

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

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

 * ![](https://ps.w.org/black-studio-tinymce-widget/assets/icon.svg?rev=2627604)
 * [Black Studio TinyMCE Widget](https://wordpress.org/plugins/black-studio-tinymce-widget/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/black-studio-tinymce-widget/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/black-studio-tinymce-widget/)
 * [Active Topics](https://wordpress.org/support/plugin/black-studio-tinymce-widget/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/black-studio-tinymce-widget/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/black-studio-tinymce-widget/reviews/)

## Tags

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

 * 3 replies
 * 2 participants
 * Last reply from: [Marco Chiesi](https://wordpress.org/support/users/marcochiesi/)
 * Last activity: [12 years, 11 months ago](https://wordpress.org/support/topic/referenceerror-template_directory-is-not-defined/#post-3853701)
 * Status: not resolved