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

I am a newbie to this so i do apologise if this has already been discussed.

I have installed all Couch files and have created a database and user, i have renamed the config file and get this error,

Parse error: syntax error, unexpected 'K_DB_PASSWORD' (T_STRING) in /home/afhostin/public_html/couch/config.php on line 48

I am sure i am doing something very silly but cannot work out what it is.

Please help.

Andy
Hello and welcome, Andy :)

The error message you mentioned suggests a PHP syntax error- perhaps you forgot the trailing semi-colon after adding the password?.

Please look carefully at 'line 48'. In case, you have any difficulty feel free to PM me your config.php file (you'll have to zip it first before attaching it) and I'll take a look at it.

Thanks.
Thanks.

I had a look. To show you the problem I'm quoting both the original and the rectified version below:
Original:
Code: Select all
// 5.
// Database username
define( 'K_DB_USER', 'xyz’ );
// 6.
// Database password
define( 'K_DB_PASSWORD', ‘abc’ );

Rectified:
Code: Select all
// 5.
// Database username
define( 'K_DB_USER', 'xyz' );
// 6.
// Database password
define( 'K_DB_PASSWORD', 'abc' );

Can you spot the difference?
I won't be surprised if you don't :)

Your original code is using the Unicode character for the single left and right quote.

The rectified code (one that PHP expects) simply uses the single quote (found on the bottom right of the keyboard with the double-quote ").

I'm PMing you your rectified config file.
Hope it helps.
Hi,

After looking for a few mins i have noticed the difference.

Amazing how something so simply can stop the whole process from working.

Thank you for your time, i can carry on experimenting with Couch CMS now.


Thank you again

Andy
4 posts Page 1 of 1