Wordpress Livejournal Crossposter Fix

31 03 2008

Just upgraded to Wordpress 2.5 with it’s frankly upsetting redesign of the backend. I loved the old one, not so keen on this just yet. Of course, to you readers, it doesn’t matter.

Part of the problem is that the LJXP Livejournal Crossposter 2.0 no longer works with Wordpress 2.5, so I’m just testing out a fix now. If all goes to plan we should be back in business. To do my good deed for the day, beneath the cut (as you say in Livejournal Land) is the simple code modification for anyone who is googling to find the answer, as I unsuccessfully did. This fix will restore the options page, and stop the “Plugin could not be activated because it triggered a fatal error” message (because the plugin will be activated, obv.)

Still, it’s all here, if you can’t get it to work with this, it’s not my problem. Also, if it breaks in future versions, that’s also not my problem. Enjoy:

In the lj_crosspost.php file, replace this bit:

require_once(ABSPATH . ‘/wp-includes/class-IXR.php’);
if(version_compare($wp_version, “2.1″, “<”)) {
 require_once(ABSPATH . ‘/wp-includes/template-functions-links.php’);
}

With this:

require_once(ABSPATH . ‘/wp-includes/class-IXR.php’);
//if(version_compare($wp_version, “2.1″, “<”)) {
// require_once(ABSPATH . ‘/wp-includes/template-functions-links.php’);
//}
require_once(ABSPATH . ‘/wp-includes/link-template.php’);

That worked for me. Why and whether it will work for you, I can’t (or won’t) explain. You’re on your own.


Actions

Informations

Leave a comment

You can use these tags : <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>