Could not create directory /wp-content/upgrade/

When I try to automatically install updates to WordPress or plugins, I receive an error: An error occurred while updating… Could not create directory …/wp-content/upgrade/… My web host runs an Apache environment, and other WordPress websites I own don’t have this problem. I have CHMOD the /wp-content/upgrade folder to both 777 and 2777, without any … Read more

How do I update/upgrade pip itself from inside my virtual environment?

I’m able to update pip-managed packages, but how do I update pip itself? According to pip –version, I currently have pip 1.1 installed in my virtualenv and I want to update to the latest version. What’s the command for that? Do I need to use distribute or is there a native pip or virtualenv command? … Read more

Real automated and unattended wordpress upgrade including plugins

I’m looking for a truly automated way to upgrade wordpress and its plugins, something that i could put in the crontab and configure it to run daily. I have several wordpress plugins (>20) and a multi-site wordpress installation and I don’t want to spend my time doing the upgrades. I am willing to take the … Read more

Upgrade from 5.0.4 to 5.1.1 causes $theme to be null

When we upgrade from 5.0.4 to 5.1.1 the site stops loading. The error message is Fatal error: Uncaught Error: Call to a member function images_path() on null /wp-content/themes/mytheme/header.php on line 49 Line 49 is <?php $theme->images_path(); ?> above it in the same file is global $theme; $theme is created in functions.php as the instance of … Read more

How to prevent redirect to ‘About’ after core upgrade?

In wp-admin/includes/update-core.php we find the following line: add_action( ‘_core_updated_successfully’, ‘_redirect_to_about_wordpress’ ); I want to remove this action, so I created a mu plugin with the following content: <?php # -*- coding: utf-8 -*- add_action( ‘_core_updated_successfully’, ‘t5_no_redirect_after_update’, 0 ); function t5_no_redirect_after_update() { remove_action( ‘_core_updated_successfully’, ‘_redirect_to_about_wordpress’ ); } It does … nothing. I am still redirected. Tested … Read more