I just moved a wordpress site to a new domain using the following steps:
Copied All Files From Old Domain to New Domain
Updated DB information in the config file
Searched and replaced SQL file for all old domain and updated to new domain
Imported the SQL into the new database
Now when I try to access the site I am getting the following error
Call to undefined function bp_get_default_options()
I can not seem to find anyone else who is having this issue and it seems to be an issue with the buddypress plugin. Is there somewhere else I need to update the domain name?
Doesn't look like a domain name problem, but a corrupt file problem.
Rename your buddypress plugin folder to something else. It will deactivate the plugin.
Remove the plugin from the dashboard and reinstall it.
If it doesn't solve the problem, let me know wich file is causing the error.
Related
My core wordpress files got hacked because of a plug in. My site started giving malicious redirects.
While trying to edit wp-config.php, my site went fully offline. I tried a full manual reinstall because of this and I needed new core files anyway. My site is still not online. I have the database, database password, and username in wp-config.php. Also, I have everything in the document root for the correct domain. Maybe there is some conflict between the two domains with my host?
Does anybody know what might be causing this 404. I can't get access to the dashboard.
I got a backup before doing anything and I downloaded wp-content. The original database is still available.
I tried an automated install through cpanel with fresh everything and this would not get me to a dashboard.
Well, 404 error is not because you can't connect to your database. You should see Database connection error message if database is the problem. Did you edit .htaccess file maybe? You can try to remove everything there and put default one for Wordpress.
May be your site compromised. Deactivate the plugins using the file manager provided by your host and rename wp-content/plugins to wp-content/plugins-old, also deactivate the theme or rename the wp-admin folder on root directory and then take a try to login. Also turn on the debugger.
One of my client website has been hacked, So we are unable to login wordpress using old username and password, Then I have inserted duplicate admin username and password using SQL, But whenever I am trying to login like www.example.com/wp-admin it will automatically redirected to www.example.com/otherfolder/wp-admin and its through 404 error. There is no otherfolder exists in server.
I was updated with latest wordpress then no luck, I looked all the tables like options in phpmyadmin, even htaccess there is no redirection for admin url.
I guess there they might be installed some plugin to do this. Currently I am unable to login wordpress how can I fix this and login into wordpress??
I have cpanel access!
Thanks your time.
If you think there is some plugin which is doing that then go to your wp-content directory and change the name of "plugins" folder as "old__plugins". This will automatically deactivate all your active plugins. If this still won't resolve your issue try searching your functions.php file for the redirection.
If you still don't find anything the then he downloads all your WordPress files and export SQL database and tries to search "otherfolder" in them using any text editor so you will get an idea where exactly that redirection took place.
I have ran into quite the issue.
I have been developing a website hosted locally with MAMP. I always used localhost:90/wordpress/ to access the website and it was worked up till today. A few hours ago, I began the process of moving the website from local server to an actual domain. Unfortunately, I wasn't checking URLs and ended up changing some information and working on localhost myPHPadmin panel as opposed to the domain myPHPadmin panel. Long story short, I changed so much before I realized my mistake, then proceed to change even more, and now I am lost and don't know what to do. At this point, I am just trying to get access to my local hosted website so I can start over again.
The issue:
Everytime I goto localhost:90/wordpress, Chrome redirects me to localhost/wordpress and my website doesn't show, it says that the website can't be shown.
I have tried going into my local hosted myPHPadmin panel and changing siteurl and home to both say localhost, but no luck. Interestingly, when I change both to wordpress, it shows an unformatted version of my homepage (Kinda like just straight HTML), with limited images, however if I click any links then it brings me to wordpress/about and it doesn't exist. If I change it to just localhost:90, it shows my unformatted wordpress Page not found page. Can't access wp-admin with any of them.
I have tried using a replace tool recommended in another thread, but searching for localhost and replacing with localhost:90 yielded no results for me. I have also double checked the .htaccess folder and it is correct. I have cleared cookies/cache and still nothing. I am desperate.
Any help is much appreciated.
I am not sure what the issue is here so I am going to shoot in the dark here and hopefully one of these methods will get you out of your predicament. Since you say that you have reverted all the changes you made and still your website is inaccessible, even wp-admin.
You can try doing the following:
Change the siteurl and homeurl links in your PHPmyadmin to localhost:90/wordpress or whatever it was before when your site was running and functional.
In your Wordpress root folder, there is a file called wp-config.php. Open that file and find:
* #package WordPress
*/
Add after:
define('WP_HOME','localhost:90/wordpress');
define('WP_SITEURL','localhost:90/wordpress');
You will replace all localhost:90/wordpress if need be by which I have written in my codes to what the link was before; when the site was functional.
Check the file thoroughly and through Find/Replace function of your favourite text editor for no duplicate entries.
Now try accessing wp-admin. If you still cannot access your wp-admin, take a backup of your current wp-admin folder.
From a fresh Wordpress of the same version as yours, copy the wp-admin folder and replace it with your current wp-admin folder. Now try to access wp-admin again.
If you are able to access it and login, refresh your Permalinks. See if your site is accessbile again after doing these steps.
Update:
Since none of those steps worked for you, try doing the following:
Delete all the Wordpress core files from your localhost:90/wordpress EXCEPT wp-config.php and your wp-content folder.
Now from a fresh Wordpress folder, copy the files and folders EXCEPT wp-config.php file and wp-content folder. Paste them in your localhost:90/wordpress folder.
Try accessing your website now.
Update 2:
Try uploading your Wordpress to your online server and change the values of siteurl and homeurl in your wp-config.php file. We defined the localhost addresses in the file, now you will update those with your domain details.
Take a fresh backup of your database from your localhost and import it into a new database in your online server. Update the homeurl and siteurl in your newly imported database.
Update your wp-config.php with the new database name and username and password of the account you have given all privilages to access the database.
Try accessing wp-admin now.
If successful, update your Permalinks and then try accessing your website.
This will tell us if your localhost is faulty.
I am trying to get a client's WordPress site copied over to my company's server to use as a development site. I've ran into an issue when trying to log into the site's administrator panel; it redirects us to the existing site's URL instead (ending up as [OLD SITE]/[NEW URL]/wp-admin). Additionally, trying to go to any page other than the homepage gets a 404.
I've tried editing the wp-config and defining the WP_HOME and WP_SITEURL there, with no success. In a previous attempt we used a backup tool that was meant to replace references to the old URL with the new URL, and on another we ran queries and checked through wp-options in the database to be sure that we caught all of the old references. Still redirects to the old site.
We've tried restoring from two backups, Akeeba and BackUpWordPress. Our current attempt is a copy we've downloaded directly and then uploaded (with an imported SQL backup).
Another odd thing I've noted is that changing one of the URLs in the database causes more issues. Mainly, if I update the URL of 'wordpress-https_ssl_host' in the wp-options table, the theme breaks. Not sure where to go with this from here.
I'm always succesfully using the following script : search & replace:
https://interconnectit.com/products/search-and-replace-for-wordpress-databases/
in order to update a wordpress site url.
Just copy the provided code in a directory under your site, then launch the provided index.php in a browser: the database infos should be automatically determined. Then specify the old and new urls and click on "Run" !
Don't forget to remove the created directory afterwards.
For solving this issue you have to change siteurl in database wp_options table
option_name = siteurl where
option_value = YOUR OLD SITE URL
change your old site url and update it with your local developement site URL
Hope this will help you..
We found the problem; as it turns out it was nothing to do with anything from the default WordPress files. The client was using an extension called WordPress HTTPS, and apparently that was causing a conflict somewhere. We renamed the extension's folder to disable it and everything ran fine. I imagine it was overriding what we were setting in wp-config.
Today I was trying to install a new copy of WordPress on my local machine. There was a working copy of a site in there that I accidentally deleted. So I tried to reinstall WordPress on that existing database. Everything was fine, but in the last stage of the installation a weird message was coming up. It was saying Please provide a valid username. and there wasn't a field to provide a username, instead the text User(s) already exists. I have never come around this and neither have I heard of it. I am curious to know why WordPress is wanting a username when the field is locked. Is this a bug or something else?
Thanks in advance.
I am adding this answer as this page comes up at the top of search engine results for "Please provide a valid username"
If your WordPress installation is in a subfolder of an existing website...
e.g. www.example.com/dev/
The username will not be accepted if you have a .htaccess file at the root of the website.
Rename the .htaccess file to something else.
Continue with the WordPress installation.
Then rename the .htaccess file back to what it was.
I've faced it a few days ago, fixed it this way.
1. At first exported (backup) old database.
2. Installed a new copy of WordPress with a new empty database (settings should be using your old database username, password, etc).
3. Imported the old database to new installation.
4. Uploaded the uploads folder (images) to new installation.
Problem solved, hope this helps!