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

Firstly I love Couch cms, I think it’s awesome.

My Problem,
I’m currently trying to run Couch in parallel with another application, this is my setup at the top of my pages where I want to include Couch:
<?php
// GLOBAL INCLUDES
require_once("Application.php");
require_once( 'couch/cms.php' );
?>
The problem I’m having is there seems to be a conflict happening resulting in this error message:
An error (8) occured on line 265 of file ...Beck/couch/header.php:
Undefined variable: port

Couch is working fine within the site but only on static pages.

Just wondering if there is any help/advise somebody might be able to give me?

Regards Tim
Hi Tim and welcome :)
I am glad you liked Couch.

As for the problem you mentioned - Couch, as stated on our homepage itself, is really meant to be retrofitted within static HTML/CSS sites.
Couch, per se, is a bonafide PHP application and, as with any other application, if we try to run it alongside another PHP application, the outcome can be indeterminate - i.e. it might or might not work.

Nevertheless, you can try including couch/cms.php as the very first PHP statement -
<?php
// GLOBAL INCLUDES
require_once( 'couch/cms.php' );
require_once("Application.php");
?>
Again - no guarantees. Your application may fail in unexpected ways.
Hi KK,

Thanks for coming back to me on that.

Yes fully understand, it was always going to be a long shot but it was worth giving it ago.

Yes did try swapping them around only for it to come up with another error, oh well that's the way of the world.

Still love the program and look forward to using it on future static sites.

Thanks again.

Regards Tim
3 posts Page 1 of 1