Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2006-01-10 21:25:08
- lokimann
- New Member
- Registered: 2006-01-09
- Posts: 8
path_to_site error. Where is it defined?
Please help.
Where is the path_to_site defined? Is it in a document in my Textpattern install? Or maybe in the database?
I wanted to go from having TXP in a subdirectory to being top level. The db connections are fine and the admin works. I keep getting the “path_to_site is inaccessible: /home/jeremy/public_html/think” error. And a few other errors, all related to the old file path. The directory “think” doesn’t exist anymore. I’ve set the Site URL to be correct and that still doesn’t do it. I’d rather avoid creating a new db, installing TXP again and migrating the db over if I can avoid it.
I’ve looked around on the forums and even Googled it.
Can someone please tell me where the paths are defined?
Thanks for your help!
Offline
Re: path_to_site error. Where is it defined?
path_to_site is usually automatically updated, when you view your public-site after the move. So, just calling your front-page should set the path_to_site value to the correct value.
(See publish.php: if (isset($here) and $path_to_site != $here) updateSitePath($here);
and $here is defined in the index.php in the upper-most directory $here = dirname(__FILE__);
)
Offline
#3 2006-01-10 21:47:20
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: path_to_site error. Where is it defined?
Did you also change the paths in config.php?
Offline
#4 2006-01-11 01:03:23
- lokimann
- New Member
- Registered: 2006-01-09
- Posts: 8
Re: path_to_site error. Where is it defined?
Sencer, you are awesome. This is the third time you’ve had the answer! Much thanks!
Offline