Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2006-01-21 23:15:34
- superbird
- New Member
- Registered: 2006-01-21
- Posts: 3
Installation issue: problem with config.php?
I got to the stage where I paste the database details in config.php, and when I click to carry on, I get a blank page with the orange bar at the top. Going to the install directory in a browser gives:
Warning: Unexpected character in input: ‘\’ (ASCII=92) state=1 in /home/kartlink/public_html/txp/textpattern/config.php on line 7
Parse error: parse error, unexpected T_VARIABLE in /home/kartlink/public_html/txp/textpattern/config.php on line 8
So I think something extra got into config.php when I was editing it, but I can’t see it anywhere. What can I do?
Offline
#2 2006-01-22 04:49:24
- KurtRaschke
- Plugin Author
- Registered: 2004-05-16
- Posts: 275
Re: Installation issue: problem with config.php?
Please post the contents of your config.php
file (do obfuscate your DB password, though).
There’s probably something on lines 6,7, or 8 that is confusing PHP.
-Kurt
kurt@kurtraschke.com
Offline
#3 2006-01-22 11:56:26
- superbird
- New Member
- Registered: 2006-01-21
- Posts: 3
Re: Installation issue: problem with config.php?
This is what I have:
<code><?php
$txpcfg[‘db’] = ‘kartlink_wrdp1’;
$txpcfg[‘user’] = ‘kartlink_wrdp1’;
$txpcfg[‘pass’] = ‘*******’;
$txpcfg[‘host’] = ‘localhost’;
$txpcfg[‘table_prefix’] = ‘txp’;
$txpcfg[‘txpath’] = ‘/home/kartlink/public_html/txp/textpattern’;
$txpcfg[‘dbcharset’] = ‘utf8’;
?></code>
Last edited by zem (2006-01-22 11:59:19)
Offline
#4 2006-01-27 00:02:46
- mstrraus2001
- New Member
- Registered: 2005-07-13
- Posts: 2
Re: Installation issue: problem with config.php?
I am having the same error message. I would love to here your solution.
Offline
#5 2006-01-27 00:17:37
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: Installation issue: problem with config.php?
In both cases, there is a PHP syntax error. Probably a missing or incorrect quote character, missing semicolon at the end of the line, or similar. See the config.php.default file for an example of the correct syntax.
I can’t see anything obviously wrong with the example posted here.
Alex
Offline
#6 2006-01-27 00:44:03
- mstrraus2001
- New Member
- Registered: 2005-07-13
- Posts: 2
Re: Installation issue: problem with config.php?
I’m not finding the problem. My config.php says…
<?php
$txpcfg[‘db’] = ‘newsletter’;
$txpcfg[‘user’] = ‘root’;
$txpcfg[‘pass’] = ‘root’;
$txpcfg[‘host’] = ‘localhost’;
$txpcfg[‘table_prefix’] = ‘’;
$txpcfg[‘txpath’] = ‘/Applications/MAMP/htdocs/textpattern’;
$txpcfg[‘dbcharset’] = ‘utf8’;
?>
My error is…
Warning: Unexpected character in input: ‘\’ (ASCII=92) state=1 in /Applications/MAMP/htdocs/textpattern/config.php on line 7
Parse error: syntax error, unexpected T_VARIABLE in /Applications/MAMP/htdocs/textpattern/config.php on line 8
Offline
#7 2006-01-27 01:14:57
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: Installation issue: problem with config.php?
I can’t see an obvious problem with the code you’ve posted here. Is there a backslash in there somewhere?
Alex
Offline
Offline
#9 2006-01-27 10:55:10
- superbird
- New Member
- Registered: 2006-01-21
- Posts: 3
Re: Installation issue: problem with config.php?
I just downloaded it off the server and opened it in TextWrangler and it’s got all backslashes in it that weren’t there when I uploaded it. Of course I don’t know when they got put there, hopefully just when I opened it.
The password has an [ in it, could that be a problem? I’ve installed other stuff on that database before though
Also the database is getting full, I have 16mb and I’m using 15 so I’m going to delete stuff and see what happens
Offline
Re: Installation issue: problem with config.php?
I just downloaded it off the server and opened it in TextWrangler and it’s got all backslashes in it that weren’t there when I uploaded it. Of course I don’t know when they got put there, hopefully just when I opened it.
No, given that the error message complains about backslashes, it’s likely they were their when ou uploaded them. Maybe you uploaded as binary instead of ASCII, maybe the tool you were using tries to automatically do something for you, there’s several possibilities as a cause.
The password has an [ in it, could that be a problem?
No, no problem.
Offline