Help - Search - Members - Calendar
Full Version: Added Sub-categories Now Showing Error
Movable Type Community Forum > Using Movable Type > Categories and Entry Tags
chuckandhud
I'm running MT4 and decided I needed to add a couple more top-level categories as well as sub-categories.

The top-level categories are functioning properly but for any individual entry that is tagged with a new subcategory I'm now seeing three error messages on my right sidebar.
http://www.charlesandhudson.com/archives/2...afety_rules.htm

Here's the error

CODE
main(/home/timothyd/public_html//archives/shop_tools/recent.inc) [function.main]: failed to open stream: No such file or directory in /home/timothyd/public_html/archives/2008/05/table_saw_safety_rules.htm on line 170


Any help is appreciated. Thanks.

chuckandhud
QUOTE (chuckandhud @ May 18 2008, 12:03 PM) *
I'm running MT4 and decided I needed to add a couple more top-level categories as well as sub-categories.

The top-level categories are functioning properly but for any individual entry that is tagged with a new subcategory I'm now seeing three error messages on my right sidebar.
http://www.charlesandhudson.com/archives/2...afety_rules.htm

Here's the error

CODE
main(/home/timothyd/public_html//archives/shop_tools/recent.inc) [function.main]: failed to open stream: No such file or directory in /home/timothyd/public_html/archives/2008/05/table_saw_safety_rules.htm on line 170


Any help is appreciated. Thanks.



I've dug deeper. Looks like I need to modify this line in the individual entry template. Not sure what to change though.

CODE
<mt:EntryCategories><?php include("<MTBlogSitePath>/archives/<mt:CategoryBasename />/recent.inc"); ?></mt:EntryCategories>
OtherNiceMan
Does /home/timothyd/public_html//archives/shop_tools/recent.inc exist?

Also why the // between public_html and archives?

chuckandhud
QUOTE (OtherNiceMan @ May 18 2008, 01:56 PM) *
Does /home/timothyd/public_html//archives/shop_tools/recent.inc exist?

Also why the // between public_html and archives?


That path doesn't exist as "shop_tools" isn't a top level category but it looks like it is being treated like that.
The path that does exist is:
/home/timothyd/public_html/archives/tools/shop_tools/recent.inc

How do I make that change so it recognizes the sub-categories?

I also don't know why the // is there.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.