Hi All,

I've got a homemade atompub client that successfully posts to
WordPress, but has two problems with Habari 0.7.1.  The first one
leaves a log message:

Undefined offset: 0 in system/classes/atomhandler.php:863

I worked around that with the following diff:

$ diff atomhandler_orig.php atomhandler.php
863c863
<               if ( is_array( $draft ) && (string) $draft[0] ==
'yes' ) {
---
>               if ( is_array( $draft ) && count( $draft ) > 0 && (string) 
> $draft[0] == 'yes' ) {

But the second problem is that my posts never have the AtomPub
request's entry's content's contents.

The logs contain the following info lines:

New post 30 (atompub-testing-4-no-markup-please-ignore); Type: entry;
Status: published

There are no "notice" or "err" logs (besides the one mentioned above,
which no longer occurs.)

Here's data being sent in an example AtomPub POST request:
http://betterfool.com/atompubtest_data.txt

Both Habari and WordPress respond with HTTP code 201 "created", but
only WordPress shows the entry's title *and* contents.  Habari just
makes a new post with the right title, but an empty body for the
post.   I've tried various formats of data in the entry's content's
data, but the results are always the same: fine for WordPress, no
contents in Habari.

Any ideas?  Thanks in advance!

-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/habari-users

Reply via email to