Problems, need help? Have a tip or advice? Post it here.
7 posts Page 1 of 1
well, hello again!

I am working again with the server where I used to have problems with permissions...after I made index a while ago, I wanted to mye individual 503.php, and so it started...

they seem to use 755 for php files (viewtopic.php?f=4&t=7754&p=12495&hilit=internal#p12495), as it turned out last time I had the problem...

So I was changing permissions by hand or by scansite.php, and finally by that server's own "repair permission" option and I had to comment .htaccess file to access couch admin...
BUT when I set define( 'K_SITE_OFFLINE', 1 ); nothing happens...like the site does not recognize that it should be offline..

any ideas what this might be?

Thanks in advance


Tanja
Hi Tanja,

Did you try accessing the site as an ordinary visitor (i.e. while not logged-in as admin)?
The site-offline functionality does not apply to admins.

If, however, it is not working for non-admins as well, please PM me your site's FTP/Couch creds and I'll take a look.

Thanks
Hi Kamran!

Yes, I logged out and it is still not recognizing the offline state...

I´ll send you the creds


Thanks!

Tanja
Thank you for entrusting me with the creds, Tanja.

I had a look at your site and found that it did not have any templates registered with Couch.

I added the mandatory <?php require_once( 'couch/cms.php' ); ?> / <?php COUCH::invoke(); ?> statements to the index.php file found on the site to register it.

Please try accessing the site now while you are not logged-in as admin (use a different browser if required) and you should see the 'Maintenance Mode' site-offline message (I can certainly see it).

Please confirm.
Thanks.
Thanks a lot Kamran!

yes, it works now....Thanks for clarifying this....


best regards

Tanja
You are welcome, Tanja :)

The point to consider is that in Couch, as opposed to most other CMSes, your site has to explicitly invoke Couch for it to be in the picture.

This is done by the two lines of PHP we place in all Couch managed templates. So, if there are no Couch-managed templates in a site (as was the case), effectively there is no Couch to process the site-offline (or any other Couch related action).
I was not aware of that.....Thanks again for clarifying this and for your great support....

best regards

Tanja
7 posts Page 1 of 1