Whenever I try to log to wordpress admin I get The page isn't redirecting properly error message - wordpress

The frontend works correctly, it's only when trying to log in the backend that the error occurs.
On the frontend, I can see that I'm logged in (the black ribbon on the top), when I click on any link I get this error message too
Content Encoding Error
I tried everything I found on the web. Disabled plugins, updated WordPress and the theme to no avail.
I tried the same code on my local machine, and it's working flawlessly.

If you are using a MySQL server older than version 5.5.3, you might need to change your tables' character encoding back to utf8.
This might also help

I've been able to fix this issue thanks to #jpg0002 in his answer.
There were too many configurations on my vhost. I have simplified it and I can access the admin.

Related

Wordpress: unable to connect to wp-admin (localhost can't provide a secure connection?)

I've got a MAMP (version 6.3) localhost using Apache running on a Mac Mini locally and i am in final testing before publishing a new plugin that i've created. I popped my plugin into my plugins directory (as i will when i go into production) and suddenly, I am unable to access wp-admin to look at Wordpress (as in 'localhost:8888/wp-admin). Localhost access works just fine (as in 'localhost:8888'), but when attempting to enter wp-admin, the page fails to be served up with the following messages:
"This site can't provide a secure connection
localhost sent an invalid response.
ERR_SSL_PROTOCOL_ERROR"
I cannot find ANY information that will help me find a solution. There is nothing in the Apache logs at all. I've got debugging set up and running on my site and there's nothing in there at all. I literally have NO idea how to proceed in finding the problem. I get the same messages in either Chrome or Safari.
I've searched this error and it seems it could be a few things, but the source seems to be a bad certificate or something. If so, i don't know how to correct that condition. IF my understanding is correct, localhost doesn't even require SSL (?), so even the "ERR_SSL_PROTOCOL_ERROR" is confusing.
Another suggestion that i've found is to disable your plugins folder by renaming it to essentially invalidate ALL plugins. I've tried that as well, no change in the error message that i am receiving.
Can anyone provide any concrete steps for how to resolve this so that i can get into the wp-admin facility on localhost? I admit that i know "not much" about certificates and SSL and the like. I literally don't know where to start.
thanks!
request via http, something like this
http://localhost:8888/wp-admin
open your wp-config.php file and add this online
define('FORCE_SSL_ADMIN', false );
save the wp-config.php file. You can add just above this line
/* That's all, stop editing! Happy publishing. */
Now try opening your localhost this should work.

Wordpress plugin is not working after migration to a new server

I have moved my wordpress site to a new server, and login.php is working right.
But in there many plugins is not working well, for example the login page is not linked to any other page after I submitted my username and password.
Here is the login page link:
https://cpalocate.ca/login/
I have entered the invalid username and password, it will also show the blank page, but not error page.
When I add this code in wp-config.php
define('WP_DEBUG', true);
it showed this text. " Notice: Constant WYZ_THEME_DIR already defined in /home/.....".
And I have fixed that, but the same problem.
Now there is no any error debug, but the login page is also not working.
I changed the php version of my site in cpanel, but the same.
Anyone has your idea to solve this issue?
It is possible (I'd even say likely) that on your old server it was using PHP 5.6 (or at least a different version of PHP than your new server) and now you're on 7.0, 7.2 or even 7.3. It would seem that if that's the case, some of your plugins are incompatible.
You should edit your wp-config.php and add
define('WP_DEBUG', true);
so that you can see the errors on your screen, at least until you figure out which plugins are causing the problems.
If it is a matter of PHP version, check with your host to see if they can roll you back, or you'll have to either contact the plugin author and have them update the plugins, or you need to fix the code yourself, based on whatever the error messages you see are.
Edit: if this doesn't solve your problem, first try a default WordPress theme like twenty-nineteen or whatever. If that doesn't solve it, then disable each plugin one at a time until you find the culprit.
I have turned off all my plugins and turn back it one by one.
I have found one of my plugins is caused this problem, it is PM Pro Settings.
So I deactivated it and there is no any problem now.
I am using other plugins on behalf of that one.

Wordpress admin after login shows "Could not retrieve data" error

Yesterday I was working on a WordPress site, and it was perfectly working. And now today when I logged in through login details the blank page is appearing with this error:
Could not retrieve data.
I don't know what's wrong in that, suddenly it stopped working.
You could always take the usual steps :
Deactivate all plugins to see if one of them is causing the problem (you can do that by removing their folders from the wp-content/plugins directory).
You can also check your server logs, it might give you information, maybe a database connection problem ?

apache responding 403 to wordpress tinyMCE js requests

there is something strange happening on my server. It has worked like a charm with wordpress from 2.3 version, and I update it regularly.
Today I updated to wordpress 4.1 and, when I tried to write a post, I found the tinyMCE editor completely unloaded.
I then checked the console and I have a bunch of 403 errors, for requests like
http://www.ilparticolarenascosto.it/wp-content/plugins/jetpack/modules/after-the-deadline/tinymce/plugin.js?v=20140527&wp-mce-4107-20141130
infact my hosting answers with a courtesy page (that doesn't even explain what's happening).
the strange thing is that if i try
http://www.ilparticolarenascosto.it/wp-content/plugins/jetpack/modules/after-the-deadline/tinymce/plugin.js
(without the ending ?v=20140527&wp-mce-4107-20141130 ! ) I can download the file regoularly.
What's happening? what can I do?
I have already reinstalled it, and the problem occours with firefox and chrome, so I think it's a server issue.
And, also, if the first link works to you, maybe it's not working because I'm behind a proxy? but,again, why?
Yes, The first link works for me. I am not sure why it is not working for you.
Clear your browser cache to rule out your browser as a cause
Check you webserver access logs. Access logs will have a response status for every request. It may be possible that some one is overwriting the 200 OK sent by apache
I had the same problem.
It was a security setting on the server, blocking urls with variables.
Wordpress inludes tinymce files with variable in the end:
wp-includes/js/tinymce/themes/modern/theme.min.js?wp-mce-4203-20150730
call your hoster to fix it
it seems that the problem is ... Adblock.
Disable it, clean the browser cache, and reload the page. The Wordpress Editor will suddently appear.

MAMP is working correctly, but URL is bringing up a blank page

I was working on my wordpress site locally using MAMP and suddenly everything went blank (white). Apache and MySQL both have green lights and everything seems to be running just fine, but the URL brings up a blank page now with no error message. Any ideas?
The white screen usually happens when you edit something in the php and it is incorrect formatting. Go back through the edits and changes you recently made to the code and remove the changes. You should then see your site and know which pieces of code are throwing the errors. It happened to me a few times.
My problem was due to attempting to connect to the wrong database as my wp-config.php had a typo in it. I found the solution by first looking at apache logs as mentioned and there was only a general SIGTERM error. I then looked at MAMP's php_error.log which showed me this error: WordPress database error Unknown column 'wp_' in 'field list' for query SELECT wp_. Updating my wp-config with the correct database and restarting MAMP fixed the issue.

Resources