Since things have just been going too smoothly for me lately [/sarcasm], I think I’ll jump in blindly and upgrade my WordPress install *fingers crossed*
[edit I] So far, so good…my site comes up, the plugins I’ve checked seem to be working (even the broken version of Live+Press)…
[edit II] The oddest thing happened after I tried submitting my previous edit to this post:
At the bottom of the screen:
| Warning: Cannot modify header information - headers already sent by (output started at /home/.marsh/creepigurl/creepigurl.com/wp-includes/class-IXR.php:504) in /home/.marsh/creepigurl/creepigrl.com/wp-admin/post.php on line 122 |
[edit III] It seems WordPress just HATES Live+Press ~ the error only appears when editing a post with the ’synch with LiveJournal’ option ticked. I did a bit of poking around and couldn’t see a quick fix. The error above was received using the plugin’s version of class-IXR, the tired old ‘…array…’ errors appeared and Live+Press failed when using the newest version of class-IXR. Being much too tired to dig any further, I’ve decided to step back down to WordPress 2.0 for the time being. Perhaps I’ll try again this weekend…
[edit IV] 02/01/2006 OK, I realize I’m probably setting myself up for some problems down the road, but curiosity got the better of me and I ‘re-upgraded’ to WordPress 2.0.1. I made a few changes to the class-IXR.php file packaged with WP 2.0.1 and Live+Press seemed just as functional as it was prior to upgrading to WordPress 2.0.1.
The changes to the new class-IXR.php file are as follows:
- I changed line 526 from
to$contents .= trim($line)."\n";
(as in Unteins version of class-IXR.php).$contents .= trim($line); //Unteins Fix Original: trim($line)."\n"; - I commented out line 497:
and line 530://echo '<pre>'.htmlspecialchars($request)."\n</pre>\n\n";//echo '<pre>'.htmlspecialchars($contents)."\n</pre>\n\n";
I probably don’t say this often enough ~ but WordPress is an absolutely fantastic blogging platform. The developers, support techs/volunteers, plugin developers, etc. have done an amazing job on this (surprisingly —>) *free* product.
[Note] In order to get Live+Press 1.5.2 to work with WP 2.0.1 several of the plugin files need *slight* modifications in addition to the modification of class-IXR.php. The changes to LivePress.php, lpextras.php and lpeditjournal.php can be found ::here:: (or downloaded as version 1.99 on Untiens’ site).
hopeful




Trying this fix, for my newly updated WP - I noticed that my class-IXR.php (which worked with my 1.5.2 version of Live+Press and my 1.5.? version of WordPress) has totally different line numbers for the lines you said to comment out - your line 526 is my line 529, and your line 497 was my 504, and line 530 was 533…
Since this didn’t fix my stupid error messages, I’m assuming I’ve got one messed up class-IXR.php file. Any ideas?
In the meantime, I’m going to try other things… Thanks so much for your little solution here - I’m just hoping I can get it to work!
I couldn’t get the old class-IXR.php to work with WP 2.0.1 so ditched it and grabbed the latest version of class-IXR.php packaged with WP 2.0.1. I added Untiens ‘ (the maintainer of Live+Press) original changes and commented out the additional lines listed above. The class-IXR.php packaged with WP 2.0.1 seems vastly different than the old file I was using prior to upgrade ~ carrying the changes over to the old file seemed redundant.
Did you make changes to the Live+Press 1.5.2 files? Even with the modified class-IXR.php file I don’t know if the plugin will work with 2.0.1 without the changes made to the plugin files (found ::here::)
If it helps, you can find text versions of the modified files I am using below:
http://creepigurl.com/docs/class-IXR.phps
http://creepigurl.com/docs/LivePress.phps
http://creepigurl.com/docs/lpeditjournal.phps
http://creepigurl.com/docs/lpextras.phps
I believe Untiens added the changes I’ve made to the three Live+Press files in version 1.99 of the plugin (available for download on his site: LivePress_1.99.zip).
I hope this helps =)
Yuh - I tried changing the files on my own, as well as downloading the 1.99 version on his site (found out that you need to rename the folder 1.5.2 or else you get errors in the Live+Press admin section!) - but still with the same old tired array errors.
I’ll try your version of the files, and cross my fingers - If it works for you, you’d think it ought to work for me. I’m sneakily suspicious that my LJ usericons have something to do with why it keeps breaking…
Hmmm - tried your versions of the file…. Something odd happened! I still see the array errors on my posting page, plus now I see this in the “Edit Journal Settings” page of the LivePress options:
WordPress database error: [Table ‘***.wp_users’ doesn’t exist]
SELECT user_login FROM wp_users WHERE user_status = 0 ORDER BY user_login
Warning: Invalid argument supplied for foreach() in /mounted-storage/home/sub005/sc10577/blog/wp-content/plugins/LivePress_1.5.2/LivePress/lpeditjournal.php on line 122
And the *** is where it displays the name of my database (*d so that nobody tries to go poking around on my journal - I’ve been hacked before).
I had an entry saved as a draft - when I published it, it went through to my Live Journal, but I got that odd page just like you got up above, there - the one where it outputs all the fun code, instead of just taking you to a blank post.php page.
So as it stands, I can post to my journal, even with all the errors, but I can’t post to communities or use my icons.
Are you working with version 2.0.1 of WordPress? I believe the old class-IXR.php will work with any version prior to this release.
I went ahead and tested my friend’s unused WordPress install. I upgraded her install from 2.0 RC3 to 2.0.1. I then copied my Live+Press 1.5.2 directory (with modified files) over her existing directory. Finally I copied the modified class-IXR.php over the copy included with 2.0.1. After verifying my “test LJ” settings in the option page I made a test post using Live+Press (which worked ~ even with the rich text editor). The steps I took can be found here: http://hexgirl.net/?p=11
Thanks for your notes. It seems that deleting entries still does not work, is that correct, or did you ever figure anything out there?
To be honest I haven’t had the time to look into finding a fix (I was hoping Untiens would have ireleased a ‘fixed’ version of Live+Press =) I started digging through the LJ Client/Server Protocol Docs, but I haven’t made any headway just yet =/
Well, if you have the time to update here if you do figure it out, I’d appreciate it. It’s not a major issue right now for me, but I might start looking into it as well at some point.
Another question. I use the inofficial .99 release of Live+Press, set up exactly as in http://www.heinous.org/wiki/LiveJournal_XML_Export_Script#Live.2BSync_plugin. All I did was make your changes to class-IXR.php, I did not modify any of the Live+Press files, and things have been working okay outside of the delete function. You mentioned the need to do mods from http://www.creepigurl.com/2006/how-to-break-livepress/ as well, but it doesn’t seem necessary for me. Is there something that I am missing?
You’re not missing anything ~ the mods I came up with were used by Untiens in 1.99 (I’m the ‘user’ he refers to). If you have 1.99 than the changes to class-IXR.php should be all you need to get up and running on WP 2.0.1.
I’m not sure if this comment went through correctly, sorry if this ends up reposting.
Well, if you have the time to update here if you do figure it out, I’d appreciate it. It’s not a major issue right now for me, but I might start looking into it as well at some point.
Another question. I use the inofficial .99 release of Live+Press, set up exactly as in http://www.heinous.org/wiki/LiveJournal_XML_Export_Script#Live.2BSync_plugin. All I did was make your changes to class-IXR.php, I did not modify any of the Live+Press files, and things have been working okay outside of the delete function. You mentioned the need to do mods from http://www.creepigurl.com/2006/how-to-break-livepress/ as well, but it doesn’t seem necessary for me. Is there something that I am missing?
Sorry ~ the comment got stuck in moderation due to the # of links. I’ve been a bit slack checking my messages for comments lately…