I created a plugin for my wordpress website. This plugin use file_get_contents() PHP function to get contents from my other websites. Everything goes well in local host (XAMPP). But when I run the plugin in my server which has HTTPS installed, it does not work anymore. Please note that the websites (I need to scrape the contents from) don't install HTTPS.
I searched for many solutions here (such as edit in php.ini: extension=php_openssl.dll and allow_url_fopen = On ) but it still doesn't work.
Thanks for reading and Helps!
Related
I have installed the SSL certificate via Cpanel to my WP website. But right after installing it the UI of the website got disturbed.
Without SSL
With SSL
Update 1
I have looked into it and found out that CSS/JS is not properly loaded. So I changed HTTP to HTTPS in my files where I was using it. But still, the issue is the same. Moreover, I am getting the below errors in my console.
Any help would be highly appreciated
Its due to references of css/images/javascript etc that are not using the SSL (https) but use HTTP instead. I recommend to install Really Simple SSL plugin for the quickest solution. Another solution is to go and fix every incorrect reference but this can be a lot of work and may in some cases need advanced knowledge (editing database entries etc.)
Check with your hosting company to properly configure HTTPS Redirects. The hosting company may ask you to install an HTTPS redirect plugin on your website. If that's work out then good if not, then go to PHPmyAdmin of your cPanel and Export your database. Open the database in Notepad++ and replace all http with https . Save the file. Delete old database tables. Import the file you saved with changes. Be aware, it might break your site, so be sure to take a backup of your database before attempting it. If things don't work out, revert the changes and take the help of a developer to fix it for you.
I am working with my new website. I got SSL certificates file from Digicert SSL provider . I installed SSL as instructed . But my WordPress pages still get Insecure page error while other html and non-WordPress PHP pages works Okay. I am not sure what did i do wrong.
my website is
https://www.devbhusal.com/ shows insecure page error.
https://www.devbhusal.com/readme.html works fine.
https://www.devbhusal.com/test.php works fine.
If SSL installed successfully with domain and still site is not secure then please check if internal link used only http:// if yes then convert to https:// and still you not able to find then you can use https://wordpress.org/plugins/really-simple-ssl/ plugin.
I tried with simpl SSL and everything that I can find on internet. At last I made wordpress backup file, created new server in EC2 ,install fresh WordPress ,restore wordpress data and install SSL. Now it is working. I still couldn't figure out what went wrong with old settings.
My phpmyadmin was accessible prior to installing ssl on my abyss web server using http://.
Since I have set up my ssl config when I try to access phpmyadmin on https:// the page loads but nothing is displayed.
I have installed ssl across my whole domain.
Do I need to edit the config.inc file to enable phpmyadmin on ssl and if so what changes need to be made?
Must have been a corrupt file somehow.
Solution was to remove all old phpmyadmin files and reinstall with latest version from the phpmyadmin website.
All okay now.
I am having a really difficult time trying to resolve a very mysterious issue, and I hope somebody can help. I am using Wordpress. I developed my own theme for Wordpress. I have used that theme for several sites in different hosting with no issue. It was working fine on this server I am having the issue with, but for a time now it is getting more common. I am getting a redirect loop error on Chrome ERR_TOO_MANY_REDIRECTS, but it seems to be working fine on Firefox. And sometimes it works fine on Chrome, but not on Firefox. I did the delete cookies and temp files and cache from my browser, and it worked for a moment, after a refresh on Chrome, the issue started again. Right now it is working on Firefox, but not on Chrome. So this is what I have tried:
Check .htaccess file. I deleted it and re-saved Permanent link settings to recreate .htaccess file. Did not work.
Modified the site_url and home values in the database from domain.com to www.domain.com and http://www.domain.com and http://domain.com and did not work.
Disabled all plugins, even moved all them to a different folder. Did not work.
Since I am using my custom theme, I disabled my theme and enabled the Wordpress default theme, and did not work.
Checked permission for a couple of folders. They were all fine.
Checked with the Chrome Inspector, and I see a lot of 302 Moved Temporarily.
Now, I am out of ideas, and I cannot find any scenario that matches mine. I am not sure if it is related to cache or cookies, or permissions on certain folder, or I don't know. I believe it is something related to cookies and permission, but I cannot find any help on how this works on Wordpress and I am not even sure it is the issue.
The other thing, is this is a Linux Server with Apache. So I dont know if it may be a Apache configuration issue or something with the server CPANEL or something. I only have access via FTP to the root folder of my Wordpress installation, access to the database via PHPMYADMIN and access to the Wordpress administrator. I need to make sure there is nothing else that can cause this issue in Wordpress and a way to prove if the issue is related to the Apache configuration or server related. I am very frustrated right now, since I am out of ideas and did my best to fix this. I really do appreciate if someone has an idea of what else can be done.
I have encountered this same problem recently and what was causing it in my case was a new 'feature' in an updated version of Plesk control panel. Plesk now automatically does a 301 redirect to the preferred domain. Now if the preferred domain in Plesk and WordPress are different or you have conflicting redirection set in your .htaccess file this could result in a redirect loop. The solution is to either change the preferred domain in Plesk or disable the redirect altogether. You mentioned that you are using Cpanel - I'm not sure if Cpanel has this wonderful 'feature' but it's another possible cause to eliminate.
I not sure why i'm getting this error after i migrated my wordpress to Azure Websites. Previously the site working perfectly without any issue. I tried to install SSL (from comodo) to Azure Websites, top up SSL from cloudflare but it still not working.
MailChimp API Response : SSL certificate problem: unable to get local issuer certificate
Some online user said need to define the php.ini, but we have no access over the file hence i'm adding the following line to wp-config.php
ini_set('curl.cainfo', "cacert.pem");
the file located at same directory as wp-config. but it's still not working. please advice.
(I'm using custom domain)
You can use a custom PHP runtime, and then you can change php.ini and any of the PHP_INI_SYSTEM configurations.
Check here for details on how to use a custom php runtime, but basically you will upload the php version as a part of your site, and set is as the handler for *.php in Portal.