{"id":367,"date":"2014-06-11T09:00:15","date_gmt":"2014-06-10T21:00:15","guid":{"rendered":"http:\/\/deborahfitchett.com\/blog\/?p=367"},"modified":"2014-06-10T22:29:42","modified_gmt":"2014-06-10T10:29:42","slug":"random-xmpphp-note-with-autobiographical-footnote","status":"publish","type":"post","link":"https:\/\/deborahfitchett.com\/blog\/2014\/06\/random-xmpphp-note-with-autobiographical-footnote\/","title":{"rendered":"Random XMPPHP note with autobiographical footnote"},"content":{"rendered":"<p>If you happen, for Sekrit Reasons, to be playing with <a href=\"https:\/\/code.google.com\/p\/xmpphp\/\">XMPPHP<\/a> and you get the error message:<\/p>\n<blockquote><p><code>Fatal error: Cannot access protected property XMPPHP_XMPP::$disconnected<\/code><\/p><\/blockquote>\n<p>What you need to do is go into XMPPHP\/XMLStream.php and change line 85 from<\/p>\n<blockquote><p><code>protected $disconnected = false;<\/code><\/p><\/blockquote>\n<p>to<\/p>\n<blockquote><p><code>public $disconnected = false;<\/code><\/p><\/blockquote>\n<p>It&#8217;s possible if not likely that people who know more PHP than I(1) could have figured this out for themselves. But I had to <a href=\"http:\/\/duckduckgo.com\">quack it<\/a>, and the only answer was in a <a href=\"http:\/\/www.phperos.net\/foro\/index.php?topic=4710.15\">Spanish-speaking forum<\/a> (\u00a1muchos gracias!), so I figured it may be worth putting a translation into the eyes of the search engines for folk who didn&#8217;t happen to study Spanish for a few years there.<\/p>\n<p>(1) I went through a stage of learning whatever human languages I could get my hands on, and every few years make an attempt on a new Latin grammar, but I was always most successful when there was a purpose to the learning, like reading novels or translating a Star Trek episode into French or talking to the girl in Mongolia who alerted me to my pocket having just been picked.<\/p>\n<p>When however it comes to computer languages, I&#8217;ve never been sufficiently motivated to learn something just for the heck of it, or to embark on a sufficiently gigantic project that my ordinary task-oriented learning methods have accrued much more knowledge than the basics. If I knew more I&#8217;d probably use it a little more, but with the kinds of things I tackle, what I know is generally enough to either:<\/p>\n<ol>\n<li>solve the problem;<\/li>\n<li>help me figure out how to quack the problem; or<\/li>\n<li>decide that I didn&#8217;t care that much about the problem anyway.<\/li>\n<\/ol>\n<p>Which I feel is a valid solution, given how many other things there are to do in the world than just code.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you happen, for Sekrit Reasons, to be playing with XMPPHP and you get the error message: Fatal error: Cannot access protected property XMPPHP_XMPP::$disconnected What you need to do is go into XMPPHP\/XMLStream.php and change line 85 from protected $disconnected = false; to public $disconnected = false; It&#8217;s possible if not likely that people who [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[15,102,242],"_links":{"self":[{"href":"https:\/\/deborahfitchett.com\/blog\/wp-json\/wp\/v2\/posts\/367"}],"collection":[{"href":"https:\/\/deborahfitchett.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/deborahfitchett.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/deborahfitchett.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/deborahfitchett.com\/blog\/wp-json\/wp\/v2\/comments?post=367"}],"version-history":[{"count":3,"href":"https:\/\/deborahfitchett.com\/blog\/wp-json\/wp\/v2\/posts\/367\/revisions"}],"predecessor-version":[{"id":370,"href":"https:\/\/deborahfitchett.com\/blog\/wp-json\/wp\/v2\/posts\/367\/revisions\/370"}],"wp:attachment":[{"href":"https:\/\/deborahfitchett.com\/blog\/wp-json\/wp\/v2\/media?parent=367"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/deborahfitchett.com\/blog\/wp-json\/wp\/v2\/categories?post=367"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/deborahfitchett.com\/blog\/wp-json\/wp\/v2\/tags?post=367"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}