I updated 3 websites with 4.0 a couple of days ago and had the 500 Internal Server Error message on all sites which seemed to come and go.
2 sites are now fine but one (the most important of course) seems to have “crashed”. When I try to login to wp-admin I get a message to repair wp-config.php file by adding define(‘WP_ALLOW_REPAIR’, true);
I’ve done that and over-written file on server. No change.
The following code is in the file repair.php and Microsoft expression Web is highlighting the code $_GET as being an error.
Is this the problem? It’s rather troubling to say the least especially as I’m not an expert, just a gifted amateur!!!
if ( ! defined( ‘WP_ALLOW_REPAIR’ ) ) {
echo ‘<p>’ . __( ‘To allow use of this page to automatically repair database problems, please add the following line to your wp-config.php file. Once this line is added to your config, reload this page.’ ) . “</p><p>define('WP_ALLOW_REPAIR', true);</p>”;
} elseif ( isset( $_GET[‘repair’] ) ) {
$optimize = 2 == $_GET[‘repair’];
Ah, ha. Now I clicked another button and have been told to key the following information into support in the hope that someone can help.
wp_usermeta: 2 clients are using or haven’t closed the table properly
wp_posts: 1 client is using or hasn’t closed the table properly
wp_options: Table is marked as crashed
wp_postmeta: 2 clients are using or haven’t closed the table properly
wp_term_taxonomy: 1 client is using or hasn’t closed the table properly
wp_term_relationships: 1 client is using or hasn’t closed the table properly
SORTED – ALL DONE BY SOME AMAZING TECHNOLOGY!!! YIPEEEE
mine hasn’t been sorted yet 🙁 someone?
Jelenaskopje. OK download the wp-config.php file, add the string
define(‘WP_ALLOW_REPAIR’, true);
and then upload the new wp-config.php file overwriting the one that’s there already.
Return to the browser page where you got the message to amend the file.
Then you click on something (sorry I can’t remember what) and you get 2 buttons. Click the first one. I think it says Repair.
This is not obvious. I only discovered this button after returning 3 times to the browser page.
You then get a screen that shows the problem. It suggests you enter the information into a support forum. I didn’t need to do this really.
Just sit tight and wait. For me it was repaired.
Finally you get a message asking you to delete the string
define(‘WP_ALLOW_REPAIR’, true);
from the wp-config.php file. So do that and upload again. That’s just for security.
Hope this works for you.
I’m signing out on this query and will not be receiving email updates. Good luck everyone with same problem.