Problems, need help? Have a tip or advice? Post it here.
8 posts Page 1 of 1
Hi everyone. I need help with installing CouchCMS.
I've made a proper installation on my free testing server on 000webhost.com
However when I do the same installation process step by step on a commercial server (the installation path has to be in a subfolder here) i get this error:
Code: Select all
Warning: strpos() [function.strpos]: Empty delimiter in /couch/header.php on line 219

Warning: strpos() [function.strpos]: Empty delimiter in /couch/header.php on line 251
Please define your website's URL in config.php

Any help would be greatly appreciated.
Hi Cyryl,

It seems Couch is having trouble figuring out your site's URL by itself.
You need to lend it a helping hand by specifying the URL manually.

This is what needs to be done -
Please find the following section in your couch/config.php file
// 1.
// If neccesary, define the full URL of your site including the subdomain, if any.
// V.IMP: Don't forget the trailing slash!
//define( 'K_SITE_URL', 'http://www.test.com/subfolder1/subfolder2/mysite/' );

and uncomment the 'define' (i.e. remove the '//' ) and change the sample URL to your site's full URL (with the trailing slash)
// 1.
// If neccesary, define the full URL of your site including the subdomain, if any.
// V.IMP: Don't forget the trailing slash!
define( 'K_SITE_URL', 'http://www.yoursite.com/' );

Please let me know if this helps.
Thanks
I defined the url in the config file and I have some progress :)

Everything seems to work properly when I acccess the site using the direct server address.
i.e. http://spupen1.home.pl/qf/ (it's a subdomain of Home.pl - my hosting provider)
but whenever I try to access the site using the domain I intend the clients to use i.e. http://www.qfcatering.pl (which is configured to redirect to http://spupen1.home.pl/qf/ url you see above.)
I get this error:
Code: Select all
ERROR: 'couch' folder should reside in the main web-site folder
As mentioned in the previous post, Couch is having trouble figuring out the site's URL on your particular web server setup.

The workaround is to manually indicate the URL.
I think the URL you entered was http://spupen1.home.pl/qf/ and this seems to work well.
However when you try to access the site as http://www.qfcatering.pl/, this is NOT the url that was specified and Couch falters (I think understandably).

You are not likely to access the same site by two different URLs, are you?
I think for now you can keep on accessing it via http://spupen1.home.pl/qf/ and once it is ready to go live, just change the URL in config.php to point to the new domain name (http://www.qfcatering.pl/).
You are not likely to access the same site by two different URLs, are you?

Unfortunately yes. Client bought two domains by which he intends to access the site :/ (the other one is http://www.quickfood.wroclaw.pl)
But there's a bigger problem. Even if I do change the url in the config file to http://www.qfcatering.pl/ like you said I still get:
Code: Select all
ERROR: 'couch' folder should reside in the main web-site folder
Hi,
I had the same problem, in my case following instruction
Code: Select all
 define( 'K_SITE_URL', 'http://www.softinet.com.pl/new/' );

helped me go through, but now I have problem with connecting database.



Can it be some Couch configuration problem?
Hosting support cannot figure out what is a problem, I get this error:

Attachments

@pawelbary, as the error message suggests, the 'username' (K_DB_USER) specified in couch/config.php for making the MySQL connection does not seem to have sufficient privileges.

Your host really should be able to help you with this.
If not, try using whatever database admin tool they have provided you with to grant full privileges to the said account (or create a new one with such privileges and specify it in Couch).

Hope this helps.
yeah there was an extra space in a password.

After that I had problem with ..php pages, instead of displaying them I got messages that COUCH should be in the main folder, but the below trick helped:

<?php define( 'K_TEMPLATE_NAME', 'blog.php' ); ?>
<?php require_once( 'couch/cms.php' ); ?>
8 posts Page 1 of 1