Hi Piotras,

On Mon, 6 Aug 2001, pp wrote:
> This is example from midgard1.4 manual:
> <?php
>          $article    = mgd_get_article(123); # article with id 123 must exist.
>          $att = $article->createattachment("test","example","text/html");
>          if(! $att) {
>            echo "Failed to create attachment.<br>\n";
>            echo "Reason: " . mgd_errstr();
>          } else {
>            echo "Attachment created. ID is $att.<br>\n";
>          }
>        ?>

> and output log for mysql:
> 
>  7 Query       SELECT domain,name,value FROM record_extension WHERE 
>tablename='article' AND oid=26377
>  7 Query       SELECT id FROM blobs WHERE (ptable='article' AND pid=26377 AND 
>name='test') AND (sitegroup IN (0,0) OR 1<>0)
> 
> I do not get it. Why createattachment function 
> calls to mysql Select ??

This is indeed rather strange. Are you sure this comes from the code
example above? It looks more like it comes from Nadmin or Asgard code.

> All in all it ends with internal error in midgard.

I have reproduced the internal error in test environments only when the
blob directory was not present, in the wrong location or had wrong
permissions. Can you check that at least these are correct?

wkr,

-- 
Envida                     http://www.envida.net/
Armand A. Verstappen       Graadt van Roggenweg 328
[EMAIL PROTECTED]       3531 AH Utrecht
tel: +31 (0)30 298 2255    Postbus 19127
fax: +31 (0)30 298 2111    3501 DC Utrecht


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

Reply via email to