Help - Search - Members - Calendar
Full Version: Preview Does Not Work (mt 4.01)
Movable Type Community Forum > Other Product Discussion > Bugs and Odd Behavior
.mau.
I cannot preview my posts.
If I click on "preview" while writing a new post, I get this error:
The requested URL /notiziole/arch/2007/10/-00001.html was not found on this server.
If the post is already present, and I am modifying it, when I click on "preview" I see the original entry without any modification.

Note that I am using a custom template for my entry mapping, that is %y/%m/%e%x, thus the part /notiziole/arch/2007/10/ of the filename is correct. This happens both with a blog I upgraded and with a brand new one, so I don't think it is an error on my side. Any suggestion?
(No, I cannot use a standard mapping. With 3500+ posts and a lot of internal links, it would be a nightmare)
Alden Bates
QUOTE (.mau. @ Oct 15 2007, 11:08 PM) *
I cannot preview my posts.
If I click on "preview" while writing a new post, I get this error:
The requested URL /notiziole/arch/2007/10/-00001.html was not found on this server.
If the post is already present, and I am modifying it, when I click on "preview" I see the original entry without any modification.


What version of MT are you running? ISTR I was having the same problem under 4.0, but the problem went away after I upgraded to 4.01...

Alden
.mau.
QUOTE (Alden Bates @ Oct 17 2007, 11:34 PM) *
QUOTE (.mau. @ Oct 15 2007, 11:08 PM) *
I cannot preview my posts.


What version of MT are you running? ISTR I was having the same problem under 4.0, but the problem went away after I upgraded to 4.01...

Alden


4.01. I never installed 4.0 :-) It's true that I upgraded from 2.661, but as I wrote the same behaviour happens with another blog I started, so it does not seem related to the upgrade.
FredB
Same problem on a fresh 4.01 install.

Preview works fine if I use a "/category/sub-category/entry-basename.html" archive mapping, but fails with "/category/sub-category/entry-basename/index.html" mapping.

The preview links to "/[category]/[long number]/index.html" while the file created is "/[category]/[long number]/[long number].html"

I'm new to MT, is there another place than this forum to report a bug?
existentialmedia
QUOTE (FredB @ Oct 20 2007, 04:50 PM) *
Same problem on a fresh 4.01 install.

Preview works fine if I use a "/category/sub-category/entry-basename.html" archive mapping, but fails with "/category/sub-category/entry-basename/index.html" mapping.

The preview links to "/[category]/[long number]/index.html" while the file created is "/[category]/[long number]/[long number].html"

I'm new to MT, is there another place than this forum to report a bug?


I have the same problem exactly.
SmartGoat
QUOTE (FredB @ Oct 20 2007, 05:50 PM) *
Same problem on a fresh 4.01 install.

Preview works fine if I use a "/category/sub-category/entry-basename.html" archive mapping, but fails with "/category/sub-category/entry-basename/index.html" mapping.

The preview links to "/[category]/[long number]/index.html" while the file created is "/[category]/[long number]/[long number].html"


I've been having the same problem, and spent a couple hours last night diagnosing it. I finally found a solution. The solution doesn't make a lot of sense, so I can't promise it will work for anyone else. Here's what I did:

I had this as my archive mapping for Entry archives:

CODE
/yyyy/mm/dd/entry-basename/index.html


I created a new archive mapping, chose "Custom" mapping, and typed in this:

CODE
/%y/%m/%d/<$MTEntryBasename separator="-"$>/index.html


Then I set that as my default archive mapping for the Entry template. And it worked. Previews work now, and my URLs are still the same as they were before.

I have a guess as to why this works, but I won't bother going into it here. Hopefully, there will be a fix for this issue in MT4.1.

--
Billy Mabray
Smart Goat Web Design
http://www.smartgoat.com
existentialmedia
QUOTE (SmartGoat @ Nov 5 2007, 10:26 AM) *
QUOTE (FredB @ Oct 20 2007, 05:50 PM) *
Same problem on a fresh 4.01 install.

Preview works fine if I use a "/category/sub-category/entry-basename.html" archive mapping, but fails with "/category/sub-category/entry-basename/index.html" mapping.

The preview links to "/[category]/[long number]/index.html" while the file created is "/[category]/[long number]/[long number].html"


I've been having the same problem, and spent a couple hours last night diagnosing it. I finally found a solution. The solution doesn't make a lot of sense, so I can't promise it will work for anyone else. Here's what I did:

I had this as my archive mapping for Entry archives:

CODE
/yyyy/mm/dd/entry-basename/index.html


I created a new archive mapping, chose "Custom" mapping, and typed in this:

CODE
/%y/%m/%d/<$MTEntryBasename separator="-"$>/index.html


Then I set that as my default archive mapping for the Entry template. And it worked. Previews work now, and my URLs are still the same as they were before.

I have a guess as to why this works, but I won't bother going into it here. Hopefully, there will be a fix for this issue in MT4.1.

--
Billy Mabray
Smart Goat Web Design
http://www.smartgoat.com


THANK YOU SO MUCH!!!
.mau.
QUOTE (SmartGoat @ Nov 5 2007, 07:26 PM) *
I created a new archive mapping, chose "Custom" mapping, and typed in this:

CODE
/%y/%m/%d/<$MTEntryBasename separator="-"$>/index.html


Ditto. It's working :-) (or at least preview is working, I have to think at something intelligent to write before seeing how the entry is filed, but I do not think there should be anything odd)
Thanks a lot, .mau.
moosio
QUOTE (.mau. @ Nov 6 2007, 06:54 AM) *
QUOTE (SmartGoat @ Nov 5 2007, 07:26 PM) *
I created a new archive mapping, chose "Custom" mapping, and typed in this:

CODE
/%y/%m/%d/<$MTEntryBasename separator="-"$>/index.html


Ditto. It's working :-) (or at least preview is working, I have to think at something intelligent to write before seeing how the entry is filed, but I do not think there should be anything odd)
Thanks a lot, .mau.


Hi guys, I think I'm having the same problem. I listed the details here with screen captures:

http://forums.sixapart.com/index.php?showt...mp;#entry257286

But I dont understand this thread, where is this code your citing.... can someone kindly direct me with details in my thread. Much appreciated, and I'm sorry for asking Noob questions
.mau.
QUOTE (moosio @ Nov 12 2007, 05:00 PM) *
But I dont understand this thread, where is this code your citing.... can someone kindly direct me with details in my thread. Much appreciated, and I'm sorry for asking Noob questions


it's not code.
Start with Design --> Templates, and choose "Archive templates". You should find a template named "Entry". Select it; at the bottom, after the code, there should be a line with "Archive Mapping [ ] Create Archive Mapping" and probably a menu with two columns, "Type" and "Entry". If there is no such meny, just click on "Create Archive Mapping". Select the pulldown menu corresponding to "Entry", select "Custom", and copy one of the strings we talked about. Then you will have to repulish the site, and preview will start working.

ciao, .mau.
Solomonia
Just a thanks for the solution here. I was getting the following as a typical error:

QUOTE
Page Not Found

Page not found - /blog/archive/2007/12/a4a1cdd476a2b9410fa04ce2748cdd723446bc40/index.shtml


MT support told me it was a known issue with people using non-default archive mapping, hopefully to be fixed in a future version. Though I'd prefer it just work without any sort of kludge, this solution worked for me until that happens.
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.