Title: Error activating the plugin
Last modified: August 22, 2016

---

# Error activating the plugin

 *  Resolved [ramarso](https://wordpress.org/support/users/ramarso/)
 * (@ramarso)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/error-activating-the-plugin-3/)
 * Hi, when we activate the plugin we get this error in the LOG:
 * PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback,
   class ‘P3_Profiler_Plugin’ not found in …../wp-includes/plugin.php on line 505,
   referer: ………./wp-admin/plugins.php
 * And hte link to the P3 Plugin doesn’t appear in the admin bar and the tabs Configuration,
   Activate, Delete disappears for all the installed plugins until the P3 Plugin
   is deactivated.
 * What’s wrong? Someone can help us?
 * [https://wordpress.org/plugins/p3-profiler/](https://wordpress.org/plugins/p3-profiler/)

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

 *  Plugin Contributor [Kurt Payne](https://wordpress.org/support/users/kurtpayne/)
 * (@kurtpayne)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/error-activating-the-plugin-3/#post-5296629)
 * Please re-install the P3 plugin. It sounds like one of the files was not copied
   correctly.
 *  Thread Starter [ramarso](https://wordpress.org/support/users/ramarso/)
 * (@ramarso)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/error-activating-the-plugin-3/#post-5296636)
 * I’m not a lucky man, the same error again and again after reinstall the plugin.
 *  Plugin Contributor [Kurt Payne](https://wordpress.org/support/users/kurtpayne/)
 * (@kurtpayne)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/error-activating-the-plugin-3/#post-5296638)
 * If you disable other plugins first, does that resolve the issue?
 *  Thread Starter [ramarso](https://wordpress.org/support/users/ramarso/)
 * (@ramarso)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/error-activating-the-plugin-3/#post-5296644)
 * We have 19 plugins installed in a production environment….
 *  Plugin Contributor [Kurt Payne](https://wordpress.org/support/users/kurtpayne/)
 * (@kurtpayne)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/error-activating-the-plugin-3/#post-5296647)
 * Can you replicate this in a dev / test / staging environment?
 *  Thread Starter [ramarso](https://wordpress.org/support/users/ramarso/)
 * (@ramarso)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/error-activating-the-plugin-3/#post-5296651)
 * Yes! we are doing right now, but we have 15GB of content + database and this 
   is a hard work.
 *  Thread Starter [ramarso](https://wordpress.org/support/users/ramarso/)
 * (@ramarso)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/error-activating-the-plugin-3/#post-5296660)
 * Activating the P3 plugin we get some errors by other plugins:
 * PHP Warning: array_push() expects parameter 1 to be array, null given in ……/wp-
   content/plugins/dropdown-menu-widget/shailan.DropDownMenu.php on line 770, referer:………./
   wp-admin/plugins.php?deactivate-multi=true&plugin_status=all&paged=1&s=
 * PHP Warning: array_unshift() expects parameter 1 to be array, null given in /…………../
   wp-content/plugins/social-networks-auto-poster-facebook-twitter-g/NextScripts_SNAP.
   php on line 249, referer: ………./wp-admin/plugins.php?activate=true&plugin_status
   =inactive&paged=1&s=
 * PHP Catchable fatal error: Argument 1 passed to TablePress_Admin_Controller::
   add_plugin_action_links() must be an array, null given in ……./wp-content/plugins/
   tablepress/controllers/controller-admin.php on line 293, referer: …../wp-admin/
   plugins.php?deactivate-multi=true&plugin_status=all&paged=1&s=
 * Some idea?
 *  Thread Starter [ramarso](https://wordpress.org/support/users/ramarso/)
 * (@ramarso)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/error-activating-the-plugin-3/#post-5296662)
 * This is very strange. In the test environment (a copy of the production environment)
   we hace UNINSTALLED all the others plugins. And without others plugins installed
   weget 3 errors activating P3:
 * [Tue Sep 16 00:52:22 2014] [error] [client 89.130.10.116] PHP Warning: call_user_func_array()
   expects parameter 1 to be a valid callback, class ‘P3_Profiler_Plugin’ not found
   in …………./wp-includes/plugin.php on line 505, referer: ………../wp-admin/plugins.
   php?deactivate-multi=true&plugin_status=all&paged=1&s=
    [Tue Sep 16 00:52:22 
   2014] [error] [client 89.130.10.116] PHP Warning: call_user_func_array() expects
   parameter 1 to be a valid callback, class ‘P3_Profiler_Plugin’ not found in …………./
   wp-includes/plugin.php on line 505, referer: ………/wp-admin/plugins.php?deactivate-
   multi=true&plugin_status=all&paged=1&s= [Tue Sep 16 00:52:22 2014] [error] [client
   89.130.10.116] PHP Warning: call_user_func_array() expects parameter 1 to be 
   a valid callback, class ‘P3_Profiler_Plugin’ not found in ………../wp-includes/plugin.
   php on line 214, referer: [http://new.futbolcarrasco.com/wp-admin/plugins.php?deactivate-multi=true&plugin_status=all&paged=1&s=](http://new.futbolcarrasco.com/wp-admin/plugins.php?deactivate-multi=true&plugin_status=all&paged=1&s=)
 * WordPress is really a ….
 * Some idea?
 *  Thread Starter [ramarso](https://wordpress.org/support/users/ramarso/)
 * (@ramarso)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/error-activating-the-plugin-3/#post-5296664)
 * The error is in the functions.php of the Theme………..
 * Thank you for your time.
 *  Plugin Contributor [Kurt Payne](https://wordpress.org/support/users/kurtpayne/)
 * (@kurtpayne)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/error-activating-the-plugin-3/#post-5296670)
 * Glad you got it resolved 🙂

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

The topic ‘Error activating the plugin’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/p3-profiler_80a82a.svg)
 * [P3 (Plugin Performance Profiler)](https://wordpress.org/plugins/p3-profiler/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/p3-profiler/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/p3-profiler/)
 * [Active Topics](https://wordpress.org/support/plugin/p3-profiler/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/p3-profiler/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/p3-profiler/reviews/)

 * 10 replies
 * 2 participants
 * Last reply from: [Kurt Payne](https://wordpress.org/support/users/kurtpayne/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/error-activating-the-plugin-3/#post-5296670)
 * Status: resolved