>    mgd_errno();
>    $id = $article->create();

It is no longer necessary to call mgd_errno before a midgard call to clear
the error status.

>    if(!$id) {
>     echo "Failed to create article<br>\n";
>     echo "Reason: " . mgd_errstr(mgd_errno()) . "\n";

and there is now a fix in CVS that makes mgd_errstr() the same as
mgd_errstr(mgd_errno())
 
> Which results in the following output:
> 
> Article created. ID of article is 17.
> Failed to create attachment.
> Reason: Object does not exist
> 
> So I do succeed in creating an article, and I would assume that that would
> only be possible if the $article object would exist. 
> LogLevel is set to debug, no relevant messages though.
> 
> What's wrong in this picture?

What's wrong is that the oop create functions didn't set the object ID
after creation. I think, because I would expect "Not an object" instead of
"Object does not exist". Can you try again?

Emile


--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org

To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]

Reply via email to