#21674 [Opn]: Warning: main(lang.php) [function.main]: failed to create stream: No such file

From: Date: Fri, 17 Jan 2003 00:17:58 +0000
Subject: #21674 [Opn]: Warning: main(lang.php) [function.main]: failed to create stream: No such file
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-30310@lists.php.net to get a copy of this message
 ID:               21674
 User updated by:  moderator@blackpeeps.com
 Reported By:      moderator@blackpeeps.com
 Status:           Open
 Bug Type:         *URL Functions
 Operating System: Cobalt RAQ4 Apache/Linux
 PHP Version:      4.3.0
 New Comment:

I may have debugged the problem. Actually, the problem is more of a
very bad Error Message than a functionality issue.

Specifically, my script's end result is to create a dynamic page
(index.html) the web root path/directory from which the script is
executed and in which the index.html file is to be written to was did
not have "w" write permissions. 

So instead of PHP stating that it could not write to 
/home/sites/site3/web/ due to an authorization issue it sent:

Warning: main(lang.php) [function.main]: failed to create stream: No
such file or directory in /home/sites/site2/web/IV/config.php on line
97

Warning: main() [function.main]: Failed opening 'lang.php' for
inclusion (include_path='') in /home/sites/site2/web/IV/config.php on
line 97

Warning: main(extras.php) [function.main]: failed to create stream: No
such file or directory in /home/sites/site2/web/IV/config.php on line
98

Warning: main() [function.main]: Failed opening 'extras.php' for
inclusion (include_path='') 

Which is grossly misleading and only sends one off on a "wild goose"
chase.

Thanks.


Previous Comments:
------------------------------------------------------------------------

[2003-01-15 23:29:05] moderator@blackpeeps.com

The script worked like a charm prior to upgrade to php 4.3.0

------------------------------------------------------------------------

[2003-01-15 23:27:01] moderator@blackpeeps.com

What do you mean when you say that my include_path is empty?

------------------------------------------------------------------------

[2003-01-15 23:25:35] philip@php.net

Your error is from include not require, are you sure this is the
correct code?  Require is fatal; something is fishy here.

------------------------------------------------------------------------

[2003-01-15 22:33:10] wez@php.net

and do the files:
/home/sites/site2/web/IV/lang.php
/home/sites/site2/web/IV/extras.php  
exist?

------------------------------------------------------------------------

[2003-01-15 22:29:52] wez@php.net

Your include_path is empty ''; are you sure that this is correct?

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/21674

-- 
Edit this bug report at http://bugs.php.net/?id=21674&edit=1



Thread (35 messages)

« previous php.bugs (#30310) next »