I have an ongoing struggle to migrate Drupal from a Linux box to a Windows box. My current situation is that I have Drupal 7.38 installed and I deleted all the tables from the database. I have just migrated my database over from the live site, without touching the codebase. I don't really expect this to work, but at least I'm getting a different result this time.
When I try to bring up any page, I get something like this:
Warning: file_put_contents(temporary://filC1F4.tmp): failed to open stream: "DrupalTemporaryStreamWrapper::stream_open" call failed in file_unmanaged_save_data() (line 1936 of C:\inetpub\drupal-7.38\drupal-7.38\includes\file.inc).
The file could not be created.
Warning: file_put_contents(temporary://filC205.tmp): failed to open stream: "DrupalTemporaryStreamWrapper::stream_open" call failed in file_unmanaged_save_data() (line 1936 of C:\inetpub\drupal-7.38\drupal-7.38\includes\file.inc).
The file could not be created.
Warning: file_put_contents(temporary://filC216.tmp): failed to open stream: "DrupalTemporaryStreamWrapper::stream_open" call failed in file_unmanaged_save_data() (line 1936 of C:\inetpub\drupal-7.38\drupal-7.38\includes\file.inc).
The file could not be created.This is preceded by a link to the home page (part of the top level menu), the name of the site, linked, and the site slogan. The screen is blank white, with no CSS at all, although that makes sense because the database is probably trying to call my theme but it doesn't yet exist on this server. I am able to log into the site as user #1, and access the admin pages, although they do not format with any CSS, either. They do still seem to work. For instance, I can look at my Content Types and edit Field settings. But I always get 3 file_put_contents warnings. Can anyone explain how to fix that?
Comments
Found it, sort of
The problem with the file_put_contents was solved by this thread here: https://www.drupal.org/node/1053896. The issue was the value set in the temporary directory field in the site.com/admin/config/media/file-system page. Changing it from /tmp to something like C:\inetpub\temp got rid of the error. The site still isn't working properly, but getting closer.