Today I had an interesting problem while adding and updating the Akismet plugin on a client’s site. It just would not work. I could add and update other plugins, just not Akismet. I got error message dealing the the file.php in the wp-admin/includes directory.
I did some research. While this issue was showing up for me on the Akismet plugin, I don’t think it caused the issue. I’m actually not sure what caused the problem, but I did find a fix.
Step One – Add the following line of code to the config file:
define( 'WP_TEMP_DIR', ABSPATH . 'wp-content/tmp/') ;
Step Two – Make a file folder called “tmp” in the wp-content directory. Set the permissions to 755.
Step Three – Add or update the plugin of your choice.