$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. Coincidentally midHoo gets the same error. I'm using Debian SID and the .debs from # midgard deb http://www.midgard-project.org/developer/downloads/debian/stable/dists/sid/binary-i386/ ./ Coincidentally midHoo has the same problem -- no matter what I do, adding a link returns the same error. Both version 2.02 and the 2.10 that is also in their directory. I have tried to figure out the permissions settings, but I would think that the admin account would have the ability to create a new article. I can create articles through the Asgard interface. Somehow I have a group 3 that is blank, has no members, and when I try to delete it, I get Cannot delete group: Resource has dependants I'm sure it is something I am missing somewhere in the permissions, but I haven't yet figured out how to give Admin the ability to create articles. <?php $up = 0; $topic = 24; $name = "Demo Article"; $title = "What's in a name"; $abstract = "Learning Midgard from the manual is easy, but..."; $content = "Learing Midgard from the manual is easy, but by actually trying "; $content .= "the examples yourself, you'll get a better feel for what is "; $content .= "the use of the various functions."; $author = 1; $url = "http://www.midgard-project.org/"; $calstart = "0000-00-00"; $caldays = 0; $icon = 0; $view = 0; $print = 0; $extra1 = ""; $extra2 = ""; $extra3 = ""; $type = 0; mgd_errno(); $article = mgd_create_article( $up, $topic, $name, $title, $abstract, $content, $author, $url, $calstart, $caldays, $icon, $view, $print, $extra1, $extra2, $extra3, $type); if( ! $article ) { echo "Creation of article '$name' failed.<br>\n"; echo "reason: " . mgd_errstr(); } else { echo "Created article '$name' with id " . $article; } ?> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
