Help - Search - Members - Calendar
Full Version: Can't Save Certain Templates
Movable Type Community Forum > Other Product Discussion > Bugs and Odd Behavior
Sayonara
When I save the individual archive, site javascript file, widget modules, or a couple of other templates, my browser navigates to http://localhost/removecookies, and displays the error:

Unable to connect
Firefox can't establish a connection to the server at localhost.


This is really bizarre! mellow.gif

It seems to only affect templates with JavaScript in them. Has anyone heard of this before?


MT is 3.34 and browser is Firefox 2.0.0.1.
spycake
I'm having the same problem. I just did a fresh install of 3.34, and I've successfully edited the Main Index and Date-Based Archive templates, but any attempt to edit the Individual Entry Archive template fails. Heck, I don't even have to edit it -- if I load up the default and hit "Save" it fails.

In Firefox 1.5 (Windows) and Safari 2.0 (Mac), I get the "http://localhost/removecookies" error. In Internet Explorer 6, I just get a generic "Page cannot be displayed" error with the url for mt.cgi in the address bar.

Any ideas? I never encountered this problem using MT 3.2 on the same system. Can't really do much now until I can somehow edit the Individual Entry Archive template.

Thanks!

UPDATE: Not solved yet, but I isolated the "problem code." If I eliminate the following two bits from the comment posting form:

onsubmit="if (this.bakecookie.checked) rememberMe(this)"

onclick="if (!this.checked) forgetMe(document.comments_form)"

then I can save it. I can only add these bits back in directly through the database.

Does anybody have a solution for this? I'd hate to rely on the database for my template editing...
PRO IT Service
Hello Guys,

It looks to me that you are missing the following things:

1)
CODE
<body onload="individualArchivesOnLoad(commenter_name)">


Make sure you hae the parameter
QUOTE
onload="individualArchivesOnLoad(commenter_name)"
inside your body starting tag;

2) <script type="text/javascript" language="javascript" src="/mt-site.js"></script>

Make sure you put a link to the mt-site.js javascript file. Be careful to reference correctly the path to the mt-site.js. In the sample above the mt-site.js file is supposed to be on your server root (main folder).

As a side note, this mt-site.js file is within the Index Templates available for your blog.


Good luck,
Mihai Bocsaru
Sayonara
Thanks for the reply, but I don't think that is the problem.

Firstly, the individual archive has those lines, and is still affected.

Secondly, not all of the affected files are supposed to include those lines.
PRO IT Service
Hello Sayonara,

This is what I could think of and i expect to have it work for spycake.

Try it yourself as well and let's see how it goes.


Good luck,
Mihai Bocsaru
spycake
Also thanks, but that code is already in the page. This is default Individual Entry Archive template, immediately after a fresh install of 3.34, with which I'm having trouble.
PRO IT Service
You are both welcome! Looks like a problem with your server configuration huh.gif
shelley
A Google search turned up this post in another forum, which indicates this was being caused (in another application, not Movable Type) by mod_security on the user's server. wink.gif
Sayonara
Thanks Shelley.

I have to wonder what the impact of turning off mod_security will be mellow.gif
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.