Title: Error on Plugin Activation
Last modified: August 30, 2016

---

# Error on Plugin Activation

 *  [SAINC](https://wordpress.org/support/users/sainc/)
 * (@sainc)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/error-on-plugin-activation-8/)
 * Hello!
 * I am trying to get this plugin going, but when trying to activate (for the first
   time) I get the following error:
 * Catchable fatal error: Object of class __PHP_Incomplete_Class could not be converted
   to string in ../wp-content/plugins/plugin-organizer/lib/PluginOrganizer.class.
   php on line 334
 * Note: It successfully adds the PHP file to my MU folder during the attempt to
   install, in case that helps at all.
 * This occurred with my site at 3.8 then I did my entire update to 4.3, deactivated
   all my plugins and switched to the 2015 default theme, and I still get this error.
   So I have no clue what can be causing it!
 * Thank you for reading and any help is greatly appreciated.
 * [https://wordpress.org/plugins/plugin-organizer/](https://wordpress.org/plugins/plugin-organizer/)

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

 *  Plugin Author [Jeff Sterup](https://wordpress.org/support/users/foomagoo/)
 * (@foomagoo)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/error-on-plugin-activation-8/#post-6488078)
 * This is line 334:
 * `if (file_exists(WP_PLUGIN_DIR . "/" . $plugin)) {`
 * Maybe the WP_PLUGINS_DIR constant isn’t set in your wordpress install. Not sure
   why that would cause the error you are getting though. From what I see on the
   internet a lot of people get this error because of a bug from 3.8. But since 
   you upgraded to 4.3 you shouldn’t get that error anymore. Unless something didn’t
   get overwritten like it was supposed to.
 *  Thread Starter [SAINC](https://wordpress.org/support/users/sainc/)
 * (@sainc)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/error-on-plugin-activation-8/#post-6488079)
 * Hi Jeff,
 * Thanks for getting back to me. I will look into it and make sure all my core 
   files are properly updated so I am 100% certain there isn’t anything left over
   from 3.8.
 * The error itself isn’t something I have encountered before so I wasn’t sure what
   the best course of action would be, but if I were to simply comment out the code/
   function in question there, would it be detrimental to the usage of the plugin?
   I simply want to use it to disable / enable plugins on certain pages to help 
   boost site performance. In the meantime I will continue to look into the issue
   further.
 * Thank you again for your help!
    Steven
 *  Plugin Author [Jeff Sterup](https://wordpress.org/support/users/foomagoo/)
 * (@foomagoo)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/error-on-plugin-activation-8/#post-6488087)
 * You should be able to comment out the code from line 329 to line 342 and get 
   rid of the block of code that is throwing that error. If you are running version
   6.0.4 of plugin organizer.

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

The topic ‘Error on Plugin Activation’ is closed to new replies.

 * ![](https://ps.w.org/plugin-organizer/assets/icon-256x256.png?rev=1786554)
 * [Plugin Organizer](https://wordpress.org/plugins/plugin-organizer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/plugin-organizer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/plugin-organizer/)
 * [Active Topics](https://wordpress.org/support/plugin/plugin-organizer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/plugin-organizer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/plugin-organizer/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Jeff Sterup](https://wordpress.org/support/users/foomagoo/)
 * Last activity: [10 years, 8 months ago](https://wordpress.org/support/topic/error-on-plugin-activation-8/#post-6488087)
 * Status: not resolved