If you setup a WordPress site on a server in intranet behind a proxy, you might get following error when you search plugins and themes in admin console.
An Unexpected HTTP Error occured during the API request.
This is because WordPress does not know the proxy server to talk to external internet. To resolve this, simply enable proxy by adding following lines to wp-config.php file
Replace 192.168.110.1 and 80 with your actual proxy server and port.
If the intranet proxy requires user authentication, appending following lines.
Admin bar is one of new features in WordPress 3.1. It’s automatically enabled for all logged-on user.
To disable the admin bar in WordPress 3.1, append the following code into functions.php file, you can find function.php under the theme folder.
remove_action( ‘init’, ‘wp_admin_bar_init’ );
WordPress 3.0 is finally released with some great new features.
I just upgraded my site to 3.0 today. The upgrade was smooth, however, I find that export doesn’t work any more. When I try to push export button to download posts xml file locally, I get following error.
Warning: Illegal offset type in isset or empty in /home/content/22/5401722/html/wp-includes/taxonomy.php on line 176
Warning: Cannot modify header information – headers already sent by (output started at /home/content/22/5401722/html/wp-includes/taxonomy.php:176) in /home/content/22/5401722/html/wp-admin/includes/export.php on line44
Warning: Cannot modify header information – headers already sent by (output started at /home/content/22/5401722/html/wp-includes/taxonomy.php:176) in /home/content/22/5401722/html/wp-admin/includes/export.php on line45
Warning: Cannot modify header information – headers already sent by (output started at /home/content/22/5401722/html/wp-includes/taxonomy.php:176) in /home/content/22/5401722/html/wp-admin/includes/export.php on line46
WordPress FAQ suggests checking spaces in wp-config.php and remove blank spaces before <?php tag or after ?> tag, I try and it does not help.
After trying deactivate on every single plug-in, I figure out it’s the plug-in Simple Tags that breaks WordPress 3.0 new export feature. Before Simple Tags owner releasing a fix, you can temp workaround this issue by deactivating Simple Tags plugin. After that, you will be able to get exported xml file to save.
WordPress team has announced WordPress 3.0 beta 2 is shipped. It seems that release candidate will be coming very soon.
Things to test in 3.0 beta 2
- Revised menu user interface
- Changes to the WordPress exporter and importer to make it more flexible
WordPress 3.0 changes
Check out my previous post WordPress 3.0 Features. I will keep updating there.
Note: it’s recommended not try beta version WordPress on production site.
In most of WordPress themes, there is not meta description and meta keywords handle. This result every page of site has a empty description and keyword in page header, which is not good from search engine’s perspective.
This can be workaround by installing plug All in One SEO. But for those who concern plugin will slow down their sites, here is a simple hack, all needs to do here is just adding a few lines in header.php.
Firstly open header.php, find this line <meta http-equiv=”content-type” content=”text/html; charset=<?php bloginfo(‘charset’); ?>” />
WordPress 3.0 has a few great new features and improvement.
Ability to Choose Username When Installing WordPress
In previous version WordPress, default username for Admin is hard coded as admin. In WordPress 3.0, this secure hole is fixed, default user name can be customized when you install WordPress.
After setup local WordPress environment, WordPress will generate a password for admin logon. The password is so strong that forget the password can easily happen. The easiest way to get admin password back is reset it again in database.
Here is the SQL command that will do it:
UPDATE ‘wp_users’ SET ‘user_pass’ = MD5(‘PASSWORD‘) WHERE ‘user_login’ =’admin’ LIMIT 1;
Note you need update red PASSWORD to the real password you want reset.
After the command succeeds, you will be able to login to WordPress with new password.
WordPress is one of most popular blog applications. This application is very easy to use however setup a local environment for theme or plugin development on windows system is not that easy for bloggers. In this post, I will walk thru you how to setup local WordPress environment using Microsoft Web Platform Installer 2.0 with just a few clicks. (I am using 64bit Windows 7 in this tutorial but same steps work windows server 2008 as well)