Problems, need help? Have a tip or advice? Post it here.
3 posts Page 1 of 1
Hello,
I have moved my installation of couch to a host (siteground) into a subdomain.
It installed fine, and my nested pages are arranged perfectly in line with my xampp installation.
My problem is, upon going to any page I get the below:

Fatal error: require_once(): Failed opening required '/couch/cms.php' (include_path='.:/usr/local/php56/pear') in /home/drpatmcc/public_html/vtvol/index.php on line 1

I'm not sure what to do here. according to phpinfo(), pear is in .:/usr/local/php56/pear and my couch is in the standard couch folder.
My subdomain is vtvol.drpatmcc.com and file structure is:
public_html/vtvol/couch/
public_html/vtvol/index.php
public_html/vtvol/contactus.php
etc.
Please examine the very first PHP statement every Couch template contains. It should be -
Code: Select all
<?php require_once('couch/cms.php'); ?>

I suspect you are using a leading slash in the path and your statement looks like this -
Code: Select all
<?php require_once('/couch/cms.php'); ?>

If so, that would explain the error. The slash represents the root ('public_html' in your case) and there indeed is no 'couch' folder there (it being in the 'vtvol' subfolder).

If I am correct about the leading slash, please remove that to make the path relative to the current template and that should fix the issue.

Hope it helps.
Thank you for the quick reply.
That worked perfectly, I had a copy in root and it fixed that too.
3 posts Page 1 of 1
cron