Live Journal Update Plugin

Creating and modifying plugins.
Post Reply
Zhodd

Live Journal Update Plugin

Post by Zhodd »

Hi - I am trying to play around with the live journal update event plugin and I am getting a strange error. I enable and configure the plugin with no problem however when I go to add an entry I get the follow error at the bottom of the screen;

Fatal error: Cannot instantiate non-existent class: xml_rpc_value in /usr/www/users/phaet1/plugins/serendipity_event_ljupdate/serendipity_event_ljupdate.php on line 121

Am I missing something somewhere? Thanks

Sean
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Live Journal Update Plugin

Post by garvinhicking »

The plugin relies on the PEAR XML classes, which are usually bundled within the serendipity bundled-libs directory. Unless you set $serendipity['use_PEAR'] = true in your configration, this should be existant and used.

Which s9y version are you using?

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Zhodd

Post by Zhodd »

Hi Garvin,

I am using version 0.9.1 with PHP 4.3.10. This was an upgrade from 0.8.something. From taking a quick a quick look there is both PEAR and XML related files in the bundled-libs directory and $serendipity['use_PEAR'] = false in the config.


Thanks

Sean
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Can you check if bundled-libs/XML contains the "RPC.php" and "RPC/Server.php" files? Compare if their filesize is the same like in the Serendipity release file.

In the serendipity_event_ljupdate.php file is this code:

Code: Select all

                    if (defined('S9Y_PEAR_PATH')) {
                        include_once(S9Y_PEAR_PATH . "XML/RPC.php");
                    }
please change it to this:

Code: Select all

echo 'Checking XML-RPC...<br />';
                    if (defined('S9Y_PEAR_PATH')) {
echo 'S9Y_PEAR_PATH defined. Including ' . S9Y_PEAR_PATH . 'XML/RPC.php.<br />';
                        include_once(S9Y_PEAR_PATH . "XML/RPC.php");
                    }
echo 'S9Y_PEAR_PATH is not defined! That\'s bad.<br />';
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Zhodd

Post by Zhodd »

Well I did figure out what the problem was after I tried to find the snippet of code you listed before. I managed to download an older tar ball of all the additional plugins so I was using version 1.0 of the LJ plugin rather than 1.5. Things seem to be much happier now.

Thanks again for the assistance
Post Reply