As noted in http://drupal.org/node/245955 the code throws a warning when the following code in executed.
$result = xmlrpc($local, 'metaWeblog.newMediaObject', $blog_id, $web_user->name, $web_user->pass_raw, $file);
Exception:
Unexpected PHP error [Undefined property: stdClass::$is_date] severity [E_NOTICE] in [~/includes/xmlrpc.inc line 70]
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | xmlrpc-type-checks.patch | 818 bytes | boombatower |
Comments
Comment #1
boombatower commentedAnyone know if the object was changed or something?
Comment #2
boombatower commentedAlright this is a simple issue with a simple fix, just depended on how to do it.
I wrapped the is_* type checks with isset() since they are only set when it is that type rather than always setting the attribute.
Tested BlogAPI test and passes without exception!
Comment #3
dries commentedI can't really test this patch until XML-RPC tests work again.
Looking at the code, this certainly looks RTBC.
Comment #4
boombatower commentedOk #274994: Simpletest not including tests includes directory was just committed and tests should run, although the xmlrpc test is still broken, due to test issues.
This patch fixes exceptions in Blog API test though.
Comment #5
boombatower commentedAlso fixes xmlrpc test now that it runs. #268063: Move includes/tests to simpletest/tests & provide hidden .info propery
Comment #6
dries commentedFixes the tests. Committed to CVS HEAD.
Comment #7
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.