Page 1 of 1

Live Journal Update Plugin

Posted: Wed Dec 21, 2005 10:29 pm
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

Re: Live Journal Update Plugin

Posted: Wed Dec 21, 2005 10:44 pm
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

Posted: Thu Dec 22, 2005 12:40 am
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

Posted: Thu Dec 22, 2005 11:44 am
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

Posted: Tue Dec 27, 2005 5:15 pm
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