Title: Error after activating Plugin
Last modified: August 30, 2016

---

# Error after activating Plugin

 *  Resolved [mhowl](https://wordpress.org/support/users/mhowl/)
 * (@mhowl)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/error-after-activating-plugin-3/)
 * Hi there,
 * I just installed the latest version of WP.
 * After installing the plugin version 1.1.1, I see this error in my developer console–
   Uncaught TypeError: a.widget is not a function.
 * It points to line 271 of wp-admin/plugins.php script.
 * I have a couple of WP sites that’s on 4.2.3 as well, but I don’t have this issue.
 * I’m not sure what the problem here is. Appreciate it if you could take a look.
 * What I have tried –
 * 1. Disable the Plugin and the error disappears
    2. Reinstalled WP a few times
   but error persists
 * However, if I use an older version – 0.8.5 – I don’t get the error.
 * [https://wordpress.org/plugins/custom-post-type-ui/](https://wordpress.org/plugins/custom-post-type-ui/)

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

 *  Plugin Contributor [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [10 years, 10 months ago](https://wordpress.org/support/topic/error-after-activating-plugin-3/#post-6377799)
 * I think the actual error is from something unrelated to our plugin, but there’s
   chance still that something with our plugin is causing an issue enough for that
   js error to appear from elsewhere. We don’t have any reference to “widget” in
   our plugin’s code, for example.
 * What WP Admin screen are you on when you see that?
 * Is it causing any issues with functionality somewhere?
 *  Thread Starter [mhowl](https://wordpress.org/support/users/mhowl/)
 * (@mhowl)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/error-after-activating-plugin-3/#post-6377804)
 * Thanks for your reply.
 * I’m guessing it may not be the plugin as well.
 * I took a look at my web server, and it’s on PHP version 5.5.24. I think my other
   wordpress sites are running on PHP version 5.4.
 * Are your WP sites on PHP 5.4 or 5.5?
 * And I got the error on the main admin screen.
 * In terms of functionality, I’m not fully certain because I downgraded the plugin
   to 0.8.5.
 *  Plugin Contributor [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [10 years, 10 months ago](https://wordpress.org/support/topic/error-after-activating-plugin-3/#post-6377832)
 * It’s not a PHP version issue, if you’re seeing it in your browser console. It’s
   a javascript issue. “a.widget is not a function” sounds very much like a minified
   js thing.
 * Not seeing anything similar on my end, but I don’t have the same plugins active
   as you do as well. Also shouldn’t be loading any of our js in that screen.
 * Just trying to help narrow down sources here.

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

The topic ‘Error after activating Plugin’ is closed to new replies.

 * ![](https://ps.w.org/custom-post-type-ui/assets/icon-256x256.png?rev=2744389)
 * [Custom Post Type UI](https://wordpress.org/plugins/custom-post-type-ui/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-post-type-ui/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-post-type-ui/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-post-type-ui/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-post-type-ui/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-post-type-ui/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * Last activity: [10 years, 10 months ago](https://wordpress.org/support/topic/error-after-activating-plugin-3/#post-6377832)
 * Status: resolved