failed to open stream

designanddraft - August 7, 2008 - 19:40
Project:Site Documentation
Version:6.x-1.1
Component:Code
Category:bug report
Priority:critical
Assigned:NancyDru
Status:closed
Description

error message-

warning: fopen(files/sitedoc/sitedoc_20080807_1229.html) [function.fopen]: failed to open stream: No such file or directory in /home/content/d/e/s/designanddraft/html/govbyus/sites/all/modules/sitedoc/sitedoc.module on line 427.

#1

gurubert - August 22, 2008 - 08:22
Priority:normal» critical
Status:active» needs review

Hi,

This happens because sitedoc.module queries for the variable file_directory_path instead of using the API function file_directory_path() which returns the default directory when the variable is not set.

I have attached a small patch that corrects this issue.

AttachmentSize
sitedoc.file_directory_path.patch 525 bytes

#2

NancyDru - August 22, 2008 - 16:57
Assigned to:Anonymous» NancyDru
Status:needs review» fixed

Actually there were other instances of this; I corrected all of them. Committed to both branches.

#3

Anonymous (not verified) - September 11, 2008 - 05:32
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.