Problems, need help? Have a tip or advice? Post it here.
2 posts Page 1 of 1
I have the same issue as reported in https://www.couchcms.com/forum/viewtopic.php?f=4&t=8023&p=13699 and in https://www.couchcms.com/forum/viewtopic.php?f=4&p=25468. Both of those reports are some years old, and the suggestions in them do not seem to work.

Following some issues with my hosting, I needed to recreate a site in a new directory. The site works as expected when addressed via the directory. The final step is to point a domain name to it. When served via the hostname (with the config file amended to show the URL of the domain) this error appears:
Code: Select all
ERROR: 'couch' folder should reside in the main web-site folder


I have added the line
Code: Select all
<?php define( 'K_TEMPLATE_NAME', '<filename>.php' ); ?>

at the start of each template, but the issue still persists. I have also visited all pages while logged in as superadmin.

There's a difficulty here in that the previous version of the site is still up (it's suffering from the issue I raised here, but that affects editing rather than the public site), so I can't leave the site showing the error message. I'm also involving hosting support in this changeover because of those issues, so switching it back and forth is a slow process.

One thing to mention - I have the Couch folder renamed as 'edit' (this was just to give a more obvious URL for site admins to edit their content!). This change is reflected in the template files, all of which now therefore start
Code: Select all
<?php define( 'K_TEMPLATE_NAME', '<filename>.php' ); ?>
<?php require_once( 'edit/cms.php' ); ?>


I'm happy to provide FTP access to @KK if that is useful.

Hi David,

Please get me the FTP+Couch super-admin creds for the site.

Thanks.
2 posts Page 1 of 1