Wordpress always redirects to /wp-login.php - wordpress

i have a problem with one of my wordpress websites. Every time i want to open to home url it automatically redirects me to the /wp-login.php with this strange url:
https://example.at/wp-login.php?redirect_to=https%3A%2F%2Fexample.at%2F&reauth=1
Also i can't use the "Back to example.at" Link under the login window.
Site & Home URL are set correctly, also there is no redirection set in any plugin or in the .htacces. Also all safety plugins are disabled.
Does anyone already had this strange problem?

Make sure that your website plugins works good.
For first disable all plugins or rename /wp-content/plugins folder then check your website. If problem solves rename back the plugins folder and try to rename plugins directories step by step and find problematic plugin.
Try change the main theme and recheck problem, look at your main theme function.php file content, if you see the obfuscated codes, delete this codes and recheck website.
Delete wp-include, wp-admin folders and reupload from offical wordpress.org last version archive,
Install Wordfence av plugin and scan your website files. maybe you have injected codes.
check your .htaccess file, try to reset it.
Check your server and wordpress requirements. Change the php version to 7.2.
Disable your cahce plugins (if you have).
Try to debug your website with this steps.

Related

What is the "Endurance Cache" feature in my WordPress website?

I noticed this new wordpress version I'm running has a "Endurance Cache" option at the bottom of the "Settings > General" page.
That is caching all of the changes I'm doing on css. So whenever I update something the changes don't reflect on the browser instantaneously.
I'm wondering if that's wordpress native or if I can remove it.
I'm using wordpress 4.8.1.
My other website that has an older wordpress version doesn't have it.
It's not listed as an installed plugin. So that I don't think it is.
I'm using thesis theme.
thanks
It is a plugin installed by hostgator. They install two plugins "Endurance Browser Cache" and "Endurance Page Cache."
You can disable the Endurance Page Cache plugin by going to "Plugins" > "Must-Use" then locating the "Endurance Page Cache" plugin and clicking "disable."
The other plugin called "Endurance Browser Cache" does not have a disable button.
I hope this works for you. I do not know if hostgator will remove these plugins for you.
Here is the easiest solution I found for it:
Log into your Cpanel and click on Files.
Choose your domain/subdomain and click on the WP-Content.
Click on the "mu-plugins".
Rename the File "endurance-page-cache.php" to "endurance-page-cache.php.old"
Create a blank file there and name it "endurance-page-cache.php"
That's it, problem solved. And if you ever in the future want to activate it again, simply delete the blank file that you created and remove the word "old" from the original file name.
I found the issue. It's a plugin installed by hostgator.
Unfortunately it's not listed in the wordpress plugins area.
So I needed to request them to remove it.
To get rid of Endurance Page Cache or whatever other mu-plugin that you don't need, you can now use Mu Manager.
After activation Go to Plugins => Must Use, and deactivate the unneeded mu-plugins that you don't need. It will be like deactivating standard plugins.
Of course, you should know which mu-plugin are not needed. In the case of Endurance Page Cache, I think you never need it if you have a proper caching plugin.
If you prefer to use FTP it will be not enough to rename the mu-plugin, because it will run the same. You need to delete it or replace the extension .php with something else.
This caching plugin was installed most probably by your hosting provider. A brief and quick solution to the problem:
Instal WP File Manager Plugin:
https://en-gb.wordpress.org/plugins/wp-file-manager/
Go to the plugin settings and head over to htdocs/WP Content/mu-plugins
Find the file "endurance-page-cache.php" and either rename it for temporal deactivation or delete it altogether if you want to get
rid of this plugin.
If this was the only file in the folder mu-plugins, you may as well delete the folder mu-plugins. "MU" stands for "Must Use". Sometimes a hosting provider or a developer might install their custom code for a site project as an mu-plugin so it doesn't get uninstalled by their customer.
Uninstall WP File Manager Plugin as it's not needed anymore. Better look on how to access your site files using C-panel if provided by your hosting provider or via FTP (like Filezilla) rather than a plugin.
Get a proper caching plugin. (Give Cachify plugin a go - it is free).

Wordpress site went down after deleting a plugin via ftp

I wanted to update the Revolution Slider plugin so I just went in via FTP, deleted the folder and added the new plugin folder. When I went to the site I got a very basic 500 error with not much info (in Chrome).
I tried removing the plugin, replacing it with the original, removing the htaccess file, putting in a blank htaccess file but nothing seems to bring the site back up.
I now have the original revolution slider plugin installed and the htaccess file with the rewrite rules (basically as it was when the site was working last).
I am at a loss for what to do next. Any suggestions? Here is the site location:
http://innerwestadv.com/damonte/
I actually had to go into the database and deactivate all of the plugins.
http://www.wpbeginner.com/plugins/how-to-deactivate-all-plugins-when-not-able-to-access-wp-admin/

Upload theme button don't work in wordpress

I have installed Wordpress in my Godaddy hosting.Its working quite well except i cant upload a new theme. when i click Appearance > Themes and then add new nothing shows up. The only thing that shows up are the buttons featured , most popular etc but when i click them nothing happens. When i press the upload theme button nothing happens either. How do i fix this?
I have tried it switching the default theme, deactivating all plugin but nothing resolver the problem. Godaddy support says that i will get a conformatin mail after the installation process completed within 24hours. Its almost 24hours but i haven't got any conformation mail. What can i do?? Do i really need to wait for the conformation. i can visit my blog but cant upload any theme, whats going wrong??
You can add your theme directly in your Wordpress installation. For this go to public-html/wp-content/themes/ and drop your theme folder here. Remember that your theme files must not be in subfolders of the folder e.g. /themes/your-theme/theme-files-and-folders/
Had the same issue today and solved it using these steps:
Download the Theme .zip file to your machine.
In cPanel File Manager, navigate to your Themes folder. Depending on your hosting, path to Themes folder can differ a bit but essentially you are looking for public_html inside which you’ll find /wp-content/themes/.
Once you’re inside the Themes folder in cPanel File Manager, click on Upload and upload that .zip file you saved in Step 1.
Once the .zip file is uploaded, right click on the name of that file in cPanel and select Extract from the context menu.
Now you can refresh the WordPress themes page and you should be able to Activate it.
The issue was theme related. I just renamed my current theme and then the default theme was automatically activated. Then i was able to upload my zerif lite theme and its now working fine.
I have been through this issue and i have solved it!
it happens mainly when yu transfer wordpress database from another location!
Solution:
UNinstall and deactivate all themes! delete and re install! if you cant delete the theme due to modifications, decativate the theme switch to another new theme by installing from wordpress and then reverting back to old theme!
if the problem persists: Reset server!

Wordpress don't have plugin tab on dashboard

I'm logged in as the administrator,
my site is self-hosted (the url is www.domain.com )
I'm not the one who built the site and I cant contact him,
this is the first time that I'm trying to install a plugin so I have never checked if it exists or not before today.
the problem is in the local version and in the online version.
thanks :-)
Since your site is self-hosted, you can navigate to the folder wp-content -> plugins and add "zzzzz_" to the front of all plugins. This will disable all plugins without breaking anything. From there, see if your Plugins tab returns in the WordPress backend. If nothing happens, change the naming structure back.
After that, you'll want to download all of the files from your theme, which can be found in wp-content -> themes -> YOUR_THEME_NAME. From there, download the files, and KEEP A BACKUP. The file you'll be looking for in your theme is functions.php. Use CTRL + F (or whatever the search is in your favorite text editor) and find remove_menu_page( or add_action('admin_menu'. You'll want to look for something referencing plugins. This site has some information on how to remove the plugins tab. There should be code using some of these functions specifically set to remove the plugins menu from your admin.
Try to disable all plugins, and see if the tab return
You can do this only in this way: http://www.wpbeginner.com/plugins/how-to-deactivate-all-plugins-when-not-able-to-access-wp-admin/
Try to change theme,too.

Moving Wordpress site subdirectory errors

I have just moved my testing development subdirectory worpdress installation to my root folder using the WP-Clone plugin.
The problem now is my main site (previously mysite.com ) shows (mysite.com/site) now. and the subdirectory is shwoing in all my links
I have tried going to settings and removed the /site from wordpress URL and Site address URL.
But it broke my site and disabled me from accessing my wp-login.php .
I fixed it by editing my wp-config.php and adding :
define('WP_HOME','https://mysite.com/site');
define('WP_SITEURL','https://mysite.com/site');
and now my website works perfectly. But it still shows mysite.com/site and i am unable to edit my URL and Siteaddress from my wp dashboard anymore.
How do I Remove my website subdirectory (/site) and still have it work and not break my site's themes and all? How do I go about this? Really really appreciate any help! Thanks!
By adding those constants to wp-config.php you're overruling any setting in the database. That's why you can't edit them in the admin panel.
So the first step is to change those constants to:
define('WP_HOME','https://domain.com');
define('WP_SITEURL','https://domain.com');
Then delete your htaccess file. (.htaccess in your root folder).
Once you've done this navigate to http://domain.com/wp-login.php
Login to your site and go to Settings -> Permalinks. Hit save which will regenerate your htaccess file.
Finally you'll need to update existing links. I'd suggest installing a plugin called 'Velvet Blues Update URLs'.

Resources