remove xmlrpcs.inc notice

marcingy - January 10, 2008 - 00:21
Project:Drupal
Version:6.x-dev
Component:base system
Category:bug report
Priority:normal
Assigned:boombatower
Status:closed
Description

When a call is successfully excuted via xmlrpc a notice is generated

Trying to get property of non-object in C:\broker6\includes\xmlrpcs.inc on line 70.

Patch to remove notice

AttachmentSizeStatusTest resultOperations
xmlrpcs.inc_.patch602 bytesIgnoredNoneNone

#1

jvandyk - January 13, 2008 - 03:09

We should check if it's an object. If it's not an object, it's not an xmlrpc error object and we shouldn't be looking for a property on it.

AttachmentSizeStatusTest resultOperations
xmlrpcerrjv.patch696 bytesIgnoredNoneNone

#2

boombatower - October 9, 2009 - 20:54
Status:needs review» reviewed & tested by the community

This is extremely annoying when working with XML-RPC as I do with PIFR/PIFT. Every time any traffic goes through I get those messages in my watchdog log. I submitted the patch that fixed this in D7, lets get this in.

#3

Dave Reid - October 9, 2009 - 21:04
Status:reviewed & tested by the community» needs review

By the way, you can (and should) roll all that into !empty($result->is_error).

#4

boombatower - October 9, 2009 - 22:20
Assigned to:Anonymous» boombatower
Status:needs review» reviewed & tested by the community

Seems to work locally.

AttachmentSizeStatusTest resultOperations
208195-xmlrpc-notice.patch647 bytesIgnoredNoneNone

#5

Dave Reid - October 9, 2009 - 22:24
Status:reviewed & tested by the community» needs review

Almost there... empty($result->is_error) should also cover the condition is_object($result). :)

#6

Dave Reid - October 9, 2009 - 22:27
Status:needs review» reviewed & tested by the community

So crazy result, it will only return true if $result = array('is_error' => TRUE);. So I guess checking is_object is fine too.

#7

boombatower - November 3, 2009 - 19:52

ping.

#8

Gábor Hojtsy - November 6, 2009 - 08:07
Status:reviewed & tested by the community» fixed

Thanks, committed to Drupal 6.

#9

System Message - November 20, 2009 - 08:10
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.