There is no reason to use a plugin to force SSL.
1. Backup your database.
2. Install the plugin “better search replace”.
3. Search for http://example.com and replace with https://example.com
4. Log back in and delete the plugin you installed in 2.
5. Log out again and clear your browser’s cache, history, and any cookies related to your site.
Okay I already deactivate the ssl plugin and installed the better search replace plugin. But now whenever click the Run Search/Replace button, it returns error “An error occurred processing your request. Try decreasing the “Max Page Size”, or contact support.” and the console also log this “tools.php?page=better-search-replace&tab=bsr_search_replace:1 Mixed Content: The page at ‘https://www.example.com/wp-admin/tools.php?page=better-search-replace&tab=bsr_search_replace’ was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint ‘http://www.example.com/’. This request has been blocked; the content must be served over HTTPS.”
I’ve tried to reduce the max page size but whenever I click the Save Changes button it redirects me to my home page and the max page size is still the same.
So how did you configure your site (aside from that plugin) to run as SSL?
By adding this line to my .htaccess
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
By the way, I did a clean installation of another wordpress, with new database collection, disabled the ssl, and I’m still unable to insert image into new post, but the console didn’t return any error.
Errors like this are logged. Check the error log on your server. If you can’t find the log, please contact your host.
Meantime, enable wp_debug and wp_debug_log and after an error, look at wp-content/debug.log to see if anything gets logged there. https://codex.wordpress.org/Debugging_in_WordPress
You can also try this: Please attempt to disable all plugins, and use one of the default (Twenty*) themes. If the problem goes away, enable them one by one to identify the source of your troubles.
If you cannot access wp-admin, there are other ways to deactivate plugins.
I’ve been contacting my hosting provider, and they still been trying to figure it out.
I’ve also enabled the wp_debug and wp_debug_log in the wp-config just like you asked but there is no debug.log output.
I already disable all plugins, used the default theme but the problem persist.
I went through the network panel in the dev tool and the status of admin-ajax.php is (canceled).
-
This reply was modified 8 years, 10 months ago by
iamzimy.
Try a “clean” .htaccess file:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
I’ve replaced the old .htaccess with that one. The problem is still there.
This is the console log whenever I’m trying to insert an image into a new post:
Mixed Content: The page at 'https://www.fiziklah.com/wp-admin/post-new.php' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://www.fiziklah.com/'. This request has been blocked; the content must be served over HTTPS.
Have you cleared all cache related to your site, both on the server and in your browser and deleted all cookies relating to your site?
When I look at your site, it seems properly https’d.
I’ve cleared both site and browser cache, however I think that I can’t clear the server cache by myself. I’ll ask my host to clear it for me.
Just wanted to update, the problem has been solved. The host transferred my site to another server. So it was due to the server. Anyway, thanks for the help!