Help - Search - Members - Calendar
Full Version: cms hash error
Movable Type Community Forum > Other Product Discussion > Bugs and Odd Behavior
bmk
About your archive file templates.... does it make a difference if you write them like this:
CODE
<$MTArchiveDate format="%Y/%m/%d"$>.php
<$MTArchiveDate format="%Y/%m"$>/index.php


Brenna
btrott
In the manual, that example is not for the category archive file template, but rather for the individual archive file template. It won't work for the category one, because it doesn't really correlate--how can there be one entry ID (<$MTEntryID$>) on an archive page? So that's why it doesn't work. smile.gif

If you want the category label for the particular archive, it's <$MTArchiveCategory$>.
kadyellebee
I'm getting the following error:
QUOTE
MT::App::CMS=HASH(0x82cf678) Use of uninitialized value  at /home/love/public_html/mt/lib/MT/Template/Context.pm line 770


The last thing that I did before it gave me the error was change the archive file templates:
CODE
daily: <$MTArchiveDate format="%Y/%m/%d.php"$>
monthly: <$MTArchiveDate format="%Y/%m/index.php"$>
category: <$MTEntryCategory dirify="1"$>/<$MTEntryID pad="1"$>.php


All of the changes published fine (creating new files to match the new template names), but I can't seem to rebuild any of the template options without getting that error.

Its not affecting any of my blogs besides the red kitchen, which is the blog I was editing.

Any ideas?

Thanks,
Kristine

Edited to add:  When I post a new entry, I get the following message:
QUOTE
Your post was saved, but the rebuild process failed: Renaming tempfile '/home/love/public_html/thekitchen/oldrecipes/.new' failed: Not a directory

The oldrecipes directory is chmoded to 777, and that's the only thing I can think of related to that.
kadyellebee
Nope, that didn't make a difference.

But I took off all of the template filenames, and then rebuilt, and the error went away.  So then I added them back in, one at a time, and the category one was the one that gave me problems.  I went back and doublechecked, and I had copied and pasted exactly from the manual... but that one wasn't so important to me, so I just took it out.

Thanks for your help, Brenna smile.gif
kadyellebee
OHHhhhh... I feel silly now, Ben!
tongue.gif

I shoulda known better, that makes sense!!

Thanks!
Kristine
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-2010 Invision Power Services, Inc.