Wordpress login refresh issue, have tried everything but it doesn't want to load - wordpress

So I was given this file and was asked to integrate PayPal using WooComerce. but I can't seem to access the wp dashboard. Here's what I've done
Created a database in phpmyadmin using XAMPP, stored the files in my htdocs, and then imported an SQL file to the database, the website page loads on my localhost, but when I type http://localhost/mysite/wp-login.php or even http://localhost/mysite/wp-admin, and I enter the correct credentials, the login page just refreshes.
I have tried
clearing cache and cookies
removing .htaccess files
renamed plugins folder
But none of them seemed to work, the page just kept refreshing. I've even tried opening it in incognito mode because I heard it may help but it didn't. Please let me know if there's anything I missed or if any further information is required.

if anyone faces this issue, You should access the database file and go to wp_options and change the url there to match your localhost. You can add an admin command in your theme functions.php file as well after doing that to add more users.

Related

I have forgotten my wordpress website admin dashboard url

Please help me change my wordpress website dashboard url , I have tried to enter with /wp-admin and /wp-login but no success,please advise me in which table of database I can change it manually .
You can check for configuration saved by plugins on the (wp_)options table. Probably, you will need to read carefully, because on the table you can find serialized strings and lot of another things. But, if the plugin doesn't have a own table to save configurations, there's on these table.
If you know what plugin have you installed to do it, you can check on source of it for know the exact value and table where's the configuration of admin address saved.
Also, if you only are interested on accessing to admin page, you can remove (or move) the plugin folder itself (not wp-content/plugins, the plugin you've installed itself).
If the plugin are not present, you can recover accessing to admin at wp-admin. But if you reinstall the plugin later, the address will be changed too.

WordPress website pages are redirecting to adult site pages

I have a website built on WordPress platform. Today, when I opened the website and when I clicked anywhere on the website, adult site pages are opening up continuously.
Can anyone please suggest what could be done to resolve the issue?
Your site is hacked by someone and some script injected in your WordPress installation or database which causing to load this video your website need to scan your website using plugin like SECURI You can get this on Securi.net
Here are some solutions that you can try(Remember to take a backup before using this)
Check and clean all your recently modified files
Contact your hosting provider if you are not using dedicated server.
If you have some inactive themes and plugins which you don't need more remove them.Hackers can hide script there.
-You can upload new word-press core files which you haven't customised.
Install fresh copy of themes and plugins if you not customised them.
Change your secret keys in your wp-config file.
Check users in your word-press and delete suspected ones.
Check permission of your installation directory .if not secure them make changes.
Change you WordPress password
If this all not works to solve problem let me i will look into it.

WordPress/Avada website not Loading in XAMPP

So I've been trying to get into the admin dashboard for a WordPress website that I'm supposed to be working on and for some reason my XAMPP/phpMyAdmin & Avada theme does not seem to be working properly.
When I configured XAMPP it worked fine and could reach the admin dashboard without any issues. But when I replaced the WordPress directory downloaded from the network admin and the .sql database table uploaded into phpMyAdmin I am now noticing that when I access localhost/wp/ it loads a broken page, appears to be missing the CSS (styles/images)
I've tried to navigate to locahost/wp/wp-admin/admin.php and /wp-admin/login.php and I am not able to load the files I continue to receive a "File not found" redir error.
In my own opinion it seems as though the user isn't entirely authenticated and is causing me to redir based on failed authentications OR the system is having difficulties with the folder structure to determine the areas for the "missing" wp-admin files, although I have confirmed they are physically residing within that expected location which only further confuses me.
I can upload and attach any type of document, just let me know what type of information you are looking for to assist in troubleshooting.
THANKS FOR ANY AND ALL HELP!
1) Ask wp questions at wordpress.stackexchange.com
2) you may have problems with .htaccess and .sql file permalinks. Ask people at the mentioned forum.
Step 1 : Remove htaccess file from your root folder
Step 2 : check wp_option table and change site_url and home_url
Step 3 : Login into wp-admin using
http://localhost:8080/mysite/wp-admin/
Step 4 Goto setting ->paramlink and update using custom structure.
That's it.Problem solve.

moving WordPress over to domain, after working on it locally through MAMP

I've finished the styling changes on WordPress and I'm ready to move it from MAMP to my domain.
Will this involve any changes to the WordPress files or can I just drag it over to my new domain once I purchased it?
The main start you must make is update your wp-config.php
define('WP_HOME','http://www.mynewdomain.com');
define('WP_SITEURL','http://www.mynewdomain.com');
That way wordpress knows what domain it MUST run from.
The reason you do that is because without this you may not be able to access admin, login, etc etc.
When this is working and you have logged in, go to wp-admin and go to your permalink settings.
Make a NOTE of your settings, then change them to default (and woocommerce settings etc).
Go to your home page and a few others, and notice how messed up your urls look :)
Now go back to permalink settings and restore them (the point of this is to make sure your .htaccess file that wordpress depends upon is set correctly)
Finally, have a look at https://github.com/veloper/WordPress-Domain-Changer to change your sql etc if needed.
note this method is very handy for developers so you just update your wp-config.php for localhost or development or production (not for testing purposes, don't use your local pc. copy it all up to a subdirectory of your hosting partner e.g. http://www.mynewdomain.com/mytestarea. Make sure you use a COPY of the mysql database (never point both to the same database). You now can test on the hosting platform without disturbing the live site or your development causing issues to other people.
It's been a long while for me personally, but you'll want to change the SiteURL via the options menu in wp-admin.
Otherwise, just make sure your MySQL database is exported over, your credentials and user permissions are all setup and those work too.
If you still have problems:
https://codex.wordpress.org/Changing_The_Site_URL
https://codex.wordpress.org/Moving_WordPress
The database has to be updated. What always works for me is that I export the database from phpMyAdmin or MySQL (using mysqldump) and open the exported .sql-file with a text editor, like Sublime Text.
Now you want to find any occurence of your previous URL. Let's say on your dev machine the URL to the index of your Wordpress site is http://localhost:8080/wordpress and you want it to be on a website under https://domain.com you simply do a Find & Replace using that and replace everything with https://domain.com.
For older Wordpress versions you have to update the .htaccess files if you have custom URL's.
You have to make a search replace in your database and replace your local domain ( test.lo ) with the live domain ( test.com ).
To do this you can use the script from here: https://interconnectit.com/products/search-and-replace-for-wordpress-databases/
Add the searchreplacedb2.php file in your route folder and the access test.lo/searchreplacedb2.php and follow the steps there. This will replace your local domain with your live one everywhere in the database.
You can't make a simple search-replace because the local domain might be serialized in some fields in the database, and a simple search-replace will not replace those.

wordpress control panel login problems

I have a blog that was built with word press. when I want to login into control panel it redirect me to this page:
http://tweld.com/wp-login.php?redirect_to=http%3A%2F%2Ftweld.com%2Fwp-admin%2F&reauth=1
One time I Uninstalled word press files and then uploaded again. after that it worked correctly. but this problem has arisen again.
Have a read of this codex guide: http://codex.wordpress.org/Login_Trouble
have a look in your error logs at your hosts backend.
try:
logout or logout with http://www.yourdomain.com/wp-login.php?action=logout
disable all plugins
clear cookies/cache
exit browser
just for troubleshooting purposes try:
- switching to the default theme by renaming your current theme's folder in wp-content/themes using FTP or whatever file management application your host provides.
resetting the plugins folder by using FTP or whatever file management application your host provides. Sometimes, an apparently inactive plugin can still cause problems.
renaming or deleting the .htaccess file after making a backup of this file
Check your .htaccess and wp-config.php if they are correct
source

Resources