Help - Search - Members - Calendar
Full Version: Changed local site path and error occurred
Movable Type Community Forum > Other Product Discussion > Bugs and Odd Behavior
kgant
I changed the local site path, site URL, local archive path and archive URL in Weblog Config | Core Setup. Afterwards, it prompted me to rebuild the site. When doing so I get the following error message...

QUOTE
Can't use string ("2") as a subroutine ref while "strict refs" in use at lib/MT/Template/Context.pm line 416.


After some testing, I've found that I only receive this error message when trying to "ebuild Individual Archives Only".

I was moving everything from domain.com/blog to domain.com/ and domain.com/blog/archives to domain.com/archives.

Any ideas or suggestions? Thank you.
kgant
Resolved the issue after looking at another post.

Earlier today I had modified my Individual template to the following
CODE
<MTEntryIfAllowComments>

<MTIfNonEmpty tag="MTComments">
<MTElse>
<MTComments>
<div id="c<$MTCommentID$>">
<$MTCommentBody$>
</div>
<p class="posted">Posted by: <$MTCommentAuthorLink default_name="Anonymous" spam_protect="1"$> <MTCommentAuthorIdentity> at <$MTCommentDate$></p>
</MTComments>
</MTIfNonEmpty>

By replacing the MTIfNonEmpty with MTElse, the issue was resolved. Perhaps, MTIfNonEmpty needs to be explained better.
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-2008 Invision Power Services, Inc.