>> >My guess: the page isn't active, so $argv[0] == 0 (undefined actually)
>> >allways and the page defaults to listing the articles.>
>> Nope - it looks right to me:damn, there goes the colour TV :<

>Echo $argv[0] on the page to see if it's set. I can't pull up the page
>right now but it's also possible that $argv[0] was copied by a page
>element to a variable to be used in the page content and that the problem
>lies in this element.

Well here's something interesting.  I put a little marker in each of the 3  bits 
concerned - page #37 (the News Releases page for VMUC - the one I'm using to test all 
this) and it's two page elements 29 & 30 (code-init and article respectively).  Both 
page #37 and element #29 carried the correct value for $argv[0] but element #30 failed 
to display at all.  This code was at the start of it

<!-- PE30CONTENT - <?echo $argv[0];?>-->

The comment doesn't appear though in the html in the browser.

Then delving a bit further, a quick insert into element #29 of

<!-- PE29CONTENTART - <?if ($article) echo "BOO";?>-->

shows that $article isn't being set (hence element #30 never being used).  That must 
mean mgd_get_article($id); is failing, doesn't it?  How do I find out why?  That new 
error code stuff?

>> Is it unrelated that pictures for the admin site won't come up but
>> pictures for the example site do?
>
>The pictures aren't server by Midgard. We pass that job on to 'normal'
>apache, so look where apache expects the pictures (somewhere under the
>admin site docroot of course) and move them there or adjust the docroot.

I'm aware that they aren't being served by midgard.  I therefore moved both 
directories into /var/www and the example site is serving them fine but the admin site 
isn't.  Do I need to define a docroot for the admin site?  How come I didn't have to 
to get the example site working?

Nick



-------------------------------------------------------------------
This message has been posted from Mail2Web http://www.mail2web.com/
Web Hosting for $9.95 per month! Visit: http://www.yourhosting.com/
-------------------------------------------------------------------


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