Calls to file_unmanaged_copy() fail when using Drupal 7.7+ and the safe_mode (deprecated) or open_basedir (recommended security) configuration directives. This is due to the copy() PHP function not working properly with stream wrappers and these directives.
Create workaround in file_unmanaged_copy() using realpaths if inital call to copy() fails.
Patch #65 has been reviewed and tested and needs to be committed to core.
User interface changes
None as other systems should already be using file_unmanaged_copy() instead of copy().
Original report by jenspeter
I have a problem that I need to decide on fast for different reasons. I made this topic in forum yesterday and have not heard back. I am sorry if this is wrong to add it here but I hope this place on Drupal.org is seen by more.
I have made an update from version 7.4 I think it was to the newest 7.7 of Drupal core.
During the update all worked fine but I got an error with Watchdog_err when I returned to Front page.
Found a solution for that (should be Watchdog_error in files.inc) on Drupal.
Then I found that none of the layout was used.
I solved that by removing the aggregration of the CSS and JavaScribts.
Now my problem is that I cannot update any other module.
I get the following error:
http://ftp.drupal.org/files/projects/google_analytics-7.x-1.2.tar.gz could not be saved to temporary://update-cache-6f83ea9d/google_analytics-7.x-1.2.tar.gz.
But it is a similar problem to all modules I try to update.
I have looked for help on Drupal but I find only the help about setting the right tmp-location and rights for the folder.
I have not changed this and it worked fine before the update.
But even if I change to another folder (e.g. tmp3) I seems the folder is created just fine but I get the same error.
I can see that the file that is downloaded the to folder has the rights 600 and the folders that are created is set as 755.
Any one that have ideas why this is happening?
PASSED: [[SimpleTest]]: [MySQL] 34,275 pass(es). View
PASSED: [[SimpleTest]]: [MySQL] 32,978 pass(es). View
PASSED: [[SimpleTest]]: [MySQL] 33,639 pass(es). View
PASSED: [[SimpleTest]]: [MySQL] 35,755 pass(es). View