With the code as presented, I get:
Object does not exist
If I change the first line to:
$person = mgd_get_person(1);
I get:
adminObject does not exist
I'm not sure what the call to mgd_get_article() in the code given will
do -- it should always return false since there is no article id
specified there. I created an article through asgard and changed the
line to:
$article = mgd_get_article(1);
but still the same result.
I added a line to make sure it was indeed reading the article by
printing the URL and it is getting the article.
On Wed, 2003-03-19 at 04:25, pp wrote:
> Chris Davies <[EMAIL PROTECTED]> wrote:
>
> > $up is set to 0, no preceding article
> > $topic = 24, I have confirmed that it is a valid TopicID
> > $author = 1, I have confirmed that the admin user is id 1. I created
> > another user id 4, but it is also unable to create an article.
> >
> > Creation of article 'Demo Article' failed.
> > reason: Access denied
> >
> > The script is taken directly from the mgd_create_article page on the web
> > site and modified only slightly to mimic my current setup.
>
> Check that:
>
> <?
>
> $person = mgd_get_person($midgard->user);
>
> echo $person->username;
>
> $topic =
> $name =
>
>
> $article = mgd_get_article();
>
> $article->topic = $topic;
> $article->author = $person->id;
> $article->creator = $person->id;
> $article->name = $name;
>
> $newarticle = $article->create();
>
> if (! $newarticle)
> {
> echo mgd_errstr();
> } else
> { echo mgd_errstr(); }
>
>
> ?>
>
>
> Piotras
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]