FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » FUDforum Installation Issues » Migration lost ability to open attachments
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Migration lost ability to open attachments [message #20987] Sat, 06 November 2004 19:45 Go to next message
BugLaden is currently offline  BugLaden   United States
Messages: 216
Registered: February 2002
Location: Westminster, MD
Karma: 0
Senior Member
Thought I did everything right. Brought over the data directory and the db. Everything has run smoothly moving the forum from one box to another. I just discovered that attachements brought over from the old server cannot be read. ran into the first problem

Here is a thread with an attachment from the old server;
http://www.ccgworkshop.com/forum/index.php?t=msg&th=385&start=0& ;


-=BugLaden
Re: Migration lost ability to open attachments [message #20989 is a reply to message #20987] Sat, 06 November 2004 22:05 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Does the forum have permissions to read the attachment files?

FUDforum Core Developer
Re: Migration lost ability to open attachments [message #20990 is a reply to message #20987] Sun, 07 November 2004 02:53 Go to previous messageGo to next message
BugLaden is currently offline  BugLaden   United States
Messages: 216
Registered: February 2002
Location: Westminster, MD
Karma: 0
Senior Member
-rw-rw-rw- 1 apache apache
on all the files

we are talking about the <data>/files directory, correct?


-=BugLaden
Re: Migration lost ability to open attachments [message #20997 is a reply to message #20990] Mon, 08 November 2004 14:27 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Then you may need to execute the following query:

UPDATE [prefix]attach SET location=REPLACE(location, 'old_files_dir_path', 'new_files_dir_path');


FUDforum Core Developer
Re: Migration lost ability to open attachments [message #21014 is a reply to message #20987] Mon, 08 November 2004 20:59 Go to previous message
BugLaden is currently offline  BugLaden   United States
Messages: 216
Registered: February 2002
Location: Westminster, MD
Karma: 0
Senior Member
That did it. Thanks!

-=BugLaden
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: caught in a loop, can&acute;t register members
Next Topic: Update 2.5.2 -> 2.6.6
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 26 21:15:36 GMT 2024

Total time taken to generate the page: 0.02727 seconds