Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-01-03 23:07:56

Steerpike
Member
Registered: 2006-01-03
Posts: 11

Corrupted installation or other problem?

Hi, I’m new to TextPattern, having been pointed this way by a fine fellow over on the nucleus forums.

I’ve just downloaded the latest package, and installed on my hosted web server in a standard fashion. I made one test post, and got what I consider to be strange results; the results suggest a problem with css (just my noob guess) but I checked all the uploaded files and everything seems fine. I spent several hours troubleshooting, but can’t see anything wrong. All I’d like at this point is a quick confirmation that this is/is not what I should be seeing.

Here is a link to the new site / post …

http://www.sequoiahills.com/textpattern/

I was expecting a much more ‘formatted’ look. I’ve played around with the default style, and it has no effect on the page – I tried changing background color, for example, but the background remains pure white. So … I’m probably missing something very obvious here!

Thanks for any assistance you can offer!

Offline

#2 2006-01-03 23:19:13

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: Corrupted installation or other problem?

http://www.sequoiahills.com/textpattern/textpattern/css.php?s=default

<b>Warning</b>: main(): Unable to access ../textpattern/textpattern/publish.php in <b>/home/virtual/site174/fst/var/www/html/textpattern/textpattern/css.php</b> on line <b>19</b><br />
<b>Warning</b>: main(../textpattern/textpattern/publish.php): failed to open stream: No such file or directory in <b>/home/virtual/site174/fst/var/www/html/textpattern/textpattern/css.php</b> on line <b>19</b><br />

..etc. Looks like you’ve used a relative path for your txpath setting in config.php. It has to be absolute (probably /home/virtual/site174/fst/var/www/html/textpattern/textpattern/ in your case).


Alex

Offline

#3 2006-01-04 00:02:39

Steerpike
Member
Registered: 2006-01-03
Posts: 11

Re: Corrupted installation or other problem?

Well thank you so much – you are (of course!) entirely correct! Fixed the problem and it looks …;)… just a tad better!

I recall now having an initial problem right after the upload, ultimately traced to a premature termination of the ftp session (and thus missing files). But part of my initial troubleshooting suggested a problem with the very path you mention, and I changed it from absolute to relative. When I later discovered that some files did not make it to the server, I did not change this path back from relative to absolute … and things ‘seemed’ to work with the relative path, so I did not think to change it back – my bad.

Regarding this path – as you can see, it’s a very long and cryptic path, on account of my site being on a hosted server. I was very uncomfortable using this path since it looks like something highly likely to change, if my web host ever decides to relocate my site (which I imagine they do from time to time). Is there ‘any’ way to avoid using the entire path? Here’s the path again, for reference. I’ve never had to enter this path ever before for any other application …

$txpcfg[‘txpath’] = ‘/home/virtual/site174/fst/var/www/html/textpattern/textpattern’;

I’ve always treated the path from ‘/var/www/….’ as being the absolute path in the past. I guess I could just try it and see … but once bitten twice shy!

Thanks again …

Offline

#4 2006-01-04 00:37:32

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: Corrupted installation or other problem?

This is what we’re using in the 4.1 branch:

$txpcfg['txpath'] = dirname(__FILE__);

Alex

Offline

Board footer

Powered by FluxBB