WordPress update “cannot be installed because we will be unable to copy some files”

If you receive the following error when trying to update WordPress, you’ve probably got your file permissions set incorrectly:

If you have SSH root access to your server, this will likely solve your problem:

1. Navigate to your base WordPress installation folder.

This is folder contains your wp-config.php file and subfolders /wp-admin, /wp-content and /wp-includes.

For example, if your WordPress installation directory is /var/www/html you would type:

2. Change your WordPress file permissions to 664:

(What is file permission 664?)

2. Change your WordPress folder permissions to 775:

(What is directory permission 775?)

3. Change the permissions of your wp-config.php file to 660:

(What is file permission 660?)

4. Try updating WordPress again.

How to reset your WordPress password using phpMyAdmin

What to do when you’re locked out of your WordPress admin panel.

If you’re no longer able to access your WordPress admin panel because you’ve forgotten or lost your password, fear not; you can reset it by manually editing your SQL database with phpMyAdmin.

  1. Using phpMyAdmin, locate your WordPress database. If you’ve got many WP databases and are unable to figure out which one it is, look at the “wp-config.php” file in the root folder of your WordPress directory and find the line that looks like this: define(‘DB_NAME’, ‘xxxxx’);
    Your database name will be in place of the xxxxx.
  2. Open the database in phpMyAdmin and click on the wp_users table to see the list of WordPress users.
  3. Click on “Edit” on the line representing the user whose password you want to reset.
  4. Edit the user_pass value. IMPORTANT: You cannot type the password in plain text; you’ll need to generate your password using an MD5 hash generator. Go to one of the sites listed below, type in the password you want to use, generate the MD5 hash, and copy & paste that value it into the user_pass field in phpMyAdmin.
  5. Save, and you’re done!

MD5 Hash Generators:
Miracle Salad MD5 Hash Generator
Free Formatter
MD5Hasher.net

 

How to embed a free IRC (Internet Relay Chat) chat room on your website

Despite being created in the 80s, IRC (Internet Relay Chat) is still the way to go. Lots of free servers, client apps, embeddable clients, automation scripts and more.

I recommend using Kiwi IRC because it’s easy, responsive, looks great (has 4 themes), easy authentication, and more.

Kiwi IRC

  1. Go to https://kiwiirc.com/embedding
  2. Enter IRC server address.   If you don’t know what to put, use: irc.freenode.net
  3. Enter a channel name.   Must start with a # character (e.g. #twat)
  4. Click on “Generate My Code” button.
  5. Copy and paste the generated HTML code into any html document.  (Choose Text mode if using WordPress)

Generated HTML:

And voila:

Or you can choose a different theme when generating the code, for example:

IRC LINKS:

Official Kiwi IRC Site – kiwiirc.com
IRC Search engine – irc.netsplit.de

 

‘Maintenance Mode’ plugin for WordPress

Coming soon: How to to display a static html maintenance / under construction page on a live WordPress site using this WP plugin from Acurax.

Coming soon.

This plugin works great, lets you display maintenance page by user role (e.g., no maintenance page for admins/authors) and allows you to use a static HTML page.

Download Under Construction/Maintenance Mode plugin by Acurax.

Enable (or disable) the mod_rewrite module on Apache2 web server on Ubuntu 12.04

For “pretty” Permalinks to work properly in WordPress, the mod_rewrite module on the Apache2 webserver needs to be enabled.

Enable mod_rewrite module using ‘a2enmod’ (Apache2 Enable Module tool) with sudo permissions:

Output:
Then restart Apache to activate:

That’s it!

If you ever need to disable this module:

Disable mod_rewrite module using ‘a2dismod’ (Apache2 Disable Module tool) with sudo permissions to disable “rewrite”:

Output:
And then restart Apache to activate the changes:
 

How to display ‘Now Playing’ ticker from an Icecast server on website

Step by step guides for displaying a “Now Playing” / “Currently Playing” ticker on your website (WordPress or otherwise) from an Icecast streaming server using PHP, JavaScript & HTML/CSS

Continue reading “How to display ‘Now Playing’ ticker from an Icecast server on website”

How to create a child theme in WordPress

It’s important to create a child theme in WordPress. It lets you modify your theme without losing your changes each time the theme is updated.

Why do I need a child theme?

If you’ve modified any of your theme’s files directly, you’ll lose any changes you’ve made when your theme is updated. By using a child theme, you can override your theme’s settings without running the risk of losing your work.

Continue reading “How to create a child theme in WordPress”

Using Pods Framework for custom post types & taxonomies in WordPress

Create new post types (like “Posts”) and taxonomies (like “Categories” and “Tags”) to create new types of content. For example, you could create a “DJ Mixes” post type with “DJs” and “Genres” taxonomies.

The Pods Framework is an open-source, GPLv2+ licensed PHP project. The goal was to create an interface and PHP codebase to easily create, extend, and manage content types within WordPress. While the normal WordPress content architecture is limited to the built-in tables, a primary feature of Pods allows you to base content types off of their own custom tables designed around each content types’ needs.

The Pods Framework allows an ordinary user or developer to easily create and extend custom post types, content types, taxonomies, users, media, or comments — helping you keep your content organized and speed up the development of your project.

Pods starts as a blank slate, as most frameworks do. The control is put into the hands of the developer to mould it into what is needed, without the fluff. Much of Pods’ functionality is coupled with a UI for easy administration, however, there are large portions of the codebase that can be optionally used for advanced implementations or specific project needs. You control everything while Pods Framework does the behind-the-scenes heavy lifting.

 

Pods Framework Official Site