Ryan Boren
Forum Replies Created
-
Forum: Installing WordPress
In reply to: PERMALINK Problem on WordPress 2.0Rudeseal, does “prevented from accessing” mean you are getting 404s? Did permalinks work for you with 1.5.2? Can you give me Debug Env output?
Forum: Installing WordPress
In reply to: PERMALINK Problem on WordPress 2.0That page looks like a WP generated 404 page. In that case the Debug Env plugin will be helpful.
I notice that your page is in / while your post is /blog/. Typically both live in the same root. Debug Env will help me fix permalinks for your setup.
Forum: Fixing WordPress
In reply to: WP 2.0 messed up my permalinksrogopag, to help me debug, download, install, and activate the Dump Env plugin. Visit a page that is giving a 404. Save the page source for that page. Forward the page source to ryan at boren dot nu. Deactivate the plugin when finished.
Forum: Fixing WordPress
In reply to: WP 2.0 messed up my permalinksHere are the latest functions-post.php and classes.php. Those fix all permalink bugs that I am aware of. If you grabbed the classes.php mikae1 linked to above, please update to this classes.php. It fixes a paging bug.
Copy those two files into wp-includes and then visit Options->Permalink to force the rewrite rule cache to update.
Sorry for the permalink bugs. Supporting all of the different hosting environments is difficult.
Forum: Installing WordPress
In reply to: MT Import Memory LeaK?Right you are. I think post caching is getting in the way. We need to turn it off somehow when importing. We set a WP_IMPORTING flag when importing. We could check for that in get_post() and not cache if it’s set. I’ll look into it.
Forum: Fixing WordPress
In reply to: WP 2.0 messed up my permalinksLooks like you have some redirection going from your subdomain to a subdirectory that breaks the new permalink processing. I sent you a patch that might help.
Forum: Fixing WordPress
In reply to: WP 404 on permalinksrtatum, I can debug this with a little help. Download, install, and activate the Dump Env plugin. Visit the page that is giving a 404. Save the page source for that page. Forward the page source to ryan at boren dot nu. Deactivate the plugin when finished.
Forum: Fixing WordPress
In reply to: Not importing comments from movabletypeStick that in a file (say fix_mt_import.php) in wp-admin and load it.
Forum: Fixing WordPress
In reply to: Not importing comments from movabletype<?php
require_once('admin.php');
echo "Approving comments...";
// Approve all comments
$wpdb->query("UPDATE $wpdb->comments SET comment_approved = '1'");
echo "Updating post counts...";
// Populate comment_count field of posts table
$comments = $wpdb->get_results( "SELECT comment_post_ID, COUNT(*) as c FROM $wpdb->comments WHERE comment_approved = '1' GROUP BY comment_post_ID" );
if( is_array( $comments ) ) {
foreach ($comments as $comment) {
$wpdb->query( "UPDATE $wpdb->posts SET comment_count = $comment->c WHERE ID = '$comment->comment_post_ID'" );
}
}
echo "Done.";
?>
Forum: Fixing WordPress
In reply to: Not importing comments from movabletypeI’ll provide a script to fix your DB, but I’m traveling right now so it might take a day.
Forum: Fixing WordPress
In reply to: 2.0 Time Stamps of Draft PostsHmmm, I think you hit a little backward incompatibility gotcha. The new code assumes that drafts are saved without timestamps. It has no way of knowing that the old 1.5 draft that has a timestamp isn’t a 2.0 draft moved from publish back to draft. That’s why it doesn’t try to update the timestamp upon publish. I think you’ll have to create new drafts and cut-and-paste content into them from the old ones if you want updated timestamps. Annoying, I know. I’ll see if we can fix this up for the future. I’m not too thrilled with how the timestamp lifecycle is working out.
Forum: Fixing WordPress
In reply to: Login doesn’t stickNo, the 2.0 release is what it is. The fix will be in a maintanence release, or you can grab the next nightly build to get that fix plus all of the other fixes for 2.0 so far.
Forum: Fixing WordPress
In reply to: Login doesn’t stickOkay, wp-login.php isn’t redirecting. If you visit wp-login.php directly, it will ask you to login even if you already are. However, if you visit anywhere in wp-admin/, those pages will recognize your current login. So, you don’t really have to login again, it just looks like you do. This is annoying, however, so here’s a fixed wp-login.php. Copy it over the top of your existing wp-login.php file.
Forum: Fixing WordPress
In reply to: Where are the upload options in WP 2?When you add an image to a post, you can resize on the fly by clicking it and dragging the grab bars.
Forum: Fixing WordPress
In reply to: Can’t Use Old Theme in 2.0 (Not selectable in Presentation tab)Make sure the “Theme Name:” field in style.css is something unique. Having two themes with the same Theme Name could cause your problem.