> > 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.
I SET the loglevel to debug - but no luck....... there is no error in the
apache logs. I am surprised that noone else has ever got this error. Also if
an error like this is returned by midgard shouldnt it return an error that
is more informative. This particular error does not say anything at all.
One more bit of information however if it helps you help me. The attachment
entry gores into mysql. But if i go into the blobs directory where the file
should be uploaded there is a file created with the long name as stated in
the database however its filesize is zero. could there be any issue in the
file upload component of midgard-php....
how would i correct this
bhavin
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]