Problems, need help? Have a tip or advice? Post it here.
11 posts Page 1 of 2
Hello! I have created a page that I can "preview" in draft mode. BUT, when I "Update Original" and then "Publish" from the original page and then click on "preview" I see "Page not found" on a blank white page. What step am I missing?
Hi,

I don't see any steps getting missed. Normally the published page should have showed up.

If your site is online, could you grant me access (FTP+Couch super-admin) to it?
Allow me to take a look at the problem.
Oh wonderful! How can I make this post private?
Thanks for entrusting me with the creds.

I had a look and found that the problem is not related to 'drafts' at all.

The actual problem is that your site has prettyURLs enabled but the template in question is not listed in the .htaccess file.

Seems you have added the template after prettyURLs were enabled.
Please use gen_htaccess utility (as documented at http://www.couchcms.com/docs/concepts/pretty-urls.html) to generate an updated .htaccess file and that should solve this issue.

Hope it helps.
Hello!

Thank you for your reply! I have tried to visit the utility link (...couch/gen_htaccess.php) but I get a 404 error. I see the htaccess file but no 'couch' or 'gen_htaccess.' Did some more digging and I found the 'gen_htaccess' file in the 'admin' folder but when I visit the URL, I get 'Page not found.' Am I missing something obvious?
Please first log into the admin-panel as super-admin (this is important).
Then manually type into the address bar of the same browser (or even the same window)
http://yoursite.com/admin/gen_htaccess.php

Of course, use your own domain name in the URL.

It works because I've personally checked it.

Hope it helps.
Missed the first step. I'm in! :) I'm feeling "very special" this morning! THANK YOU!!!
Okay, visited the link. Copied and pasted the entire contents, placed those in the htaccess.txt file. Refreshed. Visited the admin panel, "updated original" draft. Saved original and clicked "View." Same error Page not found. What am I missing? Even visited the new-page.php - nada.
So, when I pasted and copied the new rewrites into the htaccess file I did it over what was already there. Once, I got the same error, I added the previous information above the rewrites. I am still getting the same "Page not found." Can you offer any direction to take from here?
The existing .htaccess on your site had several additional rules (probably to cater to the pages that existed before the site was Couchified). The person who added those (and I think I can assume it was not you), rightly placed them above the rules generated by Couch.

I logged-in as admin, generated the new rules and pasted them in the .htaccess file in a way that the custom rules in the file were not touched and only the Couch rules were overwritten.

If you try working with the template now you'll see that it works as expected.

P.S. Strictly speaking, the assumption with Couch is that you'll simply copy and paste the gen_htaccess generated rules into the .htaccess file 'in toto'.

If you decide to make changes to the .htaccess file (by adding your own rules etc.), it is expected you know what you are doing. If the rules do not work, the responsibility lies squarely on you and we really won't be able to help with that.

For your reference, I'd advice you to please compare the new .htaccess I have placed on the site with the output generated by gen_htaccess.php to see where you need to make the changes in case you add new templates to the site.
11 posts Page 1 of 2
cron