is_wp_error() and handling errors

WordPress can be inconsistent as to when is returns a WP_Error object and when it just returns false or string(0) when actually there was an error. I am not sure exactly what feedburner is returning that is not triggering a WP_Error from wp_remote_get() – but if you know wp_remote_get() will return an WP_Error, I would … Read more

Fatal error with a theme

First thing i ran across was this conversation about the same issue. I couldn’t find it in the theme repo, but found it accessible via svn @repo. Now please answer some basic questions: Which version (wp & quality control) are you running? Could you share a link to your install? Which modifications have you made? … Read more

How to redirect a URL with parameters?

Your problem ain’t the parameters…it’s that your parametrized URL points to the wrong target…it has a .html where it should have a slash. …/windows-restarts-at-ec2.html?action=backlinks&wid… Change it to …./windows-restarts-at-ec2/?action=backlinks&wid… and you’ll see it works.

CSV file generation failing

Try this: <?php header(“Content-type: application/csv”); header(‘Content-Disposition: inline; filename=”export.csv”‘); // change this filename include (‘../../../wp-load.php’); // may need to change number of “../” depending upon location global $wpdb; $rows = $wpdb->get_results (“SELECT * FROM {$wpdb->prefix}table_name”); // change the table name echo strtolower(implode(‘,’, array_keys((array)$rows[0]))) . “\r\n”; // fixes an Excel bug if the first column is “ID” … Read more

Any way to check the integrity of a WordPress site?

WordPress is pretty solid, usually misconfigurations get in the way. You want to make sure: you have your wp-config.php file properly set your database is accessible that your home and siteurl settings are properly set in wp_options table sometimes a plugin fouls things up, you can disable all plugins by unsetting active_plugins in the wp_options … Read more