Title: Uncaught TypeError: wp.template is not a function
Last modified: May 16, 2017

---

# Uncaught TypeError: wp.template is not a function

 *  Resolved [sai_dev](https://wordpress.org/support/users/sai_dev/)
 * (@sai_dev)
 * [9 years ago](https://wordpress.org/support/topic/uncaught-typeerror-wp-template-is-not-a-function/)
 * Hi there,
 * Our Widgets screen in WP admin is almost completely blank and the following error
   is thrown in the browser console: Uncaught TypeError: wp.template is not a function
 * [https://www.dropbox.com/s/q902kg4iunjvppa/Capture.PNG?dl=0](https://www.dropbox.com/s/q902kg4iunjvppa/Capture.PNG?dl=0)
    -  This topic was modified 9 years ago by [sai_dev](https://wordpress.org/support/users/sai_dev/).

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

 *  [jdailey](https://wordpress.org/support/users/jdailey/)
 * (@jdailey)
 * [9 years ago](https://wordpress.org/support/topic/uncaught-typeerror-wp-template-is-not-a-function/#post-9141787)
 * Sorry to hear you are encountering an issue with Custom Sidebars. It looks like
   a conflict with another plugin. Try deactivating your other plugins so just Custom
   Sidebars is running. If this fixes the widgets area please reactivate your other
   plugins until the error returns. You can also try switching to a default theme
   to see if conflict is with your theme.
 * Let me know how this goes.
 *  [jdailey](https://wordpress.org/support/users/jdailey/)
 * (@jdailey)
 * [9 years ago](https://wordpress.org/support/topic/uncaught-typeerror-wp-template-is-not-a-function/#post-9164468)
 * Thank you for using Custom Sidebars. I am going to mark this topic resolved because
   we haven’t heard from you in awhile. If this issue was not resolved we can reopen
   it. Thanks again!
 *  [Joel MMCC](https://wordpress.org/support/users/joel-mmcc/)
 * (@joel-mmcc)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/uncaught-typeerror-wp-template-is-not-a-function/#post-9656455)
 * If anyone else is having this issue, look carefully at the error as displayed
   in your web browser’s developer tools console. It should say something like, `
   Type Error: wp.template is not a function` but following that it should then 
   say _where the error is,_ and perhaps show a call stack (depending on browser).
 * Look at the path given in the error. It should say something like:
    `…/wp-content/
   plugins/OFFENDING_PLUGIN_HERE/….js:###:##` where the first ellipsis is your website
   WordPress Site URL, “OFFENDING_PLUGIN_HERE” is the _subdirectory_ name of the
   offending plugin (which is usually close enough to its displayed name to tell
   you which it is), the second ellipsis will be the path from there to the actual
   offending .js file (this is a JavaScript error, not a PHP error, so would appear
   in a .js file or some other extension containing JavaScript / ECMAscript code),
   and the “###:##” are the line and column numbers (respectively) where the offending`
   wp.template()` call is.
 * For now, once you know which plugin it is, you can simply temporarily deactivate
   it to allow full functionality of Custom Sidebars or other plugins that it’s 
   interfering with, then re-enable it if you truly need the functionality of the
   offending plugin.
 * But don’t forget to also go to the support page or website of the offending plugin
   and let its maker know about this. Copy-and-paste the message from your developer
   tools console (you can and should delete the stuff before `/wp-content` for site
   security reasons — they don’t need to know that), and also a few lines from the
   code itself in the section containing the erroneous `wp.template(…)` function
   calls, copied from the debugger pane of your browser development tools.
 * I’m about to do just that with the Ecwid Store plugin, which is causing similar
   issues with PressCustomizr’s Customizr theme.

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

The topic ‘Uncaught TypeError: wp.template is not a function’ is closed to new replies.

 * ![](https://ps.w.org/custom-sidebars/assets/icon-256x256.png?rev=1414065)
 * [Custom Sidebars - Dynamic Sidebar Classic Widget Area Manager](https://wordpress.org/plugins/custom-sidebars/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-sidebars/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-sidebars/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-sidebars/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-sidebars/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-sidebars/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [Joel MMCC](https://wordpress.org/support/users/joel-mmcc/)
 * Last activity: [8 years, 7 months ago](https://wordpress.org/support/topic/uncaught-typeerror-wp-template-is-not-a-function/#post-9656455)
 * Status: resolved