SSL certificate verify failed

I have a gift voucher plugin for wordpress that creates a PDF after a user has finished filling in a form and sends it to the users email. This plugin uses the fpdf library to create the pdf. It worked fine before my web hotel installed OpenSSL/1.0.2g. Now I think that the SSL certificate blocks the pdf creation. I'm getting the following error message: PHP Warning: fopen(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed …
Category: Web

Why wordpress multisite redirect to wp-signup if site exists?

I just create a site on my Multisite domain (example.com), for instance site1.example.com After this, I try to enter on https://site1.example.com/wp-admin, but I'm redirected to https://www.example.com/wp-signup.php?new=example.com My .htaccess containt this lines: RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] # add a trailing slash to /wp-admin RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ - [L] RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L] RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L] RewriteRule . index.php [L] I have installed, among others, this plugins …
Category: Web

SSL for mapped subdomains in multisite (no plugins)

WP multisite network based on subdomains, and domain mapping to my customer domain names without a plugin (I'm on WP 4.6.x). SSL cert for the server, so the base network domain does come up with green padlock -- but I do not cover my customer's domains - they currently get forced to http. I need to have all my customer's domains come up with https, green padlock -- without having to install a separate SSL cert for each domain. What …
Category: Web

SSL certificate breaks CSS (in combination with W3TC)

Dear StackExchange community, I am struggling with the following problem and simply cannot find a solution: I have installed a SSL certificate but it causes the CSS of my website to break when the plug-in "W3TC" is activated (example: https:// www.planetofsuccesscom/blog/). Here's how I installed the certificate and how I tried fixing the problem: Deactivated W3TC Updated my site URL to https within the WordPress dashboard (Settings » General and updating your WordPress and site URL address fields) Redirected http …
Topic: ssl Wordpress
Category: Web

Wordpress Multisite with cPanel Addon Domains and SSL

I've been trawling google and looking through various articles but seem to have ended up in a massive mess now! I have had domain myprivatesite.com. The domain is registered with a different company to the hosting. It's been running (non-multisite) Wordpress for a while, with the Wordpress install in a sub-dir. I have an SSL cert on the domain (provided by the web host) and then enabled cloudflare for CDN via the hosts cPanel plugin. This has been running great! …
Category: Web

PHP warning - Use of undefined constant ‘FORCE_SSL_LOGIN’ ‘FORCE_SSL_ADMIN’ on wp-config.php

I have a bothering PHP warning for ages, and I am wondering if someone has solution to this. The following two-line warning is constantly recording in my error_log file: PHP Warning: Use of undefined constant ‘FORCE_SSL_LOGIN’ - assumed '‘FORCE_SSL_LOGIN’' (this will throw an Error in a future version of PHP) in /home/myuser/public_html/wp-config.php on line 92 PHP Warning: Use of undefined constant ‘FORCE_SSL_ADMIN’ - assumed '‘FORCE_SSL_ADMIN’' (this will throw an Error in a future version of PHP) in /home/myuser/public_html/wp-config.php on line …
Category: Web

Multisite has SSL certificate, but media library is still http://

Our multisite WordPress installation has a URL of https://xx.com for the main domain, and - for example, https://yy.xx.com as a subsite. We're using WP's in-built domain mapping feature. Media library links are still showing up as http://xx though, so any images used on the subdomains are flagged up as insecure. Only one subdomain - our most recent one - has media library links with a structure https://zz.xx.com. It's possible that the SSL certificate was installed after the other subdomains were …
Category: Web

I have cloudflare flexible enabled, How to redirect to https for Nginx server

If I access directly to https it works, but the site is still accessible by HTTP. How do I force all http to https? I have used WordPress HTTPS plugin. But it is not redirect to https. I have configured the nginx with following: server { listen xxx.x.xxx.xxx:80; listen 127.0.0.1:80; server_name mydomain.com; root /var/www/html/mydomian.com/; index index.html index.htm index.php; charset utf-8; location / { try_files $uri $uri/ /index.php?$args; rewrite ^(.*)$ https://$http_host$request_uri redirect; } ... But this redirection will leads to infinite …
Category: Web

Mixed content and expired session issues with SSL and wp-admin

I am developing a site that has an SSL certificate. I've activated wp-admin being conducted over https (using define('FORCE_SSL_ADMIN', true); in wp-config.php). It's created a lot of issues using wp-admin. 1) Whilst doing things in wp-admin I'll regularly get a message saying the session has expired. As far as I can tell, this mostly happens when jumping from one admin page (url) to another page (url). 2) In Chrome I'll often see a little silver shield in the address bar …
Category: Web

How disable SSL redirect for specific URL?

I have a specific URL that has to be accessible without SSL, so that some old devices can access it. The reason is those old devices have the URL hardcoded. The URL is http://domain.com/server My .htaccess looks like this: RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> Redirect 301 /server http://sub.domain.com/server However, the devices can't even access the first URL because it keeps redirecting to https://domain.com/server
Category: Web

How do I secure a subdomain using UCC SSL?

I have a UCC SSL Certificate installed on my primary domain (example.com). I have 3 subdomains listed as Subject Alternative Names (SANs) (shop.example.com, distributors.example.com and careers.example.com). Currently, I'm working on the shop subdomain. I installed the Wordpress HTTPS (SSL) plugin, but when I try to go to say, (link 1) https://shop.example.com, it redirects to (link 2) https://example.com. I cannot for the life of me figure it out. I tried changing the WordPress Address (URL) and Site Address (URL) in General …
Category: Web

"Error: cURL error 60: SSL certificate problem: certificate has expired" when create product in WooCommerce via REST API

Everything worked fine a week ago. Lets Encrypt certificate on the site is valid. I am currently getting the following error while creating a product: {"code":"woocommerce_product_image_upload_error","message":"Error getting remote image https:\/\/mysite.com\/wp-content\/uploads\/2021\/10\/60c739fd1-1.jpg. Error: cURL error 60: SSL certificate problem: certificate has expired","data":{"status":400}} In this case, the picture is available by the URL. Tried these solutions (https://wp-kama.com/note/error-making-request-wordpress[enter link description here]1) but doesn't help.
Category: Web

Switching MultiSite installation from HTTP to HTTPS

I installed MultiSite with the URL set as http://example.com, but now I want to force all requests to go over HTTPS, so I'm trying to change the URL to be https://example.com. I've gone through the database and updated all the siteurl and home values to have https, but the site still loads over HTTP, instead of being redirected to HTTPS. I know that I could setup some htaccess rules, but that's prone to errors. In regular installations WordPress will automatically …
Category: Web

I get "too many redirects" problem when migrating localhost site

So, I have a website working properly on my localhost but when I migrate it to hosted server I get too many redirects error. I've done migrations before and this never happend but this time. Difference is that the server has SSL certificate activated to my domain. Can this problem occur because I developed site on localhost with no SSL certificate and on HTTP protocol instead of HTTPS? How can I fix this or what is the proper way for …
Category: Web

How to force the admin-ajax.php file to load over HTTPS?

I have a site that I've recently put 100% behind HTTPS. All assets on the front end and the back end are successfully being called over HTTPS, except admin-ajax.php. This is causing any functionality that depends on the file to fail, including but not limited to CF7, Elementor and other Forms that use AJAX submission, etc. The error I get, which you can see in the screenshot is "Mixed Content: The page at 'https://toursoft.co/contact-us/' was loaded over HTTPS, but requested …
Category: Web

Mixed Content warnings google fonts

I installed a ssl certificate to my blog and moved everything from http to https. But I still get duplicate content warnings that the google fonts are loaded via http. I can't seem to find where I can change this. I am using the theme SmartAdapt. Can anyone give me a tip, where i can change these font includes to https? Thank you very much, Michael
Category: Web

site on subdomain is redirecting to main site after installing wildcard ssl cert on both

I have a wordpress site on main.com and a second one on blog.main.com main.com already had an ssl certificate working. In cPanel I installed a new wildcard ssl certificate intended for '*.main.com' (sorry, apparently i don't have enough reputation to post more than 2 links) At this point: https main.com was continuing to function properly. http blog.main.com was still working. https blog.main.com was redirecting to https main.com So the blog needs more work. I changed the wordpress site-url and site-address …
Topic: ssl Wordpress
Category: Web

wordpress http to https windows server

Having a few issues getting things to work after changing wordpress from http to https on a windows sever. The web.config file is a bit of a mare to work with and the hosting company seems to think that changing http to https in wordpress settings is the only change necessary. currently I can only get the site to load css/js files on any pages other than the homepage by using default permalinks. and when I try adding http to …
Category: Web

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.