Re: Problem next_posts_link() in P2 integration attempt
The first thing I’d do to start debugging is to find out what the value of $base and $request are where it gets assigned to $result. If you see blogname in both, that’s your problem.
$base = trailingslashit( get_bloginfo( 'url' ) );
The above line should dump whatever you have set in you WP General Settings as the Blog URL. If that includes blogname, then the code creating the $request is doing something funky.