How to Fix: WordPress Admin Dashboard Does Not Appear After Upgrade

Problem: You update/upgrade WordPress to a new version. All lokks great until you log into the admin area. You get a error page and the page redirect to a url that includes “/wp-admin/upgrade.php?_wp_http_referer=%2Fwp-admin%2F”.

Fix: After clearing cache and the usual errors, there is another possible culprit. The db_version in the database and in the config files do not match. To fix this, open the database in PhpMyAdmin, in the wp_options table, look at the db_version field. Now FTP to the site, and look at the wp_db_version variable in the file /wp-includes/version.php files. If they do not match, this is your likely problem. In most cases, the database needs to be edited to match the version in the file. Change the version number in the database, then open the WP admin in a new browser and try to login again. Hopefully this solves your problem.

SQL Code For Changing WordPress URL

Code to use for replacing urls in wordpress database:

UPDATE wp_posts SET guid = replace(guid, '','');
UPDATE wp_posts SET post_content = replace(post_content, '', '');
UPDATE wp_links SET link_url = replace(link_url, '', '');
UPDATE wp_links SET link_image = replace(link_image, '', '');
UPDATE wp_postmeta SET meta_value = replace(meta_value, '', '');
UPDATE wp_usermeta SET meta_value = replace(meta_value, '', '');
/*UPDATE wp_options SET option_value = replace(option_value, '', '') WHERE option_name = 'home' OR option_name = 'siteurl' OR option_name = 'widget_text' OR option_name = 'dashboard_widget_options';*/
UPDATE wp_options SET option_value = replace(option_value, '', '');

Add a Driving Directions Form to a Website

This code adds a small field to enter an address, plus a “Get Directions” button. The results are shown as Google Maps directions.

Be sure to edit your destination address in the code.

<form action="" method="get" target="_blank">
   <label for="saddr">Enter your location</label>
   <input type="text" name="saddr" />
   <input type="hidden" name="daddr" value="101 Main St, Tampa, FL 33615" />
   <input type="submit" value="Get directions" />