Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2009-12-28 05:51:59
- craigbass76
- Member
- Registered: 2009-12-23
- Posts: 36
[SOLVED] Can't preview a comment
For whatever reason, txp is looking at localhost for a page. I don’t see where to tell it to look on the web server. I thought maybe it was the path_from_root row in the txp_prefs table, but changing that didn’t seem to do anything.
What happened? This, of course, worked on my laptop before I moved the site live, but my laptop IS localhost.
Offline
Re: [SOLVED] Can't preview a comment
Hi craig
Did you change the host in the config.php? This textbook entry might help.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#3 2009-12-28 12:49:23
- craigbass76
- Member
- Registered: 2009-12-23
- Posts: 36
Re: [SOLVED] Can't preview a comment
I did not, I left it localhost. I thought this was correct, since the db lives on localhost (relative to the site) and the rest of the site works fine. I haven’t got a hole punched through the firewall for mysql (3306?) but I guess I can do that if I need to. Seems odd though that I’d have to do this.
Offline
#4 2009-12-29 00:33:49
- craigbass76
- Member
- Registered: 2009-12-23
- Posts: 36
Re: [SOLVED] Can't preview a comment
The only thing fishy I see is the doc_root line of config.php. I don’t have such line, but I didn’t on my local txp install either
Offline
#5 2009-12-29 01:22:48
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: [SOLVED] Can't preview a comment
The lines you probably have to change in config.php are:
$txpcfg['db'] = 'database name';
$txpcfg['user'] = 'database user';
$txpcfg['pass'] = 'database password';
$txpcfg['txpath'] = '/path/to/textpattern';
And in Admin > preferences the URL of your site.
The doc_root line was removed from config.php a long time ago. $txpcfg['host']
is localhost
nearly everywhere.
Offline
#6 2009-12-29 01:37:27
- craigbass76
- Member
- Registered: 2009-12-23
- Posts: 36
Re: [SOLVED] Can't preview a comment
Hrmmm… Still no go. I changed the path from /home/me/txp-install/ to /var/www/html/txp-install/
I’ve left comments up, so you can see what happens if you go to the site. Looking at the source, I see the form target as:
<form id=“txpCommentInputForm” method=“post” action=”/manufacturers/semi-custom-kitchen-cabinets#cpreview”>
I looked at a fresh install on my laptop, and have the same sort of action path.
Last edited by craigbass76 (2009-12-29 02:13:59)
Offline
#7 2009-12-29 03:13:38
- craigbass76
- Member
- Registered: 2009-12-23
- Posts: 36
Re: [SOLVED] Can't preview a comment
I had a line in my head form that went a little something like:
<base href=“http://localhost/textpattern-4.2.0/” />
Lo and behold, commenting that out fixes my issue. It was something leftover from when my site was a regular homebrew php site, and I had it in there for helping out with mod_rewrite.
Thanks all for the help. Hopefully my knuckleheaded mistake helps someone else.Offline
Pages: 1