Im getting this error in a panel where one region is styled with another background color with the panels styles. The style is now missing, and this error message shows:

warning: fopen() [function.fopen]: Filename cannot be empty in /home/www/pan2.voxel.dk/includes/file.inc on line 803.
File cannot be made (translated to english from danish). 

The line 803 referres to this code in the file.inc:

function file_save_data($data, $dest, $replace = FILE_EXISTS_RENAME) {
  $temp = file_directory_temp();
  // On Windows, tempnam() requires an absolute path, so we use realpath().
  $file = tempnam(realpath($temp), 'file');
  if (!$fp = fopen($file, 'wb')) {     <--------------------------------------------------------THIS IS LINE 803
    drupal_set_message(t('The file could not be created.'), 'error');
    return 0;
  }
  fwrite($fp, $data);
  fclose($fp);

  if (!file_move($file, $dest, $replace)) {
    return 0;
  }

  return $file;
}

When not using any styles, the error does not show. I've tried to check the file-permissions, but can't really see anything odd here.

Any suggestions on the cause and fix?

Thanks in advance

Comments

plastikkposen’s picture

Just thinking: As the error already shows when selecting the style in panels setup, my thoughs are that the error has "something" to do with saving this custom style into a file somewhere????

Letharion’s picture

Status: Active » Postponed (maintainer needs more info)

Hello!

Unfortunately, this issue has remained open, without activity, for a very long time. I hope you can understand that between maintaining the module, work, and other obligations, the maintainers are very busy. This leads to not all issues being answered.

In order to figure out which bugs that are still present, I'm going over all low activity bug reports that has not been touched for 6 months, and marking them "Postponed, needs info". In many cases, I expect the bug to have been solved by a newer version of Panels..

If you can still reproduce this issue with the latest dev version of Panels, please just reset it's status to active, and we'll try to work it out. Please remember to post any new information that may be relevant, such as any attempts of your own at debugging.

Regards, Letharion

Letharion’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

A month has passed, and I'm going over the issue queue ones more. Some issues have been closed for other reasons, some re-opened, but this issue has remained silent for the past month.
Because of this, I'm doing a bulk close of a number off issues. I'm sorry that it happened this way, but the issue queue has had to few contributors, and to many questions.

Again, as said in the previous comment, feel free to re-open the issue by setting it to active, if you still need help.

Regards, Letharion.