Problems from updating wp_siteurl to HTTPS
-
Helping my buddy work on his website. Just got the SSL certificate for the site to be able to use Stripe’s payment interface through the Woo Commerce subscriptions plugin, which requires the certificate for security.
Kept getting an error message on the Checkout page regarding an SSL certificate, even though the Checkout page was ‘forced’ by the plugin to be HTTPS. Finally figured out that the Cart page (which immediately precedes the Checkout page) also needs to be HTTPS. Confirmed with no error on Checkout page after changing Cart to HTTPS; instead, the Stripe interface appeared, as it should.
So, I felt confident about changing all pages on the site to HTTPS. Did this by changing my Site URL and Home URL in Settings, then adding the following to wp-config:
define('FORCE_SSL_ADMIN', true);
And then added the recommended ~3 lines of code to .htaccess, and finally changed all the links in my content from HTTP to HTTPS using the Blue Velvet plugin.After all these recommended changes, I was surprised to see the same error message on the Checkout page reappear, this time with all pages secure with HTTPS. I then backtraced my steps, and 100% confident that .htaccess and wp-config were returned to original. I even changed the links in my content back to HTTP using Blue Velvet. Then tried changing Site URL and Home URL back, but each time I hit save, the page reloaded unchanged, showing https instead of http. Ended up having to manually change the wp-siteurl and wp-home options in the database back to http. But, despite exactly reversing my steps, something has changed and I cannot get rid of the error message on the Checkout page. Message is very vague, but has something to do with Stripe’s security measures.
Any ideas? It would be very much appreciated.
- The topic ‘Problems from updating wp_siteurl to HTTPS’ is closed to new replies.