Armand Verstappen wrote:

> So the question boils down to why you get the internal error. I've
> searched the source for midgard-php, which is where the error is
> generated from. I've only found one instance of
> RETURN_FALSE_BECAUSE(MGD_ERR_INTERNAL) in the code (mgd_main.c) that
> pertains to a create statement (lot's of disclaimers, I'm not too good at
> reading c):
> 
> void php_midgard_create(pval * return_value, const char *table,
>       const char *fields, const char *values, ...)
> {
>   va_list args;
>   int id;
>   CHECK_MGD;
> 
>   va_start(args, values);
>   id = mgd_vcreate(MGD_RCFG->mgd, table, fields, values, args);
>   va_end(args);
> 
>    if (!id) {
>       RETURN_FALSE_BECAUSE(MGD_ERR_INTERNAL);
>       ap_log_rerror(APLOG_MARK, APLOG_DEBUG|APLOG_NOERRNO,
>          GLOBAL(php3_rqst),
>          "Midgard: create of %s failed",
>             table ? table : "<null class>");
>    }
> 
>   RETURN_LONG(id);
> }


This would indeed be the most likely place. Set 'LogLevel' to 'debug'
in the apache config; if you get the message 'Midgard: create
of .... failed' we'll know for sure.

Emile

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to