How to Fix 'Another Update in Process' Error in WordPress
"Another update currently in process" error stops you from updating WordPress. Normally, it should automatically go away. But if it doesn't, then there are some easy methods for fix that. Here, I am going to show you how to fix 'Another update currently in process' error in WordPress.
Why 'Another Update in Process' Error Occurs?
This error message usually appears when a core WordPress update is running in the background and a user tries to initiate another update process.
During the core update process, WordPress automatically sets an update lock option in the database. This database option prevents your from running simultaneous updates on your website.
This error message is set to automatically disappear in 15 minutes or when the update process has finished. However, if you are stuck on that error or don't want to wait, then you can manually reset it.
Let's take a look at how to fix this error in WordPress.
Fixing Another Update in Process Error
To quickly get rid of 'another update in process' message, you need to delete the core_updater.lock option from your WordPress database. We will show you how to do that using two different methods. You can choose any method from following methods that works best for you.
Method 1: Fix Another Update in Process Error Using a Plugin
Firstly you need to do is install and activate the Fix Another Update In Progress plugin.
After activation, you need to visit Settings >> Fix Another Update In Progress page. If updates on your website are locked, then you will see a message with a button to fix it:
Simply click on 'Fix WordPress Update Lock' button to continue.
The plugin will delete the WordPress core update lock option from your database, and you will see a success message like this:
Method 2. Manually Fix Another Update in Process
This method requires you to use phpMyAdmin to directly run a query in your WordPress database.
First you need to open the cPanel dashboard of your WordPress hosting account. Under the database section, click on the phpMyAdmin icon.
After that you need to select your WordPress database in phpMyAdmin. This will show you all the tables inside your WordPress database. You now click on the Browse button next to the WordPress options table (wp_options).
This will show you all the rows inside the options table. You need to find the row with the option name 'core_updater.lock' and click on the delete button next to it.
PhpMyAdmin will now delete the row from your WordPress database.
You can switch back to your WordPress website and proceed with updating your WordPress website.
I hope this article helped you fix this error on your WordPress site.
How to Disable the Search Feature in WordPress
Do you want to disable the search feature in WordPress? Sometimes your site may not need the search feature and the search form in your theme may interfere with user experience. During this article, it has been clearly expressed that how to easily disable the search feature in WordPress.
Why and Who Should Disable Search Feature in WordPress?
Many WordPress websites are simple business websites with a few pages. There is also a growing trend of one-page websites with vertical navigation.
These websites does not have much content which makes search form a novelty item and not a useful feature.
It also gives users the impression that there might be some other information that they can't see and hence the search option. Removing search feature will clean up your website and offer a better user experience.
That being said, let's take a look at how to easily remove search feature from your WordPress site.
Method 1. Remove Search Feature in WordPress Using a Plugin
This method is easier and is recommended for all users.
First thing you need to do is install and activate the Disable Search plugin.
The plugin works out of the box, and there are no settings for you to configure.
After activation, it will remove search form from your WordPress theme and disable the search widget. If a user directly tried to enter a search query URL, the plugin will return a 404 error page.
Note that this plugin does not affect the search functionality inside the WordPress admin area. You can still search posts and pages inside your WordPress admin.
Method 2. Manually Disable Search Feature in WordPress
This method requires you to add code to your WordPress files.
You will need to add this code to your theme's functions.php file or a site-specific plugin.
function wpb_filter_query( $query, $error = true ) {
if ( is_search() ) {
$query->is_search = false;
$query->query_vars[s] = false;
$query->query[s] = false;
if ( $error == true )
$query->is_404 = true;
}
}
add_action( 'parse_query', 'wpb_filter_query' );
add_filter( 'get_search_form', create_function( '$a', "return null;" ) );
function remove_search_widget() {
unregister_widget('WP_Widget_Search');
add_action( 'widgets_init', 'remove_search_widget' );
This code will simply redirect all direct or indirect search queries to a 404 page. It will also hide the search form in your WordPress theme.
I hope this article helped you learn how to easily disable search feature in WordPress.
How to Install WordPress in a Subdirectory (Step by Step)
Would you like to install WordPress in a subdirectory? Installing WordPress in a subdirectory allows you to run multiple WordPress instances under the same domain or even a subdomain name. During this article, it has been clearly expressed that how to install WordPress in a subdirectory without affecting the parent domain name.
Subdomain vs Subdirectory? Which One is Better for SEO?
Normally, you would want to start a WordPress website on its own domain name (for example,wordpress.com). However, sometimes you may want to create additional websites on the same domain name.
This can be done by either installing WordPress in a subdomain (http://newebsite.example.com) or as a subdirectory (http://example.com/newwebsite/).
One question that we get asked is which one is better for SEO?
Search engines treat subdomains differently from root domain names and assign them rankings as a totally different website.
On the other hand, sub-directories benefit from the domain authority of the root domain thus ranking higher in most cases.
An easier way to create separate WordPress sites in both subdomain or subdirectory is by installing WordPress multisite network.
However, if you want to keep two websites managed separately, then you can install different instances of WordPress.
That being said, let's take a look at how to install WordPress in a subdirectory.
Step 1. Create a Subdirectory under The Root Domain Name
First of all you need to create a subdirectory or folder under your root domain name. This is where you will install WordPress files.
Connect to your WordPress hosting account using a FTP client or File Manager in cPanel.
Once connected, go to the root folder of your website. Usually it is the /public_html/ folder. If you already have WordPress installed in the root folder, then you will see your WordPress files and folders there.
Next, you need to right click and select 'Create new directory'from the menu.
You need to be careful when choosing the name for your subdirectory. This will be part of your new WordPress site's URL and what your users will type in their browsers to reach this website.
For example, if you name this directory travel-guides then your WordPress website's address will be:
http://example.com/travel-guides/
Step 2. Upload WordPress Files
Your newly created subdirectory is empty at the moment. Let's change that by uploading WordPress files.
First you need to visit WordPress.org website and click on the download button.
Your browser will now download the zip file containing the latest WordPress software to your computer.
After downloading the file, you need to select and extract it. Mac users can double click the file to extract it and Windows users need to right click and then select Extract All'.
After extracting the zip file, you will see 'wordpress' folder containing all the WordPress files.
Now let's upload these files to your new subdirectory.
Connect to your website using a FTP client and go to the subdirectory you created in the first step.
In the local files panel of your FTP client, go to to the WordPress folder you just extracted.
Select all files in the WordPress folder and then upload them to your new subdirectory.
Step 3. Create New Database
WordPress stores all your content in a database. You need to create a new database to use with your new WordPress site installed in a subdirectory.
First, you need to login to the cPanel dashboard of your WordPress hosting account. Click on 'MySQL Databases' under the databases section.
On the next screen, you need to provide a name for your new database and then click on 'Create Database' button to continue.
Your cPanel dashboard will now create the new MySQL database. In order to use this database you need to create a MySQL username.
Scroll down to MySQL Users section and provide a new username and password. Click on 'Create User' button to continue.
Next, you need to give this newly created user privileges to work on the database you created earlier.
Scroll down to 'Add user to database' section. Select your MySQL username and then select your newly created database.
Click on Add button to continue.
Cpanel will now grant the MySQL user full privileges on your newly created database.
Step 4. Install WordPress
Now that everything is in place, you can go ahead and install WordPress. Simply visit the directory you created earlier in a web browser by typing the URL like this:
http://example.com/your-subdirectory-name/
This will bring up the WordPress installation wizard. First you need to select the language for your WordPress website and click on the continue button.
Next, you will be asked to provide your WordPress database name, database username, password, and host. Enter the database details and click on the submit button.
WordPress will now connect to your database and you will see a success message like this:
Click on 'Run the install' button to continue.
On the next screen, you will be asked to provide a title for your website and choose an admin username, password, and email address.
After entering your website details, click on 'Run install'button to continue.
WordPress will now set up your website and will show you a success message:
You can now go ahead and login to your new WordPress website installed in the subdirectory.
Step 5. Fix Permalinks
If you have a separate WordPress install in the root directory, then the .htaccess files of your subdirectory will cause conflict. This will result in 404 errors on your website.
To solve this, you need to edit the .htaccess file in your subdirectory WordPress install. Replace the code inside your .htaccess file with the following code:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /your-subdirectory/
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /your-subdirectory/index.php [L]
</IfModule>
# END WordPress
Don't forget to replace /your-subdirectory/ with your own subdirectory name.
I hope this article helped you install WordPress in a subdirectory.
-
Recently one of my readers asked me how to include category and subcategory in WordPress URLs. Categories and subcategories allow you to s...
-
Do you want to disable the search feature in WordPress? Sometimes your site may not need the search feature and the search form in your them...
PHP Tutorial
PHP is the most popular server-side scriptiong language for creating dynamic web pages. PHP stands for Hypertext Preprocessor. PHP is a ver...























