I ran into this when I set up a Drupal site on my dev server w/ this module, and then moved it to production along with the database. The database still cached an incorrect location for the $xmldir. Clearing the Drupal cache fixed this, but for some reason it would not recreate any of the .XML files until I modified this line. (see attached)

I came to the conclusion, and correct me if I'm wrong, that IF the XML file doesn't exist (which it didn't in my case), this function returns FALSE. That sets line 264 up for failure when it tries to file_save_data() to an empty path.

Hope this helps!

CommentFileSizeAuthor
patch_134.txt614 bytesms2011

Comments

harry slaughter’s picture

Assigned: Unassigned » harry slaughter
Status: Needs review » Closed (works as designed)

the documentation for file_create_path() is a bit vague. file_create_path() will create the dir you pass to it and return the full relative path name. FALSE if it fails to create the directory.

if you are copying tables, you may have copied the variables table which holds values this module uses. that may have caused your problem. this module does not use cache.