Select Page

WooCommerce Place Order not working – Forced HTTPS Error solution

Jul 13, 2015 | Wordpress Tricks, WordPress Troubleshooting

I have a client whose site uses WooCommerce for their shopping cart. After performing a major WooCommerce update, orders would not go through for logged in administrators (which is annoying especially when testing orders). The checkout page looked normal, everything seemed fine, until I clicked the Place Order button. I was then scrolled back up to the top of the page, and given the message “We were unable to process your order, please try again”. If I refresh the page, I have been logged out of my account. This is the source of the issue – the force logout. WooCommerce can’t place the order because somewhere during the order placement process it encounters a problem between being on a forced HTTPS (secure) page, and communicating with a non-HTTPS (unsecure) admin page.

So, to solve the problem, you will want to edit your wp-config.php file found in your website’s root directory (you want to be accessing your site files via FTP or SFTP, or File Manager from your hosting dashboard). Download the wp-config.php file to your computer and open it in a text editor program (I use TextWrangler, you can pretty much use anything – just don’t use Microsoft Word!).

Find a blank line, hit enter, and paste in the following:



/* forcing SSL for admin area to solve issue of being logged out when placing woocommerce order logged in as admin */
define('FORCE_SSL_ADMIN', true);


 

Save the file, and now re-upload it to your website files via FTP or SFTP (or File Manager). You will want to overwrite the file on the server.

Here’s a link to the WordPress Codex’s article on forcing SSL in the admin area

That should solve your issue about being logged out of your wordpress admin account when trying to place an order via WooCommerce!

We are pleased to have been named one of the top eCommerce web design companies for 2020.

1 Comment

  1. Abhey

    Place your order button is not appearing on checkout page

    Reply

Submit a Comment

Your email address will not be published. Required fields are marked *

how-to-choose-a-wordpress-theme-thumbnail

How To Choose A WordPress Theme For Your Website

In this guide you'll learn four tips to make choosing a WordPress theme a bit easier. This is a 5 page guide with an approximately 4 minute read.

How To Pick A WordPress Theme For Your Website • Download the Guide

How-to-choose-a-wordpress-theme-thumbnail-sm 5 page guide • 4 minute read

In this guide you'll learn four tips to make choosing a WordPress theme a bit easier.

Powered by ConvertKit

Success! Check your email for the guide.

where-to-host-thumbnail

Where To Host Your WordPress Website and Why It Matters

In this guide we discuss what makes 'good hosting' including security, speed, and support. We tell you who we use and why, and give you a coupon! YAY COUPONS! This is a 45 page guide with an approximately 3 minute read.

How To Pick A WordPress Theme For Your Website • Download the Guide

How-to-choose-a-wordpress-theme-thumbnail-sm 5 page guide • 4 minute read

In this guide you'll learn four tips to make choosing a WordPress theme a bit easier.

Powered by ConvertKit

Success! Check your email for the guide.

8-next-level-plugins-cover

8 WordPress Plugins That Can Take Your Website To The Next Level

For our business clients, we install some specialized WordPress plugins. Get our list of the 8 next level plugins we love and the use case for each. 

How To Pick A WordPress Theme For Your Website • Download the Guide

How-to-choose-a-wordpress-theme-thumbnail-sm

5 page guide • 4 minute read

In this guide you'll learn four tips to make choosing a WordPress theme a bit easier.

Powered by ConvertKit

Success! Check your email for the guide.