Hello All,

I am relatively new to Midgard and PHP, but got the system running
anyhow
on Mandrake 6.1 after upgrading the Mandrake 1.2.1 RPM install to a
rebuilt
1.2.5 source install. This was a bit of a headache, but I think it is 
almost working well. I do have a couple of errors that creep up on a
site 
I am now developing and one that happens within the Midgard admin
interface 
itself. I am wondering if these might be known errors, or if they might
be
local to my situation. 

Error #1 occurs in the admin interface when I try to view individual 
articles in content management. this does not occur in topics:

Fatal error: Call to unsupported or undefined function
mgd_list_reply_articles() in content on line 224

Methinks this is a possible error in my install, but has anyone else
seen
this error? I am not looking forward to the need to recompile the code
again
as the Mandrake install of Apache is a bit nebulous sometimes (though I 
think a bit better organized than the base install). 

Error number 2, occurs in the site pages themselves. In particular, the 
error occurs in a new subtopic I have added. I have not been able to 
track down where the parsing problem is happening, since line 13 of the 
root PHP3 document is <[ROOT]>. For a documents like
http://www.server.com/company/
http://www.server.com/company/17.html

Give the following error:

Parse error: parse error in /www/httpd/html/midgard-root.php3 on line 13

I thought this quite odd, since the page displays almost in its entirety 
and sub-topic pages in the same root work fine without errors: 

http://www.server.com/company/news/
http://www.server.com/company/contact/

I check my source for the /company/ root document, and I actually share
code in the root document between /company/ and /company/news/, and 
can see no other visible errors. I don't see the code error in any other
section, so I assume it must occur in the company root doc. For the sake 
of argument, here is the source of the company root:

<? if ($article) { ?>

<!-- Call the article style element created for this page that tells how
to
print the article output -->
&(article.content:h);

<? } else {
     if ($topic) { ?>
<?   } ?>
<p class="abstract">
Dark Hart was founded with the goal to provide efficient methods of
interaction for the
    community of users on the Internet.
</P>
<p> We wish to provide Internet users the opportunity to
    interact and pursue their creative and imaginative goals and to
provide resources to
    further the development of role-playing in its many areas of
interest.</p>
    <p>We do this by providing a number of services to aid our players
and customers in many
    ways. Multiple user interactivity (MUSH) is one of our primary means
of letting our
    customers interact and discuss through creative environments and
game play. We also
    provide forum and discussion support, link exchange programs and
mail list services. </p>
    <p>As we have grown in our vision and interests, we have found that
we can provide
    programming expertise and consulting as a means of providing other
companies with the
    interactive outlook we pursue. We have created a number of software
products to this end,
    and continually strive to stay on the cutting edge of interactive
development. </p>
    <p>Feel free to browse through our other sites and explore our
interactive areas and
    various services and resources. Also let us know if we can be of
help to you in any way.
    </p>
<h2>Company Information</h2>
<dl>
<?   $article = mgd_list_topic_articles(14, "alpha");
     while ($article->fetch()) { ?>
<dt><strong><a
href="&(article.id);.html">&(article.title);</a></strong></dt>
<dd>&(article.abstract);</dd>
<?   } ?>
</dl>

CODE-INIT
=========
<?
if ($argc == 1) $id = $argv[0];
if ($id && !mgd_is_article_in_topic_tree(14, $id)) $id = 0;
if ($id) $article = mgd_get_article($id);
if ($article) $author  = mgd_get_person($article->author);
?>

Thanks for any help that can be provided.

Fred Hirsch
Dark Hart Design

--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org

To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]

Reply via email to