Silje Bruset Barmen wrote: > Hello all. I have installed webreg on my server with php5 and this > works almoast perfect. For now I have just tested it on an MSN > transport, the transport registers and the contacts get added, but > just when I thought it was finished I get this error: > > Importing contact: [EMAIL PROTECTED] > > Importing contact: [EMAIL PROTECTED] > > Importing contact: [EMAIL PROTECTED] > > > *Fatal error*: Cannot use string offset as an array in > */var/www/www.jabber.no/htdocs/scripts/transportreg/class.jabber.php* > on line *507 > > *I understand that this is a problem with PHP4 vs PHP5 and that it is > in the jabber class, but maybe you guys know what the class problem > is? The line in question is: > > "group" => > $incoming_array['iq']['#']['query'][0]['#']['item'][$a]['#']['group'][0]['#'] > > Any help is greatly appreciated! > > Best regards > Stian B. Barmen > ------------------------------------------------------------------------ > > _______________________________________________ > py-transports mailing list > py-transports@blathersource.org > http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports > It has to be modified in such fashion that every element is checked before it's accessed
like this if(array_key_exists($incoming_array, "iq") if(array_key_exists($incoming_array['iq'], "#") if(array_key_exists($incoming_array['iq']['#'], "query") etc... -------------- next part -------------- An HTML attachment was scrubbed... URL: http://modevia.com/pipermail/py-transports/attachments/20051029/b61c4154/attachment.htm From [EMAIL PROTECTED] Sun Oct 30 14:18:03 2005 From: [EMAIL PROTECTED] (Stian B. Barmen) Date: Sun Oct 30 14:18:29 2005 Subject: [py-transports] webreg and PHP 5 In-Reply-To: <[EMAIL PROTECTED]> References: <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> Message-ID: <[EMAIL PROTECTED]> Vasili Sviridov wrote: > Silje Bruset Barmen wrote: >> Hello all. I have installed webreg on my server with php5 and this >> works almoast perfect. For now I have just tested it on an MSN >> transport, the transport registers and the contacts get added, but >> just when I thought it was finished I get this error: >> >> Importing contact: [EMAIL PROTECTED] >> >> Importing contact: [EMAIL PROTECTED] >> >> Importing contact: [EMAIL PROTECTED] >> >> >> *Fatal error*: Cannot use string offset as an array in >> */var/www/www.jabber.no/htdocs/scripts/transportreg/class.jabber.php* >> on line *507 >> >> *I understand that this is a problem with PHP4 vs PHP5 and that it is >> in the jabber class, but maybe you guys know what the class problem >> is? The line in question is: >> >> "group" => >> $incoming_array['iq']['#']['query'][0]['#']['item'][$a]['#']['group'][0]['#'] >> >> Any help is greatly appreciated! >> >> Best regards >> Stian B. Barmen >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> py-transports mailing list >> py-transports@blathersource.org >> http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports >> > It has to be modified in such fashion that every element is checked > before it's accessed > > like this > > if(array_key_exists($incoming_array, "iq") > if(array_key_exists($incoming_array['iq'], "#") > if(array_key_exists($incoming_array['iq']['#'], "query") > > etc... > ------------------------------------------------------------------------ > > _______________________________________________ > py-transports mailing list > py-transports@blathersource.org > http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports > Thanks, I will investigate this .. :) -stian -------------- next part -------------- An HTML attachment was scrubbed... URL: http://modevia.com/pipermail/py-transports/attachments/20051030/6602e5b0/attachment.html From [EMAIL PROTECTED] Sun Oct 30 16:04:02 2005 From: [EMAIL PROTECTED] (Stian B. Barmen) Date: Sun Oct 30 16:04:07 2005 Subject: [py-transports] pymsnt-0.10.1 and avatar in vcard Message-ID: <[EMAIL PROTECTED]> Hello! Tonight I just installed the new 0.10.1 version of the transport, and at the same time I converted to python 2.4. The upgrade was all well (did have to src/main.py patch, but that is trivial) but now MSN contacts can no longer see my vcard published avatar, they only see the light bulb. I checked that my avatar was in my vcard by pulling my vcard from the server, and it was there, also my jabber contacts can see it. Ejabberd 0.9.8 and I have running the transport since cvs without problems. Best regards Stian B. Barmen