Hello,

I'm learning how to restore a backup made of my official site, in a localhost (test site) environment. I first created a backup of the drupal mysql database and also of the public_html directory (where drupal is located).
I then restored my database and the directory... followed some certain procedures, and after learning a couple of things... puff! it worked! (it was the first time I had sucessfully restored a backup).

The only problem I found was that the images created in the nodes through FCKeditor (which I upload and browse through IMCE) were not there!. When I went to edit the nodes, the images frames were there, but not the images themselves, and when I tried to browse them again to see what was going on I found that IMCE couldn't find the basepath or the directory files path in this recently restored site.

How could I tell IMCE or FCKeditor, or have Drupal tell them, that the files path has changed so that I can properly browse it and display its images?

Thank you.

Comments

ontwerpwerk’s picture

If the file paths are indeed changed you will have to manually change the records in your database...
that is hard, because the best way would be to do a full text search and replace on the old paths with the new paths

It might also just be a permissions problem though, because when you backup your site the access rights might be changed (try resetting all unix access rights for your files directories by using chmod from a commandline)

Also, there was a small but important change in FCKeditor a while back, the file directories were "Files", "Images" with leading capital letters, but have changed to all lower case - this might be a small problem while editing uploaded images.

A fourth problem might be related to the input filters => http://drupal.org/node/175339

thebrotherofasis’s picture

Status: Active » Closed (fixed)

Thank you.