Problems, need help? Have a tip or advice? Post it here.
4 posts Page 1 of 1
Hi

So I set up Couch on my local webserver and it worked just fine. Now, I've moved all the contents to my actual online host (with a fresh install of Couch). I can see all the fields in the admin panel, though when I press 'Save', I get a message that says "1 ERROR:" with no actual error listed after the colon. This is a bit of a problem for me as it means I don't know what's gone wrong. How am I supposed to troubleshoot this issue?

Thanks a lot.
Hi,

If you wish you may PM me the site's FTP+Couch super-admin creds and I can take a look at the issue for you.
KK wrote: Hi,

If you wish you may PM me the site's FTP+Couch super-admin creds and I can take a look at the issue for you.


Hi, I've sent a PM your way. Thanks!
Thanks for the creds.

I had a look at your site and found that the error you mentioned was not to be found *but* there was definitely something amiss there -
1. Trying to log into the admin panel the first time resulted in a 'redirection' infinite loop.
I checked and the authentication cookie was being sent by the browser but the server was disregarding it and simply sending the browser back to the login page.

2. Somehow I got in and found that when I made changes to editable regions, the page saved without errors but the changed content did not show up. It appeared as if the data was not getting saved but after a little digging I realized that it was getting saved fine - was only taking a long time to appear Had to hard refresh several times and it showed up eventually.

Both the signs pointed to some very aggressive caching being performed by your server setup (which was returning stale contents to browser).

To force the server to not do any kind of caching for admin panel, I appended the following lines to couch/config.php
Code: Select all
if ( defined('K_ADMIN') ){
    // HTTP headers for no cache
    header( "Expires: Mon, 26 Jul 1997 05:00:00 GMT" );
    header( "Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT" );
    header( "Cache-Control: no-store, no-cache, must-revalidate" );
    header( "Cache-Control: post-check=0, pre-check=0", false );
    header( "Pragma: no-cache" );
}

And that seemed to fix the issue.

Hope this helps others who might run across a similar server setup.
4 posts Page 1 of 1