default userpic

Problems after MT 3.2 to 4.261 upgarde

Vote 0 Votes

I have two problems.

1) Reported by upgrade process:

Movable Type was unable to locate your 'mt-static' directory. Please configure the 'StaticFilePath' configuration setting in your mt-config.cgi file, and create a writable 'support' directory underneath your 'mt-static' directory.

But I can see 2 mt-static directories. One is in /public_html and the other is in /public_html/mt. Both have a July 5 2009 date. Which to use? Both existed before the upgrade as well.

I look in mt-config.cgi and do not see StaticFilePath but I do see StaticWebPath commented out.

Also, how can I know that permissions are set properly?

2) Comments do not work.
I had previously been using mt-altcomments.cgi in order to reduce the load on my server from spammers. If I do:
http://www.futurepundit.com/mt/mt-comments.cgi?entry_id=6341
or I move mt-comments.cgi to mt-altcomments.cgi and do:
http://www.futurepundit.com/mt/mt-comments.cgi?entry_id=6341
either way I get
An error occurred.
Invalid request.

Reported on Movable Type 4.2

4 Replies

| Add a Reply
  • I tried setting
    StaticFilePath /home/myaccounthere/public_html/mt-static

    and did a refresh on this page:
    http://www.futurepundit.com/mt/mt.cgi

    and I still see the error at the bottom of no mt-static directory.

    What is mt-static for anyway?

  • Another clue on mt-static: When I go to edit an entry on one of my blogs I see this use of mt-static in the HTML that MT generates:

    So it thinks that the mt-static that matters is below the mt directory. Yet I set the path to:
    StaticFilePath /home/myaccounthere/public_html/mt-static

    So is it ignoring StaticFilePath? Or do I have to set StaticWebPath too?

    Mind you, I do not mind if I have to use:
    /home/myaccounthere/public_html/mt/mt-static
    instead of:
    /home/myaccounthere/public_html/mt-static

    I just want something that works. Is there some reason to prefer one of those locations over the other?

    I also still have my problem with comments not working. I would appreciate even guesses as to what to do about it.

  • I have another clue on the failure to show comments. When I go to edit the Comment Preview Template I get this:

    One or more errors were found in this template.

    * at line 47 is unrecognized.
    * at line 48 is unrecognized.
    * at line 48 is unrecognized.

    I think these are for the SCode plugin that is still installed. How do I migrate to the MT way to show CAPTCHA?

  • Answer:

    http://www.movabletype.org/documentation/designer/mt4s-comment-templates-for-use.html

    This is what you use to replace the SCode MTSecurityCode and MTSecurityImage:

    <MTIfNonEmpty tag="MTCaptchaFields">
    
    

    <MTIfCommentsAccepted>
    <MTIfRegistrationAllowed>
    <MTElse><$MTCaptchaFields$>
    </MTIfRegistrationAllowed>
    </MTIfCommentsAccepted>

    <div id="comments-open-captcha">
    </div>

    </MTIfNonEmpty>

Add a Reply

If you need to share template code, replace all the "<" signs with "&lt;" or use this utility.

Forum Groups

1773 6162

Last Topic: Excluding categories from blog by kholechek on Feb 9, 2012

86 302

Last Topic: website entries by masoud on Oct 26, 2011

1429 5077

Last Topic: What apocalypse hit this community in the middle of 2011? by 75th on Feb 10, 2012

695 2910

Last Topic: Insert Image / File Fails by Russ Miller on Feb 10, 2012

84 291

Last Topic: How to have some other characters in entry basename automatically written by Afshin Haghighatnia on Dec 22, 2011

173 737

Last Topic: About the MT version stated in HTML source by Alex E. Schneider on Feb 7, 2012

190 567

Last Topic: Analytics Reporting by michael webster on Feb 5, 2012

48 210

Last Topic: An idea and also a request by Afshin Haghighatnia on Jun 29, 2011

64 246

Last Topic: jQuery in MT 5.1 still at 1.4 - why? by perlmonkey on May 25, 2011

code.sixapart.com

137 478

Last Topic: Getting a thumbnail with xpath by Peter on Mar 13, 2011

222 720

Last Topic: Custom Field for Asset Not Appearing by android on Feb 9, 2012