Upgraded server to http/2 , now cannot access dashboard
-
Hi all,
I had a WordPress site located at
https://www.ktravisj.com/blog/perfectlyincomplete
That I would always use the link
https://www.ktravisj.com/blog/perfectlyincomplete/wp-admin
To log in and Administer my WordPress site. But recently, after upgrading my SSL and my server to http/2 , that link I mentioned above, https://www.ktravisj.com/blog/perfectlyincomplete/wp-admin , now shoots me to the root of my website, and I cannot log in as Administrator to do anything from within my WordPress dashboard.
I’m confident that if I can just get in to Update/Upgrade WordPress’ version, the whole thing will be compatible again; because I didn’t have the *newest* version of WordPress installed (clearly–that’s why it’s gone haywire), but I also didn’t have an ANCIENT version, either.
Any advice?
–etcbbu
-
Hello etcbbu,
The issue seems to be related to the database. Did you recently setup SSL certificate on your website?
Also when I tried to access your blog page https://www.ktravisj.com/blog/ it showed some permission issue. May be you should change your permission to that directory.
Regards
hi, firstly if you have SSL then the URLs you gave is not SSL it should start with https://. now if the site is ment to be ssl you need to change the site URL to https: if not done previously.
secondly if you think just updating wordpress will work then you can update WP via FTP. just do not touch wp-content folder rest of the file needs to overwritten with the fresh download from wordpress.
@magnigeeks , thank you for your reply. Yes, I just recently upgraded my SSL on my server. Also, the https://www.ktravisj.com/blog/ link you mentioned should not show a blog site, because that is merely a sub-older, where three more blog sites sit. And the one about which we are talking today is the one that sits at https://www.ktravisj.com/blog/perfectlyincomplete .
@shamratdewan , thank you for your reply. But even if you try visiting any URL(s) related to my https://www.ktravisj.com/blog/perfectlyincomplete blog with the “https://” nomenclature, the issues still arise. I understand there is the difference with the https, but the problems are still there. You say that I can update WP via FTP. Would I use this standard download, here, https://www.ads-software.com/download/ version 4.7.3 ; and then just manually install everything that is in the zip file onto my server such that it over-writes everything? But that you are saying that I need to just completely ignore the wp-content folder and do nothing with that, though?
–etcbbu
Hello etcbbu,
I understand the issue. I think you need to do a search replace in your WordPress database for the http URLs with https and it should be good.
Regards
wp via ftp, you can read:
https://codex.www.ads-software.com/Updating_WordPress
https://www.wordfence.com/learn/how-to-manually-upgrade-wordpress-themes-and-plugins/as you were saying you have updated your server are you familiar with Filezilla for FTP. if not please read the above links carefully before doing anything!!!
Also keep a backup of your DB as search and replace always not a good idea in WP. you can try plugins(if you can go to dashboard!). I have once used blue velvet plugin to change site URLs that was good plugin, there may be lot more but haven’t used all of them?
can you go to your site DB what is the URL under wp-options table siteurl?
@magnigeeks , Thank you for your reply. When you say that I should do a find and replace for changing http to https in my Database, are you talking about I need to log into phpmyadmin and do this? Or, do you mean that if I utilize @shamratdewan’s method of simply utilizing FTP to overwrite some new WP file from a new WP installation, that will accomplish everything that you are saying? But, I am trying to understand, if I use this latter method of using FTP to replace files from a fresh WP installation, are y’all saying that I need to ignore the wp-includes directory entirely? Just leave it alone and do not replace anything inside of that directory?
@shamratdewan , Thank you for your reply. Yes, I am familiar with using FTP for file-transfer, I do this all of the time, and pretty much just always do that whenever I install a WP site. But, I typically just use the built-in Windows Explorer FTP client, or “AutoFTP”. But, same process, I just use those two FTP clients. As far as your question, I am not understanding if you are saying that whenever I go to my DB and your question about, “can you go to your site DB what is the URL under wp-options table siteurl?”; does this mean I need to log in to my phpmyadmin in order to answer your question? And as far as your other question about plugins, I cannot get into my dashboard at all, and so I cannot disable/install/or do anything with plugins. I cannot even reach my wp-admin page in order to even log-in to my dashboard; and so I cannot manipulate my plugins at all.
–etcbbu
Hello etcbbu,
I normally use the following tool to search replace in WordPress. Just make sure to keep a backup before running the script.
https://interconnectit.com/products/search-and-replace-for-wordpress-databases/
Regards
@magnigeeks , I am grateful for y’all’s replies. I *successfully* utilized the piece of software you recommended. I successfully ran it to replace
http
with
https
But, alas, I still cannot either access my blog website
https://www.ktravisj.com/blog/perfectlyincomplete
nor login to my dashboard for it at
https://www.ktravisj.com/blog/perfectlyincomplete/wp-admin
Are there any other ideas I can try? I have this website set up as a subdomain, too, at
perfectlyincomplete.ktravisj.com
and I am noticing that whenever I try to visit this in a browser, I get this error:
“Secure Connection Failed
An error occurred during a connection to perfectlyincomplete.ktravisj.com. Peer reports it experienced an internal error. Error code: SSL_ERROR_INTERNAL_ERROR_ALERT
The page you are trying to view cannot be shown because the authenticity of the received data could not be verified.”Any other ideas I can try?
Trying to open this URL
https://www.ktravisj.com/blog/perfectlyincomplete/wp-admin
redirected us to
https://www.ktravisj.com/?redirect_to=https%3A%2F%2Fwww.ktravisj.com%2Fblog%2Fperfectlyincomplete%2Fwp-admin%2F&reauth=1
Don’t know exact reason for this, but as per our knowledge, this seems to be an issue related to one of the following:
What may be causing this:
1. .htaccess (a line of code can lead to such redirection)
2. Plugin redirect (a security or maintenance or redirection plugin can cause such redirection)
3. SSL redirection (have you added any ssl redirection code? or has it been added automatically?)Possible solutions:
1. Review each line of the .htaccess code for any URL redirects
2. Check for any plugins causing this
3. SSL redirection (redirecting all https:// urls to https://)Example code for SSL redirection (this redirects all https:// urls to https://):
RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://www.example.com/$1 [R=301,L]
Talking to your hosting provider about this can possibly help. If they can’t help you for some reason, try getting in touch with a WordPress developer and he/she will fix this in five minutes. Ask around, you will surely find a friend who knows one.
Hope this helped. ??
- This reply was modified 7 years, 7 months ago by WPgeeks.
@wpgeeks , thank you for your reply. I have questions on each one of your points:
1) Here is what my .htaccess on my root folder of my web-space reads:
RewriteEngine On RewriteCond %{HTTP_HOST} ^ktravisj.com [NC] RewriteRule ^(.*)$ https://www.ktravisj.com [L,R=301]
before I have made any change. I have not changed anything; that is just, what it is, as of now. I get really nervous when it comes to editing anything in my .htaccess file on my root folder, for fear that I just throw off anything and everything having to do with my domain. But, does it look like, perhaps, I ought to change something in that..?
2) I don’t claim to be an expert on WordPress (clearly anyone could see I’m not the best), but I have set up and administrated several sites over the years, and set them up myself and whatnot. But, whenever someone tells me to edit Plugins, with my blog’s current state where I cannot log in to the dashboard, I do not know how I can edit plugins at all. Is there a way I can do it via FTP? I really didn’t have very many plugins installed on this site; like, maybe AKISMET and one or two other minor ones. How can I deactivate or even delete these? I do not know how to do that right now, whenever I cannot get into my dashboard.
3) Like I’ve shared, I did recently get an SSL Certificate enabled on my ktravisj.com domain, and http/2 protocol enabled. But like I also shared, I tried the “find and replace” tool, last night, and although the process claimed to be a success (I took screenshots of the completed process, after it successfully made all of the changes), alas, my website still will not load in a browser.
If we could, keep in mind that whenever I say
perfectlyincomplete.ktravisj.com
All it is, is a Forward to this more concrete address:
ktravisj.com/blog/perfectlyincomplete
- This reply was modified 7 years, 7 months ago by etcbbu.
Hi @etcbbu
1) Here is what my .htaccess on my root folder of my web-space reads:
Is this it? It should also have the following:
# 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
Add the above code if it is not there. This might just get you in.
I do not know how I can edit plugins at all. Is there a way I can do it via FTP?
Yes, you can edit plugins via the FTP. Just login to the folder where WordPress is installed. Look for the plugins folder and inside it will be plugin you want to edit. You will need a text editor for the same and we guess you must be aware of that.
/wp-content/plugins
…maybe AKISMET and one or two other minor ones
We don’t think Akismet may cause such a redirection. But disabling all the plugins might help.
How can I deactivate or even delete these?
Do not delete them. The easiest way to disable them is by simply renaming the plugins folder. Go to the WordPress installation, look for
/wp-content/plugins
folder. Simply rename the plugins folder fromplugins
toplugins.deactivate
. To enable it again, simply rename it to it’s original form ‘plugins’.Plugins can also be disabled via the database if you have the phpMyAdmin access. Please google for it.
Unfortunately, from what you explained above, it is not very clear as to what may be causing this. But working on each of the above point individually might help. Just don’t mess with the wp-content folder (and the database), and you won’t lose any of your content. If the above don’t get you in, then only a closer look into this can help solve it.
Good luck!
- This reply was modified 7 years, 7 months ago by WPgeeks.
So on the first point, with editing my .htaccess file:
1) I should simply edit the .htaccess file that is on the root of my website, correct?
2) And then for all of the code you gave me, I should just simply begin that code on the next line, right after
[L,R=301]
, correct? So like, it’ll be this:RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://www.example.com/$1 [R=301,L] # 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
?
–etcbbu
- This reply was modified 7 years, 7 months ago by etcbbu.
) I should simply edit the .htaccess file that is on the root of my website, correct?
2) And then for all of the code you gave me, I should just simply begin that code on the next line, right after
[L,R=301]
, correct? So like, it’ll be this:Yes.
If that makes your dashboard work, then fantastic. If it doesn’t then proceed with disabling plugins..
Oddly enough, my blog site is working again. Thank you so much for your assistance in helping me think through this.
God bless.
–etcbbu
Glad to hear that @etcbbu!
- The topic ‘Upgraded server to http/2 , now cannot access dashboard’ is closed to new replies.