Thanks Alexander,
I did get this code working and thanks for the extra set of eyes in
finding the missing bracket. This is my first jaunt into PHP and I'm
not quite syntatically correct all the time. From what I have seen
of the language, its not a big leap from what I already know.
Regarding Mandrake and Midgard installs. The 6.1 distro of Mandrake
provides Midgard 1.2.1, which had a serious bug in adding sub documents
to the root pages, thus http://www.serverfoo.com/topic/ couldn't work.
Whenever I added /topic to one of my hosts, it always added it as a
base root document, rather than spawning a sub-tree.
I also didn't have the tenacity to go chugging around in the DB or
backend code to figure out why, so I proceded to attempt an upgrade
to 1.2.5. If you have Mandrake DO NOT install the Redhat RPMs on the
Midgard site. In the arena of Apache, Mandrake differs radically.
To be honest, installing newer Midgard on Mandrake is not a cup of
tea, it requires alot of config tweaks on a compile. Mostly because
Mandrake likes to store its conf files in /etc, the httpd and bins
in /usr/sbin and the HTML in /home/httpd. There is no convienent
/usr/local/apache. I am somewhat tempted to reinstall Apache in a
new/original tree structure, but to be honest, I am now used to the
way Mandrake thinks, and I like it, so I am sticking to it.
In the mean time, Mandrake hasn't got a new set of RPM's going for
Midgard yet, so if you have a problem with the install, let me know
and I will do my best.
Thanks again,
Fred -- PHP Pseudo-Newbie
Alexander Bokovoy wrote:
>
> Hello Fred,
>
> > 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).
> Accroding to Mandrake's developers there are some problems running
> Midgard on Mandrake. At least, they weren't successful in Midgard's
> compilation and startup, but it seems that your problems lie in a
> different field. If you can, please take current 1.2.5 tar-balls from
> www.midgard-project.org as they were patched and reuploaded after
> official release. Probably it solves your problems.
>
> > 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
> Most common source for this error is non-balanced '{' and '}' in PHP
> scripts.
> > 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 {
> ^
> Take into account this opening brace
> > 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>
> That's spot! You forgot to add closing '}' brace.
>
> Best regards,
> Alexander mailto:[EMAIL PROTECTED]
>
> --
> 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]
--
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]