Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
paths problem help
Hi,
I’ve uploaded a site that was running locally and i have a wierd paths problem.
After i imported the local database some of the paths were changed and still point to the local folders and i dont know where to reset them.
For instance in my txp files manager i get this error on the online site:
Warning: cannot write to file directory
/Users/kvnmcwebn/Sites/aras/files.
Please change file permissions to 777.
but that is the path to my local site,
where do i change update the paths after i import a database thats running locally?
Ive had this problem before, for instance after i imported a database to a live site and forgot the password the password generator sent a link to the local site.
thanks in advance
its a bad hen that wont scratch itself.
photogallery
Offline
#2 2008-03-25 10:24:28
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Re: paths problem help
Have you checked if your “config.php” file shows the right path?
Offline
Re: paths problem help
hi,
yes i did, and it does
its a bad hen that wont scratch itself.
photogallery
Offline
#4 2008-03-25 10:36:25
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Re: paths problem help
When it happens to me I go directly to the db and change the path in the “txp_prefs” table. In my experience this has always worked
Last edited by redbot (2008-03-25 10:37:32)
Offline
Re: paths problem help
ah yes redbot,
i see in the prefs table var section there are two fields that still have the local paths. now i just have to figure out how to edit them. ive only ever used phpmyadmin for import/export. shouldnt be too hard though right?
thanks a mill
its a bad hen that wont scratch itself.
photogallery
Offline
#6 2008-03-25 11:38:33
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Re: paths problem help
shouldnt be too hard though right?
No, it’s easy.
With phpmyadmin go to the “txp_prefs” table then press the “pencil “ button near the “siteurl” field, change the value and press save. If you want to be ultra-safe (but it’s not the case) first make a backup .
Last edited by redbot (2008-03-25 11:44:19)
Offline
Re: paths problem help
thats brilliant thanks redbot,
problem solved
its a bad hen that wont scratch itself.
photogallery
Offline
#8 2008-03-25 23:15:02
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: paths problem help
Er… isn’t that just a matter of changing the paths in advanced preferences?
Offline
#9 2008-03-25 23:22:17
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: paths problem help
Yes, it is.
Offline
#10 2008-03-26 03:36:45
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Re: paths problem help
Mary wrote:
Yes, it is.
Sometimes it doesn’t work at first time, even if all seems to be set right (and I thought kevin was referring to this situation).
I know this seems irrational but I experienced this at least one time. in such cases It’s simply faster to change the db entry.
Last edited by redbot (2008-03-26 03:42:39)
Offline
Re: paths problem help
I hadnt changed the prefs at first but even after i did those two fields didnt update.
Wait did i change those two fields in advance prefs…. ohh boy.
anyway thanks i learned a lot from the post.
Last edited by kvnmcwebn (2008-03-27 11:53:27)
its a bad hen that wont scratch itself.
photogallery
Offline
Pages: 1