Fatal error: Cannot instantiate non-existent class: xml_rpc

Creating and modifying plugins.
Post Reply
bdconnolly
Regular
Posts: 140
Joined: Tue Apr 04, 2006 9:37 pm

Fatal error: Cannot instantiate non-existent class: xml_rpc

Post by bdconnolly »

Fatal error: Cannot instantiate non-existent class: xml_rpc_value in /home/strumpet/public_html/plugins/serendipity_event_weblogping/serendipity_event_weblogping.php on line 217

Sorry I cannot find this so if this is a repeat post, just point me to the thread.

Ocassionally, when I post an article using Advanced options Announce Entries, I get the error above.

Thoughts?

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

Re: Fatal error: Cannot instantiate non-existent class: xml_

Post by garvinhicking »

Hi!

Which serendipity version are you using? Did you delete anything from your bundled-libs directory? Especially, does the XML/RPC.php file exist in your install?

Does your server include any non-s9y related PEAR codes somewhere?

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/
shafraz
Regular
Posts: 8
Joined: Tue Jun 27, 2006 7:51 am

Sending XML-RPC ping error

Post by shafraz »

Hi garvinhicking,

Me too have the same problem. I upgraded the blog to v 0.9.1 and installed event plugin Announce entries (via XML-RPC ping)


when ever i add a new entry i get this error....

Sending XML-RPC ping to host rpc.blogrolling.com...

Fatal error: Cannot instantiate non-existent class: xml_rpc_value in /home/vhost/public_html/serendipity/plugins/serendipity_event_weblogping/serendipity_event_weblogping.php on line 200


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

Re: Sending XML-RPC ping error

Post by garvinhicking »

Hi!

Please upgrade to Serendipity 1.0, this is the most recent version. Also make sure your bundled-libs/ directory contains the "XML/RPC" directory tree.

HTH,
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/
shafraz
Regular
Posts: 8
Joined: Tue Jun 27, 2006 7:51 am

thanx

Post by shafraz »

OK, let me upgrade to version 1.0. i wish it will solve the problem.

thank you.
shafraz
Regular
Posts: 8
Joined: Tue Jun 27, 2006 7:51 am

thanx again

Post by shafraz »

Hey Thanx for your help and its working ...


I have some other issue, its failing for api.my.yahoo.com...

Sending XML-RPC ping to host rpc.pingomatic.com...Success!!
Sending XML-RPC ping to host ping.blo.gs...Success!!
Sending XML-RPC ping to host rpc.blogrolling.com...Success!!
Sending XML-RPC ping to host rpc.technorati.com...Success!!
Sending XML-RPC ping to host rpc.weblogs.com...Success!!
Sending XML-RPC ping to host xmlrpc.blogg.de...Success!!
Sending XML-RPC ping to host api.my.yahoo.com...Failure(Reason: Invalid return payload: enable debugging to examine incoming payload)
Sending XML-RPC ping to host blogbot.dk...Success!!
Your entry has been saved


what could be the reason?

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

Re: thanx again

Post by garvinhicking »

Hi!

The reason could be that yahoo changed their pingback API or their server is having problems...I'll try to investigate that the next days.

Best 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/
shafraz
Regular
Posts: 8
Joined: Tue Jun 27, 2006 7:51 am

debug

Post by shafraz »

Sending XML-RPC ping to host api.my.yahoo.com...

---GOT---
<!doctype html public "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><head><title>Yahoo! - 403 Forbidden</title><style>
/* nn4 hide */
/*/*/
body {font:small/1.2em arial,helvetica,clean,sans-serif;font:x-small;text-align:center;}table {font-size:inherit;font:x-small;}
html>body {font:83%/1.2em arial,helvetica,clean,sans-serif;}input {font-size:100%;vertical-align:middle;}p, form {margin:0;padding:0;}
p {padding-bottom:6px;margin-bottom:10px;}#doc {width:48.5em;margin:0 auto;border:1px solid #fff;text-align:center;}#ygma {text-align:right;margin-bottom:53px}
#ygma img {float:left;}#ygma div {border-bottom:1px solid #ccc;padding-bottom:8px;margin-left:152px;}#bd {clear:both;text-align:left;width:75%;margin:0 auto 20px;}
h1 {font-size:135%;text-align:center;margin:0 0 15px;}legend {display:none;}fieldset {border:0 solid #fff;padding:.8em 0 .8em 4.5em;}
form {position:relative;background:#eee;margin-bottom:15px;border:1px solid #ccc;border-width:1px 0;}
#s1p {width:15em;margin-right:.1em;}
form span {position:absolute;left:70%;top:.8em;}form a {font:78%/1.2em arial;display:block;padding-left:.8em;white-space:nowrap;background: url(http://us.i1.yimg.com/us.yimg.com/i/s/bullet.gif) no-repeat left center;}
form .sep {display:none;}.more {text-align:center;}#ft {padding-top:10px;border-top:1px solid #999;}#ft p {text-align:center;font:78% arial;}
/* end nn4 hide */
</style></head>
<body><div id="doc">
<div id="ygma"><a href="http://us.rd.yahoo.com/403/*http://www.yahoo.com"><img
src=http://us.i1.yimg.com/us.yimg.com/i/yahoo.gif
width=147 height=31 border=0 alt="Yahoo!"></a><div><a
href="http://us.rd.yahoo.com/403/*http://www. ... >Yahoo!</a>
- <a href="http://us.rd.yahoo.com/403/*http://help ... /div></div>
<div id="bd"><h1>Sorry, Forbidden.</h1>
You don't have permission to access this URL on this server.<P>
<p>Please check the URL for proper spelling and capitalization. If
you're having trouble locating a destination on Yahoo!, try visiting the
<strong><a
href="http://us.rd.yahoo.com/403/*http://www.yahoo.com">Yahoo! home
page</a></strong> or look through a list of <strong><a
href="http://us.rd.yahoo.com/403/*http://docs ... ">Yahoo!'s
online services</a></strong>. Also, you may find what you're looking for
if you try searching below.</p>
<form name="s1" action="http://us.rd.yahoo.com/403/*-http://sea ... ><fieldset>
<legend><label for="s1p">Search the Web</label></legend>
<input type="text" size=30 name="p" id="s1p" title="enter search terms here">
<input type="submit" value="Search">
<span><a href="http://us.rd.yahoo.com/403/*http://sear ... ">advanced search</a> <span class=sep>|</span> <a href="http://us.rd.yahoo.com/403/*http://buzz.yahoo.com">most popular</a></span>
</fieldset></form>
<p class="more">Please try <strong><a
href="http://us.rd.yahoo.com/403/*http://help ... com">Yahoo!
Help Central</a></strong> if you need more assistance.</p>
</div><div id="ft"><p>Copyright © 2006 Yahoo! Inc.
All rights reserved. <a
href="http://us.rd.yahoo.com/403/*http://priv ... m">Privacy
Policy</a> - <a
href="http://us.rd.yahoo.com/403/*http://docs ... ms/">Terms
of Service</a></p></div>
</div></body></html>
<!-- oc5.my.scd.yahoo.com uncompressed/chunked Mon Jul 3 00:41:43 PDT 2006 -->

---END---

Failure(Reason: Invalid return payload: enable debugging to examine incoming payload)
Your entry has been saved
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: debug

Post by garvinhicking »

Hi!

Yes, their API has changed it seems, or your server is being blocked from their service.

We need to contact Yahoo to ask how they changed that service...

Best 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/
shafraz
Regular
Posts: 8
Joined: Tue Jun 27, 2006 7:51 am

Post by shafraz »

i found this in yahoo pages..

http://publisher.yahoo.com/rss_guide/help.php#refresh

The REST interface is as follows:

URL: http://api.my.yahoo.com/rss/ping
Parameter(s): u=<site or feed url>
HTTP method: GET

Examples:

http://api.my.yahoo.com/rss/ping?u=http ... topstories
http://api.my.yahoo.com/rss/ping?u=http ... e.com/blog

The XML-RPC interface is as follows:

RPC endpoint: http://api.my.yahoo.com/RPC2
Method name: weblogUpdates.ping
Parameter(s):
Name of site (string)
URL of site or RSS feed (string)
Returns Struct with two members:
flerror (boolean) which is true if an error occurred.
message (string) which contains "OK" (if successful) or the error message
shafraz
Regular
Posts: 8
Joined: Tue Jun 27, 2006 7:51 am

Post by shafraz »

garvinhicking

can you get anything from above post...

the debug for ayhoo api ping gave me page not found error.

http://api.my.yahoo.com/
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Hm, but api.my.yahoo.com/RCP2 is exactly the URL the plugin uses. :-/
# 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/
Post Reply