> > > 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.

> Got the CVS update, did a clean compile, installed it, no joy. Exactly the
> same output. This install went smoothly btw. thanks to your fix to both
> mgd_apache.h 's

Try the attached patch. I would expect the error to now be 'INTERNAL'. If
so the problem is during the actual creation and I can investigate
further.

Emile
--- php/midgard/mgd_main.c.bak  Tue Jul 11 11:03:02 2000
+++ php/midgard/mgd_main.c      Tue Jul 11 11:05:49 2000
@@ -321,13 +321,16 @@
 {
     va_list args;
     int id;
-    RETVAL_FALSE_BECAUSE(MGD_ERR_NOT_EXISTS);
 
     va_start(args, values);
     id = mgd_vcreate(rcfg->mgd, table, fields, values, args);
     va_end(args);
 
-    RETVAL_LONG(id);
+   if (!id) {
+      RETVAL_FALSE_BECAUSE(MGD_ERR_INTERNAL);
+   }
+
+   RETVAL_LONG(id);
 }
 
 void php_midgard_create_repligard(const char *table,
--
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