PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Web Services » XML_RPC » Bug #3987

Fatal error: Call to a member function serialize()

Details

Submitted2005-03-29 03:14 UTC
Frommseiler at gmail dot com
Assigneddanielc
StatusBogus
PackageXML_RPC
PHP Version5.0.3
OSFreeBSD 5.4
Roadmaps(Not assigned)

Comments

[2005-03-29 03:14 UTC] mseiler at gmail dot com

Description:
------------
Fatal error: Call to a member function serialize() on a non-object in /usr/local/share/pear/XML/RPC.php on line 1046

I get this when trying to use XML-RPC. The line of code is

Reproduce code:
---------------
$this->payload .= "<param>\n" . $p->serialize() . "</param>\n";

ive tried changing it to $this->serialze() but it still didint work. Could it be a problem with php 5?

Expected result:
----------------
i expect it to work :P

Actual result:
--------------
fatal error

[2005-03-29 18:54 UTC] mseiler at gmail dot com

It was a problem with my script. I had the param part messed up. It was the newest RPC.php from the site though. I downloaded it from here to make sure. Also shouldnt it be a warning or something and not a fatal error? when its just a fatal error it makes you think that RPC.php is broke and not my script. Might be nice to add some debugging to let the programmer know its his fault not the premade script :) I figured out it was me after scratching what I had done and just using the script from the example at about 4am this morning :P I had used the example but changed the param to something only someone coding on little sleep would. Thanks for the help anyways sorry for the "bogus" post :P