Saturday, March 28, 2020

How to Create Custom Single Post Templates in WordPress

Do you want to create a custom single post template in WordPress?

Custom single post templates allow you to use different layouts for your individual blog posts. Many WordPress themes come with a few different page templates, and you can also create your own if needed.

In this article, we will show you how to easily create custom single post templates in WordPress. We’ll share multiple methods, so you can choose one that works best for your needs.

How to create custom single post template in WordPress

Note: This tutorial requires you to edit WordPress theme files. If you haven’t done this before, then check out our tutorial on how to copy and paste code in WordPress.

When Do You Need a Custom Single Post Template?

Sometimes you may want a different look and feel for certain posts on your website. For instance, you may want to use a different layout for featured articles or stories in a particular category.

This is where you’ll need a custom single post template in WordPress.

By default, WordPress uses the single post template based on WordPress template hierarchy. All themes come with a single.php template which is used as the default for all your single posts.

Some themes may also include additional templates or layout choices that you can use.

It is very much like creating a custom page template. Most WordPress themes also come with page templates that you can use while editing a page in WordPress.

Choosing a page template

Having said, let’s take a look at how to easily create custom single post templates in WordPress. We’ll show you multiple methods, so you can use the one that works best for you.

Creating a Single Post Template in WordPress using The Block Editor

This method does not really create a post template and is limited in flexibility. However, it is the easiest way to save your own single post layouts and then reuse them.

The default WordPress block editor comes with a built-in feature that allows you to save and reuse blocks. One such reusable block is called the Group block.

The group block basically allows you to put several blocks and entire post layouts into one group. You can then save this group block and reuse it in your other posts.

Let’s take a look at how to use the group block to save your custom post templates.

First, you need to create a new post in WordPress. After that, simply add a group block to the content area.

Add group block

Now you can start adding blocks into the group block to create a single post layout. You can add any blocks you want including columns, media and text, cover images, and more.

Add blocks to the group

Once you are satisfied with the layout you have created, you need to take your mouse up and select the group block. Click on the three-dot menu icon and then select the ‘Add to Reusable Blocks’ option.

Add reusable block

Next, you need to provide a name for the reusable block and then click on the Save button. WordPress will now save your reusable block including all the blocks inside the group block.

You can then edit any existing post on your website or create a new one. On the post edit screen, simply click on the add new block button and look for your saved block under reusable blocks.

Reuse block

Add the block to your post and WordPress will load your entire group block with all the blocks and settings as you saved them.

This method allows you to save your custom layouts. However, it does not allow you to change how your theme handles single posts.

If you would like greater flexibility then continue reading.

Creating a Custom Single Post Template in WordPress Using Beaver Builder

The easiest way to create a custom single post template is by using Beaver Builder. It is the best WordPress page builder plugin on the market and allows you to create a post template without writing any code or modify your WordPress theme.

The first thing you need to do is install and activate the Beaver Builder plugin. For more details, see our step by step guide on how to install a WordPress plugin.

Upon activation, you need to visit Settings » Beaver Builder page and switch to the license tab to enter your license key.

Beaver Builder license key

You can find this information under your account on the Beaver Builder website.

By default, Beaver Builder is enabled for Pages in WordPress. You need to make it available for posts as well.

To do that, switch to the Post Types tab under Settings » Beaver Builder page. From here you need to check the box next to the ‘Posts’ option.

Enable Beaver Builder for posts

Don’t forget to click on the ‘Save Post Types’ button to store your changes.

Now that everything is set up let’s create a custom post template.

Simply create a new post in WordPress and on the post edit screen click on the ‘Launch Beaver Builder’ button.

Launch Beaver Builder

This will open the Beaver Builder interface with a live preview of your website. You can start adding modules and rows to your existing layout by clicking on the Add button at the top right corner of the screen.

You can also select a template as a starter point. There is even a blank template to give you clean slate to begin with.

Select a Beaver Builder template

Once you have chosen a template, you can edit it by simple point and click. You can also add rows and columns and fill them with modules and elements to create your custom layout template.

Adding Beaver Builder modules

Feel free to experiment with different modules and play around with their settings.

Once you have created something that you would like to use as your post template. It is time to save it.

Beaver Builder allows you to save your layouts as a template and then reuse them with other posts. Simply click on the menu at the top-right corner of the screen and select Save Template.

Save your custom Beaver Builder post template

You’ll be asked to provide a name for your template. After that click on the Save button to store it.

Name and save the template

Now, let’s see how to use this custom post template when creating posts.

Simply edit a post or create a new one and then launch the Beaver Builder to edit the post.

Next, you need to click on the Add button at the top right corner of the screen and then switch to the Templates tab. From here you need to select ‘Saved Templates’ from the Group dropdown menu.

Load your custom template

Beaver Builder will now load your saved custom layout and you can then start adding content for your new article.

Using Theme Settings for Custom Single Post Layouts

Many popular WordPress themes come with built-in settings to customize the appearance of your single post template.

If your theme supports these settings, then you’ll be able to find them on the post edit screen. The options available may change depending on the theme you are using.

For instance, this is how the Astra theme offers customization options when editing a single post.

Astra theme single post template customization

Using these options, you can change sidebars, hide headers, title, menus, and more.

On the other hand, many of the top WordPress themes come with ready-to-use templates that you can use.

If your theme includes single post templates, then you will find them under the Post Attributes tab while editing a post.

Choosing a template when writing a single post

These templates are complete layouts that you can use.

Manually Creating Custom Single Post Templates in WordPress

This method is a bit advanced as it requires you to edit theme files, copy and paste code, and optionally add custom CSS.

First, you need to open a plain text editor on your computer like Notepad and paste the following code inside it:

<?php
/*
 * Template Name: Featured Article
 * Template Post Type: post, page, product
 */
 
 get_header();  ?>

This code defines a new template called Featured Article and makes it available for post, page, and product post types.

You can save this file as wpb-single-post.php on your desktop.

Next, you need to upload it to your current WordPress theme folder using an FTP client.

After that, you can log in to your WordPress admin area and create or edit a post. Scroll down a little on the post edit screen, and you will notice the new Post Attributes meta box with an option to select the template.

Select your custom post template

You will see your ‘Featured Article’ custom template listed there.

Right now your template is essentially empty so selecting it will simply display a white screen.

Let’s fix this.

The easiest way to do that is by copying the code from your theme’s single.php file and use it as a starting point.

Open the single.php file and then copy everything after the get_header() line.

Paste this code in your wpb-single-post.php file at the end. Now you can save this file and upload it back to your server.

However, this will look exactly the same as your current single post template. You can now start making changes to your custom single post template.

You can add your own custom CSS classes, remove sidebars, create a full-width template or anything you want.

Create Custom Single Post Templates Based on Category

Want to use a custom single post template based on categories? For example, posts in the travel category can have a different layout than posts in photography.

Here is how you can do that.

First you need to add this code to your theme’s functions.php file or a site-specific plugin.

/*
* Define a constant path to our single template folder
*/
define(SINGLE_PATH, TEMPLATEPATH . '/single');

/**
* Filter the single_template with our custom function
*/
add_filter('single_template', 'my_single_template');

/**
* Single template function which will choose our template
*/
function my_single_template($single) {
global $wp_query, $post;

/**
* Checks for single template by category
* Check by category slug and ID
*/
foreach((array)get_the_category() as $cat) :

if(file_exists(SINGLE_PATH . '/single-cat-' . $cat->slug . '.php'))
return SINGLE_PATH . '/single-cat-' . $cat->slug . '.php';

elseif(file_exists(SINGLE_PATH . '/single-cat-' . $cat->term_id . '.php'))
return SINGLE_PATH . '/single-cat-' . $cat->term_id . '.php';

endforeach;
}

This code first checks to see if WordPress is requesting a single post. If it is, then it tells WordPress to look for the template in /single/ folder of your WordPress theme.

Now you need to add template files defined by this code.

Connect to your WordPress hosting using an FTP client or File Manager in cPanel and go to /wp-content/themes/your-theme-folder/.

Inside your current theme folder, you need to create a new folder called ‘single’.

Now you need to open this folder and create a new file inside it. Go ahead and name this file single-cat-{category-slug}. Replace {category-slug} with your actual category slug.

For example, if you have a category called ‘News’, then you will create single-cat-news.php file. If you have a category called ‘Travel Tips’, then create a template single-cat-travel-tips.php, and so on.

Creating single post template for categories

Now, these template files will be totally empty. As a starting point, you can copy the contents of your single.php file from your theme folder and paste them inside each of these templates.

After that, you can edit these templates to make your desired changes.

Once you are done, you can go to your website and view a post. It will use the template that you have created for the category where this post is filed.

Now let’s suppose you have a post filed in two categories News and Travel Tips. WordPress will automatically show the template for ‘News’ because it appears first in alphabetical order.

On the other hand, if you filed a post in a category and didn’t create a template for that category, then WordPress will fallback to the default single.php template of your theme.

Create Custom Single Post Template for Specific Authors

Let’s suppose you want posts written by a specific author to look different on your website. You can do that by using the same technique we showed for categories.

First you will need to add this code to your theme’s functions.php file or a site-specific plugin.

/**
* Define a constant path to our single template folder
*/
define(SINGLE_PATH, TEMPLATEPATH . '/single');

/**
* Filter the single_template with our custom function
*/
add_filter('single_template', 'my_single_author_template');

/**
* Single template function which will choose our template
*/
function my_single_author_template($single) {
global $wp_query, $post;

/**
* Checks for single template by author
* Check by user nicename and ID
*/
$curauth = get_userdata($wp_query->post->post_author);

if(file_exists(SINGLE_PATH . '/single-author-' . $curauth->user_nicename . '.php'))
return SINGLE_PATH . '/single-author-' . $curauth->user_nicename . '.php';

elseif(file_exists(SINGLE_PATH . '/single-author-' . $curauth->ID . '.php'))
return SINGLE_PATH . '/single-author-' . $curauth->ID . '.php';

}

Next, you need to connect to your website using FTP or File Manager in cPanel and then go to /wp-content/themes/your-theme-folder/.

If you haven’t already created a folder called /single/ inside it, then let’s go ahead and create it now.

Inside this folder, you need to create a template using the author’s username in the template name. For example, single-author-johnsmith.php.

This template will be empty, so you can copy and paste the contents of your theme’s single.php template and use it as a starting point.

You can now visit your website to view a post created by the specific author. It will now use the template you created.

That’s all for now.

We hope this article helped you learn how to create custom single post templates in WordPress. You may also want to see our article on how to create a custom WordPress theme from scratch without writing any code.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post How to Create Custom Single Post Templates in WordPress appeared first on WPBeginner.


March 28, 2020 at 04:50PM

Friday, March 27, 2020

9 Best Conference Call Services of 2020 Compared (w/ Free Options)

Are you looking for the best online conference call service for your business?

With the rising trend of remote working, many businesses rely heavily on conference calls, group video calls, and group team chats. There are tons of great free and paid conference call services in the market, but how do you pick the one that’s right for your business?

In this article, we’ll compare the best online conference call services and software to help you manage remote teams, improve communication, and grow your business.

Comparing the best online conference call software

Transparency Disclaimer: WPBeginner content is reader-supported, which means if you click on some of the links in this post, we may earn a small referral fee. Please know that we only recommend products that we use ourselves and/or believe will add value to our readers. See how WPBeginner is funded for more details.

1. Nextiva

Nextiva

Nextiva is one of the best business phone services on the market. It allows you to easily manage conference calls using your virtual business phone number.

Nextiva app works on all devices (Android, iPhone, laptop, and desktop computers). You can use it to receive phone calls on the go, at home, or in the office.

It is perfect for remote teams because Nextiva makes it super easy to add team members and set up call forwarding rules based on departments.

Their audio call quality is excellent, apps are easy to use, and they offer incredible customer support. Their platform also includes CRM, LiveChat, and other wide-range of features you’ll need to manage your business.

The only downside is that their video call feature is a bit limited.

Note: We use Nextiva on WPBeginner for our virtual business phone number. In our experience, Nextiva is the best small business phone system in the market from both features and pricing point of view.

Pricing: $20 per month per user, but if you need unlimited conference calls, then you’ll need their pro plan which starts at $25 per user per month.

2. RingCentral

RingCentral

RingCentral is another popular business VOIP provider that offers conference call services. They offer professional business phone numbers with both audio / video conferencing features.

RingCentral also provide a virtual phone number with mobile apps that allow you to use the same phone number on multiple devices from any location. This works perfectly for remote teams that work from anywhere.

RingCentral platform features include cloud phone, team messaging, conferencing, call-forwarding, auto-greetings, and more.

All RingCentral users can get a free online meeting service, RingCentral Meetings, which lets you have high quality video conference calls with anyone in your team and/or customers.

The free online meetings plan can have up to 100 call participants, comes with screen sharing, but it’s limited to 40 minute calls only.

Pricing: Their basic plan starts at $19.99 / operator per month. You can upgrade to their Office Premium plan $34.99 / month which removes the call restrictions and gives you tons of additional features.

3. Zoom

Zoom

Zoom is a popular online video conferencing and meeting software. If you are only looking for video conferencing and online meeting software, then Zoom is an excellent option.

You can easily set up an online conference call or meeting, and invite your team members by simply sharing a link. It is easy to use and has apps available for all devices including mobile phones.

Zoom offers a free service plan which includes conference calls with up to 100 participants and unlimited 1 on 1 meetings. This is quite enough for most small businesses with remote teams.

The downside of the free plan is that conference calls are limited to 40 minutes duration. This is really frustrating because all attendees will start to see a countdown timer, and at 40 minutes mark, the app will kick everyone out of the meeting room.

Unlike the first two providers in our list, Zoom does not give you a dedicated virtual business phone number. However each Zoom meeting gets a unique dial-in code that participants can use to join via phone, in case they don’t have the app or access to reliable internet.

Pricing: Basic plan is free, but you can upgrade to their paid plan to remove the time limit and unlock other features. Pricing starts from $14.99 / month per host.

Note: Our team uses Zoom for internal team meetings and video calls. Our team leads have the Pro plan, so they can run longer meetings as needed since only the host has to have a Pro account to run unlimited length meetings.

4. G Suite Hangouts / Meet

G Suite

G Suite offers Google Hangout meetings for conference calls and video meetings. It offers secure messaging, chat, audio, and video conferencing for small businesses and teams.

It is also available for free via Google Hangouts apps which also support online conference calls. However, as part of G Suite, you get a professional business email address, cloud storage, Google apps like Calendar, Sheets, Docs, and more.

Unlike some other conference call software on the list, Google Hangouts does not come with a business phone number. Users can join meetings with a dial-in number, but you don’t get any features of proper business phone service.

Pricing: Classic Google Hangouts is free. G Suite’s paid plans start from $6 / month per user. A single G Suite user can run a meeting with up to 100 participants. You can increase the limit to 150 participants (G Suite Business plan), and up to 250 participants on G Suite Enterprise / Education plan.

5. Microsoft Teams

Microsoft Teams

Microsoft Teams is a multi-purpose communication tool for remote teams and small businesses. It comes with text messaging, group chats, channels, file sharing, and audio / video conferencing features.

It is super easy to set up your small business team. Microsoft Teams works on all operating systems and devices including mobile phones.

The basic software is free for all, but you get even more features with Office 365 which is Microsoft’s productivity suite. Office 365 allows you to get a professional business email and all Microsoft Office apps including Outlook, Word, Excel, and more.

Microsoft Teams also does not give you features of a business phone service. If you need to manage customer calls, then you may still need a phone service.

Pricing: The basic Microsoft Teams is free but you can upgrade to Office 365 which starts at $5 per user per month.

6. Skype

Skype

Skype is a popular messaging and audio / video call app. It has been the go-to way to conduct one on one (1:1) conferences and meeting for freelancers, entrepreneurs, and individual users.

It allows you to call local and international phone numbers from your Skype app. You can also get a local phone number from various regions and countries and receive calls on that number.

Skype offers HD video conferencing, screen sharing, call recording, file-sharing, and more. Skype works really great for 1-on-1 calls, but during video conferencing adding more participants degrades the call quality significantly.

Pricing: The basic Skype app is free to use. If you add a phone number or want to make phone calls, then you’ll need to buy upgrades. Pricing varies based on the region and call-rates.

7. GoToMeeting

GoToMeeting

GoToMeeting is another good option for conference calls and online meetings. Their service offers quick online meetings with simple sharing tools allowing all team members to join in using any device.

They have apps for all operating systems including mobile phones, which allows you to conduct meetings on the go.

Optionally, you can also add toll-free numbers to your plan and allow users to dial in to join a conference call.

Pricing: Starting from $12 per organizer per month.

8. Slack

Slack

Slack is the popular productivity and communication app for remote teams. It comes with a built-in audio / video call feature allowing you to make conference calls without leaving the app.

As a team collaboration tool, Slack comes with integrations for many popular productivity apps that your team may already be using, like Asana, Google Drive, Google Calendar, Gmail, Zoom, and more.

Slack does not include a phone service, so if you are looking for conference calls with customers or run webinars, then it cannot do that.

Pricing: Basic free plan limited to 10,000 message history and 1:1 calls. Standard plan starts at $6.67 per user per month.

Note: We use Slack for our internal team chats and group messages. Some of our team members use Slack call features when Zoom or other platforms are not working properly.

9. UberConference

UberConference

UberConference is another great free conference call service to communicate with remote teams and customers.

It is super easy to use. You can simply invite users by sharing a URL, and they don’t need to download anything to join in the call. It works on all devices including mobile phones.

The platform include easy screen sharing, call transcripts, custom hold music, schedule call reminders, and apps for all devices.

It is part of DialPad which allows you to integrate a business phone service to your UberConference plan. You can also integrate it with Slack, G Suite, and Office 365.

Pricing: Free plan allows you to add up to 10 participants. Paid plans start at $15 per organizer per month with up to 100 participants.

Which is The Best Conference Call Service?

All the above-mentioned software platforms allow you to conduct conference calls and online video meetings. However, you need to pick the one that best suits your needs.

If you need a business phone service to manage your audio conference calls, then Nextiva is the best option.

If you want an all-inclusive platform (phone + video conferencing), then RingCentral is the best conferencing call platform.

If you are looking for a standalone video-conferencing service, then Zoom is the best since it allows you to add multiple participants without losing quality.

Slack and Microsoft Teams are both suitable for better team collaboration, text messaging, and file sharing with basic conference call features.

We hope this article helped you find the best online conference call software. You may also want to see our tips on best email marketing services and best live chat software for small businesses.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post 9 Best Conference Call Services of 2020 Compared (w/ Free Options) appeared first on WPBeginner.


March 27, 2020 at 04:28PM

Thursday, March 26, 2020

50 Most Common WordPress Errors and How to Fix Them

While WordPress is really easy to use, there are some common WordPress errors that can make you panic. The good thing is that the WordPress error you are seeing on your site is most likely been reported and resolved by someone before you. At WPBeginner, we have written tutorials on how to fix several popular WordPress errors. In this article, we will cover the 40 most common WordPress errors along with showing you how to fix all of these common WordPress errors.

Fixing common WordPress errors

Important: Before trying to fix any WordPress error, make sure that you have a complete WordPress backup. You can use UpdraftPlus or use this tutorial to manually create a WordPress backup.

In case you are unable to resolve your issue from the steps mentioned in this article, then please contact your WordPress hosting company.

Since this is a lengthy article, we have created a table of contents below for easy navigation.

Table of Contents

  1. How to fix internal server error
  2. This site is experiencing technical difficulties
  3. How to fix syntax error in WordPress
  4. How to fix the error establishing database connection in WordPress
  5. How to fix WordPress white screen of death
  6. How to fix WordPress posts returning 404 error
  7. How to fix sidebar below content error in WordPress
  8. How to fix white text and missing buttons in WordPress visual editor
  9. How to fix WordPress memory exhausted error by increasing PHP memory limit
  10. What to do when you are locked out of WordPress admin area
  11. How to fix WordPress login page refreshing/redirecting issue
  12. How to fix image upload issue in WordPress
  13. How to fix common image issues in WordPress
  14. How to fix “Are you sure you want to do this” error in WordPress
  15. How to fix briefly unavailable for scheduled maintenance error in WordPress
  16. How to fix WordPress not sending email issue
  17. How to fix WordPress RSS feed errors
  18. How to fix 403 forbidden error in WordPress
  19. How to fix error too many redirects issue in WordPress
  20. How to fix “Upload: failed to write file to disk” error in WordPress
  21. How to fix “This site ahead contains harmful programs” error in WordPress
  22. How to fix missed scheduled post error in WordPress
  23. How to fix fatal error: Maximum execution time exceeded in WordPress
  24. How to fix Facebook incorrect thumbnail issue in WordPress
  25. How to fix WordPress keeps logging out problem
  26. How to Fix the Mixed Content Error in WordPress
  27. How to Fix Add Media Button Not Working in WordPress
  28. How to Fix the 502 Bad Gateway Error in WordPress
  29. How to Fix 503 Service Unavailable Error in WordPress
  30. How to Fix the 504 Gateway Timeout Error in WordPress
  31. How to Fix the WordPress Failed to Open Stream Error
  32. How to Fix the WordPress 429 Too Many Requests Error
  33. How to Fix the 413 Request Entity Too large Error in WordPress
  34. How to Turn Off PHP Errors in WordPress
  35. How to Fix Secure Connection Error in WordPress
  36. How to Fix Destination Folder Already Exists Error in WordPress
  37. How to Fix ‘Another Update in Process’ Error in WordPress
  38. How to Fix Password Reset Key Error in WordPress
  39. How to Fix “Missing a Temporary Folder” Error in WordPress
  40. How to Fix Pluggable.php File Errors in WordPress
  41. How to fix common SSL issues in WordPress
  42. How to fix file and folder permissions error in WordPress
  43. How fix HTTP error when uploading images in WordPress
  44. How to fix your connection is not private error in WordPress
  45. How to fix “The link you followed has expired” error in WordPress
  46. How to fix WordPress website not updating right away issue
  47. How To fix “Failed to load resource” error In WordPress
  48. How to fix “Missing a temporary folder” error in WordPress
  49. How to fix “Googlebot cannot access CSS and JS files” error in WordPress
  50. Troubleshooting WordPress errors on your own

Let’s take a look at how to solve the most common WordPress errors (one by one).

1. How to Fix Internal Server Error

Internal server error

Perhaps the most confusing WordPress error that a beginner may come across is “Internal Server Error”, or sometimes “500 Internal Server Error”.

This error usually appears when there is something wrong, but the server is unable to identify where the problem is. Since the error message does not indicate where you should look for the error, it is pretty much up to you to figure this out.

We have compiled a list of solutions that you can try and one of them will help you resolve it. See how to fix internal server error in WordPress.

[Back to top ↑]

2. This Site is Experiencing Technical Difficulties

Site experiencing technical difficulties

WordPress introduced a fatal error protection feature in WordPress 5.2. This feature displays a simple error message stating that “This site is experiencing technical difficulties”.

For full details, WordPress then sends an email notification on your WordPress admin email address. This email message contains a link to access the backend and attempt to fix the error.

WordPress recovery mode

This error message can be triggered by any of the fatal errors mentioned in this article. If you don’t have access to the admin email or can’t get WordPress emails then it becomes harder to find out what error is occurring.

The easiest way to fix this is to make sure that your WordPress admin email address is correct and that you can receive WordPress notification emails. If you can’t get WordPress emails then see our guide on fixing the WordPress not sending email issue.

[Back to top ↑]

3. How to Fix Syntax Error in WordPress

Syntax error in WordPress

This error usually occurs when you are trying to add code snippets into WordPress and have accidentally missed something or the code has incorrect syntax. This will result into a PHP parse error and you will see a notice like:

Parse error- syntax error, unexpected $end in /public_html/site1/wp-content/themes/my-theme/functions.php on line 278

The error message would indicate the unexpected thing found in the code and the location of the script where the error occurred with line number. To fix this issue you will have to correct the syntax. Most of the time it is a missing bracket, or some unexpected character in the code. [Fix syntax error in WordPress]

[Back to top ↑]

4. How to Fix the Error Establishing a Database Connection in WordPress

Error establishing database connection

This error message is clear that your website is unable to connect to the database. However solving this error can be tricky for beginners.

Usually this occurs when a user has entered or modified their database credentials (database host, database username, and database password) incorrectly. Sometimes your database server could be unresponsive, or your database may have corrupted.

However, mostly it is incorrect database login credentials. Take a look at common solutions for this problem. [Fix error establishing database connection in WordPress]

[Back to top ↑]

5. How to Fix the WordPress White Screen of Death

White screen of death error in WordPress

This error usually results into a plain white screen with no error message. This makes it the most puzzling because you have no clue where to look and what to fix.

Most of the time it is caused when a script exhausts PHP memory limit. It can also happen due to a configuration on the server. It is also possible that a user would only see white screen of death on certain sections of their site. [See how to fix WordPress white screen of death]

[Back to top ↑]

6. How to Fix WordPress Posts Returning 404 Error

WordPress posts returning 404 error

The symptoms of this error is that when a user visits a single post on their site they get a 404 page – not found error.

The user can browse all other sections of their site including the admin area. The most common cause of this issue is permalink settings in WordPress. To solve this issue a user would need to reconfigure their permalinks settings or manually update their rewrite rules. [Fix WordPress posts returning 404 error]

[Back to top ↑]

7. How to Fix the Sidebar Below Content Error in WordPress

Sidebar appearing below content

Another common issue beginners face is when the sidebar appears below the content when it is supposed to appear next to the content. This issue is mostly caused by WordPress themes.

Sometimes when users are adding code snippets to their site, they may accidentally forget to close an html div tag or add an extra closing div which may result into breaking the theme layout. Another common cause is using disproportionate width in CSS or not clearing float properly. [Fix sidebar appearing below content error in WordPress]

[Back to top ↑]

8. How to Fix White Text and Missing Buttons in WordPress Visual Editor

Missing buttons in WordPress TinyMCE visual editor

If you’re using the classic WordPress editor, then sometimes buttons from the visual editor may disappear or start showing blank white spaces instead of buttons.

This problem may occur when concatenated JavaScript is not working. It may also caused by missing or corrupt TinyMCE files, or conflict with some other plugin that modifies or extends the TinyMCE shipped with WordPress. [Fix white text and missing buttons in WordPress visual editor]

[Back to top ↑]

9. Fix: WordPress Memory Exhausted Error – Increase PHP Memory

Memory size error

Indications of this error could be a white screen of death, or an error message like this one:

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 2348617 bytes) in /home/username/public_html/site1/wp-includes/plugin.php on line xxx

This error occurs when a WordPress script or a plugin exhausts the default allocated memory size limit. [Fix WordPress memory exhausted error]

[Back to top ↑]

10. What To Do When You Are Locked Out of WordPress Admin (wp-admin)

Locked out of WordPress admin area

Sometimes you may find yourself locked out of the WordPress admin area. This could happen if you forgot your password and don’t have to access to password recovery email.

A plugin or code that incorrectly tries to make some changes into admin section can also lock you out. You may also lose access to admin area due to a hacked WordPress site. [Fix locked out of WordPress admin issue]

[Back to top ↑]

11. How to Fix WordPress Login Page Refreshing and Redirecting Issue

WordPress login redirect error

Symptoms of this issue are that when a user attempts to login to the WordPress dashboard, they are redirected by WordPress back to the login page.

Most of the time it happens due to incorrect values for site url and home url fields in WordPress options table. It can also be caused by poorly configured permalink settings or redirects setup in the .htaccess file. [Fix WordPress login page refreshing and redirecting issue]

[Back to top ↑]

12. How to Fix Image Upload Issue in WordPress

WordPress image upload issues

Sometimes a user would suddenly notice that all the images from their site are gone and are showing broken image placeholders. When the user tries to upload an image to a post using the media uploader, it results into an error.

All these files in the media library will appear as broken. This error occurs due to incorrect file and directory permissions in a WordPress installation. A number of factors may cause this issue. [Fix image upload issues in WordPress]

[Back to top ↑]

13. How to Fix Common Image Issues in WordPress

Common image issues in WordPress

Uploading images to a WordPress site can be confusing for someone new to WordPress. A user may be unable to find out how to align images, resize or crop them, or display them in a gallery format.

This is not an error or issue in WordPress. You just need to familiarize yourself with how WordPress handles media. [Fix common image issues in WordPress]

[Back to top ↑]

14. How to Fix “Are You Sure You Want to Do This” Error in WordPress

Are you sure you want to do this error in WordPress

Users may come across this error in WordPress admin area. The most common cause of this error is a plugin or theme failing to use Nonce properly.

Nonce are special security keys which may be appended to URLs when performing an admin action in WordPress. Sometimes a plugin or theme may use it incorrectly which may result into users seeing this error. [Fix are you sure you want to do this error in WordPress]

[Back to top ↑]

15. How to Fix Briefly Unavailable for Scheduled Maintenance Error in WordPress

WordPress unavailable for maintenance error

Sometimes due to an unfinished or interrupted WordPress update, you might see “Briefly Unavailable for Scheduled Maintenance” error in WordPress.

What happens there is that WordPress puts your site in maintenance mode during an update. If for some reason the update is interrupted, then WordPress does not get the chance to put your site out of the maintenance mode. This error would lock down your entire site and make it unavailable for admins as well as visitors. [Fix briefly unavailable for scheduled maintenance error]

[Back to top ↑]

16. How to Fix WordPress Not Sending Email Issue

Fixing WordPress not sending email issue

The most common symptom of this problem is not receiving any contact form or WordPress notification emails from your site.

This issue is usually caused because most shared hosting providers disable or limit the module used for sending emails to prevent their servers from abuse. [Fix WordPress not sending email issue]

[Back to top ↑]

17. How to Fix WordPress RSS Feed Errors

Fixing RSS feed errors in WordPress

Most WordPress RSS feed errors are caused by poor formatting. You may see errors like these:

XML Parsing Error: XML or text declaration not at start of entity
Location: http://example.com/feed
Line Number 2, Column 1:

Depending on what browser you are using, your RSS feed error message may vary. You can also see this error message when visiting your feed in a browser.

Warning: Cannot modify header information – headers already sent by (output started at /home/username/example.com/wp-content/themes/twentysixteen/functions.php:433) in /home/username/example.com/wp-includes/pluggable.php on line 1228

WordPress outputs RSS feeds in XML which is a strict markup language. A missing line break or an extra tab can break your RSS feed. [Fix WordPress RSS feed errors]

[Back to top ↑]

18. How to Fix 403 Forbidden Error in WordPress

403 Forbidden error

403 Forbidden error code is shown when your server permissions don’t allow access to a specific page. This is why the error is usually accompanied by the text:

403 Forbidden – You don’t have permission to access ‘/’ on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

There are different scenarios when you can see this error. Incorrect file permissions, poorly coded security plugins, or server configuration are the most common culprits. [Fix 403 Forbidden error in WordPress]

[Back to top ↑]

19. How to Fix Error Too Many Redirects Issue in WordPress

Too many redirects error in WordPress

This error usually occurs due to a misconfigured redirection issue. As you know that WordPress has SEO friendly URL Structure which uses the redirect function. Several other popular WordPress plugins also use the redirect functionality as well.

Due to a misconfiguration in any of these redirection tools, your site may end up redirecting users to a URL that is actually redirecting them back to the referring URL. In that case the user’s browser is trapped between two pages causing a redirect loop. [Fix too many redirects issue in WordPress]

[Back to top ↑]

20. How to Fix “Upload: Failed to Write File to Disk” Error in WordPress

Upload failed error in WordPress

This error can occur due to a number of reasons. However, the most common one is incorrect folder permissions.

Each file and folder on your website has a set of permissions. Your web server controls access to the files based on these permissions. Incorrect permissions to a folder can take away your ability to write files on server. This means your web server cannot create or add new files to that particular folder. [Fix Upload: Failed to write file to disk error]

[Back to top ↑]

21. How to Fix “This site ahead contains harmful programs” Error in WordPress

Harmful programs error in Google Chrome

Google marks a website with this warning if they find any suspicious code that could be a malware or trojan. Sometimes the reason for this is that your website is hacked and is now used to distribute malicious code.

Another common reason for this error is showing ads from low quality advertising networks. These networks may sometime display ads linking to websites distributing malicious code. [Fix site ahead contains harmful programs error in WordPress]

[Back to top ↑]

22. How to Fix the Missed Schedule Post Error in WordPress

Missed post schedule

WordPress has this wonderful feature that allows you to schedule posts to be automatically published at a specified time. Most bloggers rely on the future to manage their publishing schedule.

However, sometimes WordPress can miss scheduled posts due to a number of reasons. If this has happened to you more than a few times then you need to address this issue. [Fix missed schedule post error in WordPress]

[Back to top ↑]

23. How to Fix Fatal Error: Maximum Execution Time Exceeded in WordPress

Maximum execution time error in WordPress

WordPress is coded mainly in PHP programming language. To protect web servers from abuse, there is a time limit set for how long a PHP script can run.

Some WordPress hosting providers have set this value to a higher level while others may have set it to a lower level. When a script reaches the maximum execution time limit, it results into maximum execution time exceeded error. [Fix maximum execution time exceeded error in WordPress]

[Back to top ↑]

24. How to Fix Facebook Incorrect Thumbnail Issue in WordPress

Setting Facebook thumbnail in WordPress using Yoast SEO

There are many reasons that can prevent Facebook from correctly guessing the right thumbnail image. One of the most common reason is having multiple images set in the og:image tag where your featured image is smaller than rest of the images.

Facebook uses Open Graph (og) tags, and plugins like Yoast SEO automatically adds them to your site to prevent missing thumbnail issue. [Fix Facebook incorrect thumbnail issue in WordPress]

[Back to top ↑]

25. How to Fix WordPress Keeps Logging Out Problem

WordPress keeps logging out

WordPress sets a cookie in your browser to authenticate a login session. This cookie is set for the WordPress URL stored in your settings section. If you are accessing from a URL that does not match the one in your WordPress settings, then WordPress will not be able to authenticate your session. [Fix WordPress keeps logging out problem]

[Back to top ↑]

26. How to Fix the Mixed Content Error in WordPress

Mixed content errors

Mixed content errors are caused by incorrect HTTPs / SSL settings on your WordPress site. They may or may not affect your website’s functionality, but they can affect your website’s SEO and user experience.

Basically, on an SSL enabled website all resources should be loaded using an HTTPs URL. Your site may have content with HTTP URLs, or a plugin or theme may be loading a file with HTTP. This causes the mixed content error as those resources are not loaded using a secure protocol.

To fix this, you need to find out which resources are loaded insecurely, and then fix their URLs. You can do this with a plugin or you can do this manually as well. [Fix mixed content errors in WordPress]

[Back to top ↑]

27. How to Fix Add Media Button Not Working in WordPress

Add media button not working

Add Media button in WordPress post edit screens uses JavaScript to launch the media library and uploader. However, sometimes a plugin or theme’s code conflict with WordPress core can prevent JavaScript from working.

What happens is that WordPress combines all scripts inside the WordPress admin area to improve performance. A plugin or theme’s script can disrupt this which will make other code in the script stop working. [Fix add media button not working in WordPress]

[Back to top ↑]

28. How to Fix the 502 Bad Gateway Error in WordPress

502 Bad Gateway error

502 Bad gateway error is another puzzling error that may appear on your WordPress website. It is usually caused when a user’s request to a server takes too long to process without giving any other error.

This delay can be a temporary glitch caused by high traffic. It could also be caused by a poorly coded WordPress theme or plugin. Last but not least, a server misconfiguration can also produce this error. [Fix 502 bad gateway error in WordPress]

[Back to top ↑]

29. How to Fix 503 Service Unavailable Error in WordPress

The 503 ‘service unavailable’ error is often caused by an unresponsive PHP script. This could be a WordPress plugin, a theme, or a misbehaving custom code snippet.

It can also be triggered by heavy server load, a server glitch, or a brute force attack. In that case, it could automatically disappear in a few minutes. If it doesn’t disappear, then you would need to troubleshoot and fix it. [Fix 503 service unavailable error in WordPress]

[Back to top ↑]

30. How to Fix the 504 Gateway Timeout Error in WordPress

The 504 gateway timeout error is often caused when a request to your server is processed through a proxy or firewall but fails to connect with the upstream server.

You are more likely to see this error, if you are using a WordPress firewall like Sucuri or Cloudflare. [Fix 504 gateway timeout error in WordPress]

[Back to top ↑]

31. How to Fix the WordPress Failed to Open Stream Error

Failed to open stream error

The ‘Failed to open stream’ error occurs when WordPress is unable to load a file mentioned in website code. Sometimes WordPress will continue loading the site and only show a warning message, while other times it would result in a fatal error.

The error message can be different, depending on where the error is triggered in the code and what caused it. In each instance, failed to open stream phrase would be followed by a reason. For example, permission denied, no such file or directory, operation failed, and more. [Fix the WordPress failed to open stream error]

[Back to top ↑]

32. How to Fix the WordPress 429 Too Many Requests Error

429 too many requests error

The 429 error is a preventive measure to protect servers from abuse. This error is triggered when a bot, script, or a user is making too many requests to the server.

However, if it is not properly configured, then it can block search engines and other APIs from accessing your website. To fix this you will need to find the misbehaving code, plugin, or service that’s causing the error. [Fix WordPress 429 too many requests error]

[Back to top ↑]

33. How to Fix the 413 Request Entity Too large Error in WordPress

413 Request entity too large

Normally, most WordPress hosting companies have their servers configured, so that WordPress users can easily upload large images and other media. However, sometimes this setting is not high enough to upload large theme or plugin files.

It would also stop you from uploading large files in the media library. In that case, you will see a different message, clearly stating that the file size exceeds maximum allowed limit. [Fix 414 request entity too large error in WordPress]

[Back to top ↑]

34. How to Turn Off PHP Errors in WordPress

PHP errors and warnings in WordPress

Your WordPress site may sometimes show errors and warnings inside WordPress admin area or your website. These errors do not stop WordPress from displaying your website. They are helpful in debugging issues but your website will look really unprofessional if it is showing these errors on the front-end.

WordPress comes with easy configuration tricks to control PHP errors and how they are displayed or logged on your website. You just need to turm them off and PHP errors will disappear from your site. [Fix PHP Errors in WordPress]

[Back to top ↑]

35. How to Fix Secure Connection Error in WordPress

Secure connection error in WordPress

WordPress comes with an updates management system which regularly checks for available updates on WordPress.org website. Your website may fail to connect with WordPress.org website, due to a misconfiguration on your hosting server, which will cause the secure connection error.

Updates play an important role in WordPress security and performance. This is why you need to fix this error to resume WordPress updates. [Fix secure connection error in WordPress]

[Back to top ↑]

36. How to Fix Destination Folder Already Exists Error in WordPress

Folder already exists error

This error occurs during the installation of a WordPress theme or plugin. WordPress extracts your plugin or theme’s zip file into a folder named after the file itself.

If a folder with the same name already exists, then WordPress aborts the installation with the following error message.

Destination folder already exists. /home/user/example.com/wp-content/plugins/wpforms/

Plugin install failed.

To fix this, you simply need to delete the existing folder and then continue installation. [Fix folder already exists error in WordPress]

[Back to top ↑]

37. How to Fix ‘Another Update in Process’ Error in WordPress

Another update in process error

This error usually appears during the WordPress core update process. If a user initiates another update process while an update is already underway, then you’ll see this error message.

What happens is that WordPress automatically sets an update lock option in the database. This database option prevents you from running simultaneous updates on your website. This option automatically disappears after a while. However, if it doesn’t or you don’t want to wait, then you can also manually fix it. [Fix another update in process error in WordPress]

[Back to top ↑]

38. How to Fix Password Reset Key Error in WordPress

Password reset key error in WordPress

This error forces the login page to keep refreshing and wouldn’t allow you to save the password reset key. While the front-end of your website works normally, you wouldn’t be able to login and work on your website.

It is caused by the lack of disk space on your WordPress hosting account. Since there is no more disk space, WordPress fails to save new data into the database. The easy way to fix this is to simply delete a few unnecessary files from your website. [Fix password reset key error in WordPress]

[Back to top ↑]

39. How to Fix “Missing a Temporary Folder” Error in WordPress

Missing temporary folder

This error is caused when WordPress does not have access to the folder PHP uses to store temporary files. The error disrupts your WordPress media uploads, plugins, and theme installations.

To fix this error, you will need to define a temporary folder for WordPress to use or ask your WordPress hosting provider to fix it for you. [Fix missing a temporary folder error in WordPress]

[Back to top ↑]

40. How to Fix Pluggable.php File Errors in WordPress

Pluggable.php file error in WordPress

Pluggable.php file contains some core WordPress functions that users and developers can override in their own code. However, if a WordPress plugin or a custom code snippet fails to correctly handle one of these functions, then you will see an error like this one:

Warning: Cannot modify header information – headers already sent by (output started at /home/username/demosite/wp-content/themes/mytheme/functions.php:1035) in /home/username/demosite/wp-includes/pluggable.php on line 1179

Sometimes you would be able to continue working on your site despite the error, sometimes the error would be fatal and make your site completely inaccessible. [Fix pluggable.php file errors in WordPress]

41. How to Fix Common SSL Issues in WordPress

Fixing common SSL issues in WordPress

SSL / HTTPS enabled sites use a unique SSL certificate for identification purposes. If a server is pretending to be on HTTPS, and its certificate doesn’t match, then most modern browsers will warn the user from connecting to the website.

The easiest way to fix this is to ask your WordPress hosting provider to properly install your SSL certificate. For more details and other errors caused by SSL misconfiguration, see our guide on how to fix common SSL issues in WordPress.

[Back to top ↑]

42. How to Fix File and Folder Permissions Error in WordPress

File and folder permissions in WordPress

WordPress needs specific file and folder permissions to work properly. Most WordPress hosting companies already set them up but these permissions could change accidentally or due to a misconfiguration.

You can set these permissions manually by using an FTP client. Simply select all WordPress files and folders and then apply permissions to folders and files recursively.

You will need to set all folder permissions to 755 and all file permissions to 655. For more details, see our article on how to fix file and folder permissions in WordPress.

[Back to top ↑]

43. How to Fix the HTTP Image Upload Error in WordPress

HTTP error when uploading an image

Are you seeing HTTP error when trying to upload images or media to your WordPress website? There are a number of things that could lead to an HTTP error when uploading files using the WordPress media uploader.

Most of the time, this error is a temporary issue and resolves in a few minutes. However, other times it becomes persistent and needs further investigation.

For step by step instructions, see our complete guide on fixing the HTTP image upload error in WordPress.

[Back to top ↑]

44. How to Fix Your Connection is Not Private Error

Your connection is not private

‘Your connection is not private’ error appears on websites using the SSL / HTTPs protocol when your browser is unable to validate the SSL certificate issued by the website.

Most popular browsers will display the error message instead of your website, this results in sudden drop in website traffic and damage to your brand image.

The problem is figuring out the cause of this error. We have prepared a step by step guide to easily fix connection is not private error on your website.

[Back to top ↑]

45. How To Fix “The Link You Followed Has Expired” Error in WordPress

The link you followed has expired

This error usually occurs when you are trying to upload a WordPress theme or a plugin to your website from the WordPress admin area.

WordPress hosting companies put a limit on file sizes you can upload and how long a script can run on a website. If the file you are uploading is large or taking longer to upload, then you’ll see the ‘Link you followed has expired’ error.

Depending on what’s causing the error you need to increase memory limit and file upload size in WordPress. For detailed instructions, see our article on how to fix the link you followed has expired error in WordPress.

[Back to top ↑]

46. WordPress Website Not Updating Right Away Issue

Website not updating

Is your WordPress website not showing the recent changes you made? The most common reason for this issue is caching.

Basically, your browser or WordPress caching plugin temporarily stores a version of each page viewed on your website. This allows them to quickly serve pages instead of requesting a fresh copy from your server.

If your website is not updating right away, then the most likely cause is that you are viewing a cached version. We have compiled a detailed guide that shows how to clear WordPress cache on all popular browsers and caching plugins.

[Back to top ↑]

47. How To Fix “Failed To Load Resource” Error In WordPress

Failed to load resource error

WordPress includes several files when loading any page on your website. Behind the scenes, each page load contains several images, scripts, stylesheets, and more. These files are then loaded by user’s browser.

However, if these files are not found, then you’ll see the “Failed to resource” error in the browser’s Inspect tool.

The easiest solution is to make sure that the file actually exists on your website. However, if that doesn’t work then you need to check your WordPress URLs to make sure they are correct.

For detailed instructions, see our guide on how to fix “Failed to load resource” error in WordPress.

[Back to top ↑]

48. How to Fix “Missing a Temporary Folder” Error in WordPress

Missing a temporary folder

WordPress temporarily stores files in a temporary folder when you are uploading media, upgrading plugins, and themes. If it is unable to create or write in the temporary folder then your uploads fail with the error message ‘Missing a temporary folder’.

To fix this, you need to add the following code in your wp-config.php file.

define('WP_TEMP_DIR', dirname(__FILE__) . '/wp-content/temp/');

After that, you need to connect to your website using an FTP client and create a new folder named ‘temp’ inside the wp-content folder.

For more details, see our guide on how to fix missing a temporary folder error in WordPress.

[Back to top ↑]

49. How to Fix “Googlebot cannot access CSS and JS files” Error in WordPress

Blocked resource error in Google Search Console

Are you seeing crawl errors in Google search console with the message ‘Googlebot cannot access resources”? In order to understand a page, Googlebot needs to view it with the accompanying CSS and JavaScript files.

However, if Google cannot load these files then it would cause errors in your Google Search Console’s coverage report.

The most common cause of this error is users accidentally blocking these resources using .htaccess file or robots.txt. See both files in your website’s root folder to make sure you are not blocking static resources.

For detailed instructions, follow our article on how to fix Googlebot cannot access CSS and JS files error in WordPress.

[Back to top ↑]

50. Troubleshooting WordPress Errors on Your Own

We have covered some of the most common WordPress errors in this article. However, the real power of WordPress comes from thousands of plugins and themes that you can use on your site. Any plugin or theme installed on your site can cause errors.

It could become really hard for beginners to find out what is causing the problem on their site and how they can fix it.

We have compiled complete step by step guide on troubleshooting WordPress errors for beginners. It will help you learn how to diagnose WordPress issues and how to fix them like a pro.

[Back to top ↑]

That’s all, we hope that this guide helped you find and fix the WordPress error that you were encountering.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post 50 Most Common WordPress Errors and How to Fix Them appeared first on WPBeginner.


March 26, 2020 at 04:00PM