Easy Guide to Fix the HTTP Image Upload Error in WordPress

In this article, we will show you how to easily fix the HTTP image upload error in WordPress.

 

What Causes HTTP Error During Media Upload in WordPress?

There are a number of things that could lead to a HTTP error when you are trying to upload files using the WordPress media uploader. Basically, WordPress is unable to figure out the cause and that’s why it displays the generic ‘HTTP error’ message.

The frustrating part is that this error message doesn’t give you any clue as to what may have caused it. This means that you will have to try different solutions to find the cause and fix the error.

That being said, let’s take a look at how to troubleshoot and fix the HTTP error during media upload in WordPress.

1. Make Sure The HTTP Error is Not Temporary

First, you should wait a few minutes and then try uploading your image file again. This error is sometimes caused by unusual traffic and low server resources, which are automatically fixed on most WordPress hosting servers.

If that doesn’t work, then you may want to try uploading a different image file. If the other file uploads successfully, then try saving your original image file to a smaller size and retry uploading.

Lastly, you may want to try saving the file to a different format. For example, change jpeg to png using an image editing software. After that, retry uploading the file.

If all these steps result in the HTTP error, then this means that the error is not caused by a temporary glitch and definitely needs your immediate attention.

2. Increase WordPress Memory Limit

The most common cause of this error is lack of memory available for WordPress to use. To fix this, you need to increase the amount of memory PHP can use on your server.

You can do this by adding the following code to your wp-config.php file.

define( 'WP_MEMORY_LIMIT', '256M' );

This code increases the WordPress memory limit to 256MB, which would be enough to fix any memory limit issues.

3. Change Image Editor Library Used by WordPress

WordPress runs on PHP which uses two modules to handle images. These modules are called GD Library and Imagick. WordPress may use either one of them depending on which one is available.

However, Imagick is known to often run into memory issues causing the http error during image uploads. To fix this, you can make the GD Library your default image editor.

You can do this by simply adding this code to your theme’s functions.php file or a site-specific plugin.

function wpb_image_editor_default_to_gd( $editors ) {
    $gd_editor = 'WP_Image_Editor_GD';
    $editors = array_diff( $editors, array( $gd_editor ) );
    array_unshift( $editors, $gd_editor );
    return $editors;
}
add_filter( 'wp_image_editors', 'wpb_image_editor_default_to_gd' );

After adding this code, you can retry uploading files using the media uploader. If this doesn’t solve the issue, then you can remove this code and try other methods described in this article.

4. Using The .htaccess Method

This method allows you to control how Imagick uses server resources. Many shared hosting providers limit Imagick’s ability to use multiple threads for faster image processing. However, this would result in you seeing the http error when uploading images.

An easy fix is be to add the following code in your .htaccess file:

SetEnv MAGICK_THREAD_LIMIT 1

This code simply limits Imagick to use a single thread to process images.

We hope this article helped you fix the HTTP error during media upload in WordPress.

Easy Guide to Embed a Facebook Video in WordPress

In this article, we will show you how to easily embed a Facebook video and Facebook live video in WordPress.

 

Why Add Facebook Videos in WordPress?

We tell our users that they should never upload videos to WordPress. Instead, we recommend using a video sharing site like YouTube.

While YouTube is currently the world’s largest video hosting platform, Facebook is the biggest social network, and their videos are growing fast.

Recently, Facebook introduced auto-play and Facebook live video features. Marketers all over the world are raving about these features because they increase user engagement and overall reach.

You can also use Facebook videos to increase likes on your Facebook page. For a more immersive social experience, you can add Facebook page plugin, install Facebook comments, and add Facebook like button on your WordPress site.

Having said that, let’s take a look at how to embed Facebook videos on a WordPress site.

Embedding Facebook Videos in WordPress

First, you need to locate the video that you want to embed on your WordPress site.

Next, you need to right click on the video name or date, and then select copy link address.

After that, you need to visit the Facebook embedded video player website and scroll down to the code generator section.

You will need to paste the URL you copied earlier in the ‘URL of video’ field.

Next, you need to click on the get code button which will bring up a popup showing you two boxes of code.

The first part of the code needs to go in your website’s header section. There are multiple ways to add this code to your website.

If you are comfortable editing theme files, then you can add it to your theme or a child theme by simply editing the header.php file and paste it right after the <body> tag.

Alternatively, you can install and activate the Insert Headers and Footersplugin. For more details, see our step by step guide on how to install a WordPress plugin.

Upon activation, you need to go to the Settings » Insert Headers and Footerspage in your WordPress admin and paste the code into the footer box. Click on the save button to store your changes.

Important: You only need to add the first part of the code once. Next time you add a Facebook video, you will only need to copy and paste the second part of the code.

Now return to the Facebook video embedder page and copy the second part of the code.

You can add this code in your WordPress posts, pages, or even a sidebar widget. When adding the code to your posts and pages, you need to make sure to switch to the Text editor, otherwise WordPress visual editor will mess up the code.

You can now visit your website to see the Facebook video in action.

How to Embed Facebook Live Video in WordPress

You can embed the Facebook Live video just like you would embed a regular Facebook video. The only difference here is how to get the URL of your Facebook live video.

Facebook doesn’t allow you to get a URL for your live video before you go live. If you want to simultaneously broadcast the Facebook Live video on your website, then you will need to first go live.

Once you are live, right click on the date and select copy link address to get the live video URL.

Once you have the URL, you can go to the Facebook embedded video playerwebsite and paste the link in the ‘URL of video’ field.

The video embed code generator will now fetch and display a preview of your Facebook live video. You need to click on the Get Code button to continue and follow the instructions described above to add these codes to your website.

Once you have added the Facebook live video code to your site, your users will be able to view the Facebook live video directly from your website as well as their Facebook feeds.

We hope this article helped you learn how to embed Facebook videos in WordPress.

Easy Guide to Blog Anonymously Using WordPress

In this beginner’s guide, we will show you how to easily blog anonymously using WordPress while keeping your personal information safe.

 

Note: This guide is not for journalists or whistle-blowers doing high-risk work. They should use something like TOR or other tools. This is for an average blogger who wants to blog anonymously.

Anonymous Blogging Pros & Cons

There are many users who simply want to blog anonymously to express their opinions. Most of them want to remain anonymous because they fear it may affect how people see them in real lives. Some want to do it just to be more creative.

There are pros and cons to blogging anonymously, and it’s important that you understand them before you start blogging.

Pros of Anonymous Blogging using WordPress

  • Freedom to express your opinions without being judged
  • Protect your personal identity and information
  • Creative and artistic freedom

Cons of Anonymous Blogging Using WordPress

  • Not able to meet with people who follow your blog
  • Limited monetization options, you can still use Google AdSense, but you will have to share your personal information with Google.
  • If someone is really determined, then they can still trace your blog back to you.

That being said, let’s see how to blog anonymously using WordPress.

How to Start an Anonymous Blog using WordPress

There are two types of WordPress websites. First, there is WordPress.com which is a hosted blogging service, and then you have WordPress.org also known as self-hosted WordPress. For comparison, see our guide on the difference between WordPress.com vs WordPress.org.

There are other blogging platforms as well. However, we recommend using self-hosted WordPress.org to have complete control on the privacy and ownership of your website.

You will need a domain name and a website hosting account to start your self-hosted WordPress blog.

We recommend using Bluehost. They are one of the largest hosting companies in the world and an officially recommended WordPress hosting provider. They’re offering our users a free domain and 60% off their web hosting.

For details, see our article on how to start a WordPress blog with complete step by step instructions.

After you have installed WordPress, let’s make it anonymous.

Using Whois Privacy

When you purchase a domain name, you are required to provide contact information, like name, address, phone number, and email address. This information is publicly accessible and anyone can look up for it.

To protect customer’s privacy, many domain name providers offer a service called Whois privacy. For a small fee, this service displays their contact information instead of yours. If someone sends an email to the address displayed on WHOIS privacy page it will be forwarded to you.

You can purchase domain privacy during the set up on most hosting companies. For example, Bluehost provides you an option to do so during the sign up. We normally don’t recommend it due to the additional cost, but since you want to create an anonymous blog, you would want to check this option.

If you didn’t purchase it during set up, then you can always enable it from your hosting account’s dashboard under the domains section.

Using a Blogging Email Address

Next step is to create a new email account to use for your WordPress website, and your author profile in WordPress. You can use a free email service provider like Gmail or use a more private email service like Proton Mail.

After you have created an email account, you need to add it as a WordPress administrative email address. This email address is used to send WordPress notification emails.

You can do this by going to Settings » General page in the WordPress admin area and add your new email address there.

Don’t forget to click on the save changes button to store your settings.

Next, you need to add the same email address to your author profile page. Simply go to the Users » Your Profile page and add the email address under your contact info.

Don’t forget to click on the Update Profile button to save your changes.

You can also use gravatar to display an anonymous profile picture next to your author bio under your blog posts.

Tip: If you are not receiving WordPress emails, then see our guide on how to fix WordPress not sending emails issue.

Using a Psuedonym for Anonymous Blogging

You will need to choose and use a pseudonym on your blog. For better WordPress security, you cannot just use admin as your username or author name. You will need to think of a different nickname that you can use to sign your posts.

To add your pseudonym, you need to visit Users » Your Profile page and add the name next to the Nickname field. After entering your nickname, click on the drop-down menu next to ‘Display name publicly as’ option and select your nickname.

It’s important that you don’t add your real first and last name in this user profile.

Don’t forget to click on the Update Profile button to save your changes.

Using a VPN

VPN is a Virtual Private Network that helps you secure your internet connection and protect your identity.

Normally, all your internet traffic travels through different servers spread across the world. Hackers and governments can spy on this traffic and see what you are doing online.

VPN acts as a network between your computer and outside world. All your internet traffic goes to a VPN service where it is encrypted and sent to the destination using a random server in a different geographic location.

Here is a list of the best VPN service providers. We recommend using IPVanish. They offer military grade encryption with hundreds of servers. They also have the easiest software to turn on VPN with the click of a button on any device including laptops, tablets, and mobile phones.

We hope this article helped you learn how to blog anonymously using WordPress.

Easy Guide to Create Your Company Org Chart in WordPress

In this article, we will show you how to create a company org chart in WordPress.

 

What is an Organizational Chart and Why is it Important?

An organizational chart present a company’s hierarchical structure based on job title and responsibilities, from top management to the executives.

It helps improve your brand’s reputation by showing the human side of your business. At the same time, it also allows users to find who they should contact for various business opportunities, feedback, and suggestions.

 

That being said, let’s take a look at how to easily create and manage a company organization chart in WordPress.

Creating an Organization Chart in WordPress

First thing you need to do is install and activate the Easy Org Chart plugin. For more details, see our step by step guide on how to install a WordPress plugin.

Upon activation, you need to visit Easy Org Chart » Add New from your WordPress admin area to create a new org chart.

First, you need to provide a title for your chart. After that, your need to scroll down to the Build your Org Chart section to start adding team members.

In the first column, you will need to add details of your team members like their name, job title, profile picture, and contact information.

Next, you need to click on Add a person button to add another team member. Go ahead and repeat the process to add all team members that you want to show in your org chart.

You can drag and drop team members to the right or left in the WordPress admin area. You will also need to define the upper hierarchy and row number for each team member according to your company’s hierarchical structure.

After adding team members, you need to scroll down to advanced styling section. From here, you can configure how the chart should appear. You can choose the container size, corners, background color, box template, field styling, and more.

Once you are done with styling, click on the Publish button to save your changes.

To display your org chart on your website, you need to visit the Easy Org Chart page in WordPress admin to copy the shortcode.

You can now paste this shortcode in any WordPress post, page, or sidebar widget to display your organization chart.

It would be a good idea to add a contact form below your org chart in WordPress. We recommend using WPForms because it’s the best contact form plugin in the market. They also allow users to select recipients in WordPress contact form.

We hope this article helped you learn how to create a company org chart in WordPress.

Easy Guide to Fix Add Media Button Not Working in WordPress

In this article, we will show you how to easily fix the ‘Add Media’ button not working issue in WordPress.

 

What causes the WordPress ‘Add Media’ Button to Stop Working?

This problem is commonly caused by conflicting scripts or stylesheets loaded by WordPress plugins or themes installed on your site. The default behavior of WordPress is to load all required scripts and stylesheets by combining the requests.

This is usually done in the WordPress admin area to improve performance and speed.

The WordPress post editor uses JavaScript for all buttons on the screen including the add media button. A conflict can stop JavaScript from working which will disable the ‘Add Media’ button.

That being said, let’s take a look at how to troubleshoot and fix the ‘Add Media’ button not working in WordPress.

Fixing Add Media Button Not Working Issue in WordPress

The quick fix is to add the following code to your wp-config.php file. You can do this by editing wp-config.php file and adding this code just before the line that says ‘That’s all, stop editing! Happy blogging’.

1
define('CONCATENATE_SCRIPTS', false );

This code simply tells WordPress to load each script separately which helps avoiding a JavaScript conflict with buggy scripts and the core WordPress features.

After you have added the code, go ahead and the visit post edit screen to see if the add media button is working as expected.

Note: Adding this code is not a proper long-term solution because you still have a script that is causing the issue. An easier way to find the source of the problem is by using the inspect tool. It will show you console errors which can lead you to the source of the conflict.

If you want a long-term fix for this issue, then you need to perform the basic WordPress troubleshooting tips to figure out which plugin or theme may be causing the issue.

We strongly recommend that you do this on your staging site instead of a live site. Here’s a step by step guide on how to create a WordPress staging site. All the best WordPress hosting companies like Bluehost, SiteGround, WP Engine, and Liquid Web offer 1-click staging functionality.

On your staging site, you need to start by deactivating all your WordPress plugins and then check if it fixed the ‘Add Media’ button. If it does, then this means one of the plugins was causing the issue.

You can now activate the plugins one-by-one, and after activating a plugin check the ‘Add Media’ button. This will help you find out which plugin is causing the issue. After you find the culprit, you can replace it with another plugin or ask plugin author for help.

If deactivating plugins doesn’t solve the issue, then the next step is to temporarily switch to a default WordPress theme like Twenty Seventeen.

If switching to the default theme fixes the issue for you, then this means your theme is causing the conflict. You can ask theme author for support or switch to a different WordPress theme.

Once you find the source of the problem on your staging site, then you can apply the fix on your live WordPress site.

We hope this article helped you learn how to fix add media button not working in WordPress.

Easy Guide to Use Google Matched Content to Show Related Posts in WordPress

In this article, we will show you how to easily use Google Matched Content to show related posts in WordPress.

 

What is Google AdSense Matched Content?

Google AdSense Matched Content is a native ad unit that allows you to show related posts from your website. You also have the option to monetize this unit with relevant ads that are shown alongside your related posts.

Here’s how the Matched Content unit looks like:

You can customize the look and feel of the widget to match your website layout, and it is 100% responsive (mobile-friendly).

You might be wondering what are the Pros and Cons of using Google Matched Content unit?

Pros:

  • Less Server Resources – By default, WordPress related posts plugins are resource intensive. By using Matched Content widget from Google, you’re offloading the server load to them.
  • Better Related Posts Algorithm – Google’s sophisticated algorithm shows a post that’s more relevant to the person viewing.
  • Monetization – This is another way for you to make money from your blog.

Cons:

  • Powered by Logo – Google displays a powered by link in Matched Content Unit which some might find unattractive.

Now that you know what is Google Matched Content, let’s take a look at how to add it in your WordPress site.

Getting Started with Google Matched Content

First thing you will need to do is sign up with Google AdSense program if you haven’t already done so.

Google AdSense allows you to make money online from your WordPress blog. You can see our guide on how to properly add Google AdSense in WordPressfor detailed instructions.

Google Matched Content feature is available for websites meeting a certain traffic requirement.

To see if your website meets the requirement, you need to visit your Google AdSense dashboard and click on Settings » My Sites from the left menu.

If you can see the ‘Matched Content’ option there, then you are good to go. Otherwise, your site or sites do not meet the requirements for matched content.

That being said, let’s see how to easily add Google Matched Content to show related posts in WordPress.

Adding Google Matched Content in WordPress

First, you need to login to your Google AdSense account, click on My Ads from the left menu, and then click on the ‘New Ad’ button.

Next, you need to select ‘Matched Content’ as your ad type.

On the next screen, you will see a preview of your Matched Content box with the ad settings. On the right hand side, you will see the option to customize the unit settings.

You will also see the option to monetize the matched content unit with ads, so you can make money. Of course, you can choose not to show ads and only use Matched Content for related posts.

Once you are done with the settings, simply click on the ‘Save and Get Code’ button.

You need to copy your ad code and paste it in a plain text editor like Notepad or TextEdit because you will need it in the next step.

Displaying Matched Content Related Posts in WordPress

The most effective place to display related posts is below your individual posts. Many WordPress themes already come with a widget area or sidebar that appears below post content and before comments area.

However, if your theme does not have a widget area below single post content, then you can add one by following our guide on how to easily add after post widget area in any WordPress theme.

After that, you need to visit Appearance » Widgets page and drag the ‘Custom HTML’ widget to the after post widget area. Inside the widget, you need to paste your Matched Content ad code that you copied in the previous step.

Add Matched Content code here

Don’t forget to click on the save button to store your widget settings. You can now visit your website to see the Matched Content related posts in action.

You can now visit your website to see the Matched Content box in action.

We hope this article helped you learn how to easily add Google Matched Content related posts in WordPress.

Easy Guide to Fix the 413 Request Entity Too large Error in WordPress

Fix the 413 Request Entity

In this article, we will show you how to easily fix the 413: request entity too large error in WordPress.

 

What Causes WordPress 413 Request Entity Too Large Error?

This error usually happens when you are trying to upload a file that exceeds the maximum file upload limit on your WordPress site.

Your web server will fail to upload the file, and you will see the 413 request entity too large error page.

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 media library. In that case, you will see a different message, clearly stating that the file size exceeds maximum allowed limit.

That being said, let’s take a look at how to fix the the WordPress 413 request entity too large error.

Fixing 413 Request Entity Too Large Error in WordPress

There are multiple ways to fix the request entity too large error in WordPress. We will cover all these methods, and you can try the one that works best for you.

Method 1. Increase Upload File Size Limit via Functions File

Simply add the following code to your theme’s functions.php file or a site-specific plugin.

@ini_set( 'upload_max_size' , '64M' );
@ini_set( 'post_max_size', '64M');
@ini_set( 'max_execution_time', '300' );

You can increase the values in upload_max_size and post_max_size to be more than the file you are trying to upload. You will also need to increase the max_execution_time to the time you think it would take for the file to upload. If you are unsure, then you can try doubling this value.

Method 2. Increase Upload File Size Limit via .htacces File

For this method, you will need to edit the .htaccess file and add the following code at the bottom:

php_value upload_max_filesize 64M
php_value post_max_size 64M
php_value max_execution_time 300
php_value max_input_time 300

To learn more about increasing file upload size limit, see our guide on how to increase the maximum file upload size in WordPress.

Method 3. Manually Upload File via FTP

If the 413 error only occurs when you are uploading one particular file, then you may want to consider uploading the file manually via FTP.

If you are trying to upload a WordPress theme, then see our guide on how to install a WordPress theme and jump to the ‘Installing a WordPress theme using FTP’ section.

If you are trying to upload a plugin, then see our guide how to install a WordPress plugin and jump to ‘Manually install a WordPress plugin using FTP’ section.

For other files, see our guide on how to manually upload WordPress files using FTP.

We hope this article helped you learn how to fix the WordPress 413 request entity too large error. You may also want to see our list of the most common WordPress errors and how to fix them.

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.