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?)

3. Change your WordPress folder permissions to 775:

(What is directory permission 775?)

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

(What is file permission 660?)

5. Try updating WordPress again

It should work now.

How to reset your WordPress password using phpMyAdmin

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

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

 

How to create your own custom shortcodes in WordPress

‘Maintenance Mode’ plugin for WordPress

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

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

[Read more…]

How to create a child theme in WordPress

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.

[Read more…]

Using Pods Framework for custom post types & taxonomies in WordPress

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