On 16 Jan, Fred Hirsch wrote:
> Hello All,

Greetings!

> 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.

There should also be a more up-to-date RPM in
the Mandrake Cooker, although I'm not sure
if those work in 6.1.

(BTW. Axalon, if you read this, could it be
possible to also provide the updated RPMs on
our site? I'm certain users of Linux-Mandrake
would find this beneficial...)

> 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

This is a bug in the Admin site itself. Don't worry,
it isn't anything fatal (although the parser tries
to imply so ;-)

The Admin site will receive a load of updates in
1.2.6, and so this will also probably be fixed.
 
> 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

Actually, I think the reference for ROOT is in line #12.
When the parser gives these messages:

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

It usually means that there is an unterminated
block in your code somewhere. In this case it 
is the block that starts here (with the else
statement):
 
> <? } else {
>      if ($topic) { ?>
> <?   } ?>

<snip>

> <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>

...and doesn't end here. Placing a <?php } ?>
after that </dl> should fix it.

Otherwise the code should be fine.

> Fred Hirsch

/Bergie

-- 
-- Henri Bergius -- +358 40 525 1334 -- [EMAIL PROTECTED] --
               http://www.iki.fi/Henri.Bergius


--
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