Fatal error: Call to undefined function wp_cache_get after update attempt

I think W3 Total Cache or any Cache related plugin is still activate in your site. Try to de-active all plugins manually. Using Database Open Phpmyadmin Database of the website. In the table wp_options, under the option_name column (field) find the active_plugins row. Change the option_value field to: a:0:{} Using FTP or SSH In case … Read more

Using actions, hooks and filters in a non-WordPress page

It’s catch 22 – you need WordPress to use the hook system, but init will have already fired during load (wp-settings.php to be exact). I would create a MU “Must Use” plugin (wp-content/mu-plugins/any-filename.php) for all your “outside of WordPress” functionality, with something like this at the start: if ( ! defined( ‘LOADED_EXTERNAL’ ) || ! … Read more

Removed plugin generating error message

The approach in the answer by Scuba Kay is technically possible but easy to get wrong. Small mistakes will cause the data to fail to unserialize correctly. You are better off “editing” the serialized data with PHP: $str=”a:4:{i:0;s:23:”bandpress/bootstrap.php”;i:3;s:56:”posts-from-single-category-widget/post_from_category.php”;i:4;s:15:”something else “;i:5;s:68:”syntax-highlighter-with-add-button-in-editor/syntaxhighlighterpp.php”;}”; // copies from database $strar = unserialize($str); var_dump($strar); // find the key in the var_dump … Read more

Does Deactivating a Plugin Help Anything?

Yes The overhead of a plugin sitting in your plugin folder is negligible, and would have an impact on the plugins page. The main area of optimisation here is the % of free space on your filesystem. Active plugins on the other hand can run queries, make remote requests, do expensive parsing, filesystem operations, and … Read more

How to stop activation addon if the main plugin is not activated

I found the solution. First of all, I discover that… you cannot use the admin_notices hook inside the activation hook function. More details here Thanks the link above, I found this solution : class MyAddon { const ACTIVATION_ERROR = “foo-activation-error” public function __construct(){ register_activation_hook( __FILE__, array( $this, ‘install’ ) ); if( is_admin() ){ add_action( “admin_init”, … Read more