This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » legacy support » symfony 1.1 » Warning: fwrite(): in StreamLogger.class.php on line 73
Warning: fwrite(): in StreamLogger.class.php on line 73 [message #55185] Mon, 30 June 2008 16:05 Go to next message
larsf  is currently offline larsf
Messages: 22
Registered: June 2008
Location: Stuttgart / Germany
Junior Member

Hi there,

2 days ago I discovered symfony and the screencasts amazed me in such a way that I want to use symfony for my current customer project (sort of media-center to manage the customer's audio and video files and provide his customers controlled access to them).

I'm running symfony on a managed server at 1&1.
Installation via PEAR worked all fine and I switched to PHP5 as well, but when I run 'symfony' in the shell I get:


(uiserver):uxxxxxx:~/pear > symfony
X-Powered-By: PHP/5.2.6
Content-type: text/html



Warning: fwrite(): supplied argument is not a valid stream resource in /homepages/20/dxxxxx/htdocs/pear/php/symfony/log/sfStreamLogger.class.php on line 73

Warning: fwrite(): supplied argument is not a valid stream resource in /homepages/20/dxxxxxxx/htdocs/pear/php/symfony/log/sfStreamLogger.class.php on line 73

Warning: fwrite(): supplied argument is not a valid stream resource in /homepages/20/dxxxxxx/htdocs/pear/php/symfony/log/sfStreamLogger.class.php on line 73


[this repeats several times here...]


Warning: fwrite(): supplied argument is not a valid stream resource in /homepages/20/dxxxxxxx/htdocs/pear/php/symfony/log/sfStreamLogger.class.php on line 73

Warning: fwrite(): supplied argument is not a valid stream resource in /homepages/20/dxxxxxxx/htdocs/pear/php/symfony/log/sfStreamLogger.class.php on line 73

Warning: fwrite(): supplied argument is not a valid stream resource in /homepages/20/dxxxxxxx/htdocs/pear/php/symfony/log/sfStreamLogger.class.php on line 73

Warning: fwrite(): supplied argument is not a valid stream resource in /homepages/20/dxxxxxx/htdocs/pear/php/symfony/log/sfStreamLogger.class.php on line 73
(uiserver):uxxxxxxx:~/pear >




'symfony -V' works fine on the other hand:

(uiserver):uxxxxxxxx:~/pear > symfony -V
X-Powered-By: PHP/5.2.6
Content-type: text/html


symfony version 1.1.0 (/homepages/20/dxxxxxxx/htdocs/pear/php/symfony)
(uiserver):uxxxxxxxx:~/pear >



I tried so find the error myself, but looking through all the php files of symfony takes a long time when you're new to symfony... Wink


Does anyone have any ideas what could be the issue here?


Thanks in advance and best regards,
Lars.

[Updated on: Mon, 30 June 2008 16:09]

Re: Warning: fwrite(): in StreamLogger.class.php on line 73 [message #57101 is a reply to message #55185 ] Sat, 26 July 2008 17:08 Go to previous messageGo to next message
johny  is currently offline johny
Messages: 15
Registered: December 2007
Location: Netherlands
Junior Member

Well i got the same problem.
I thought it had to do with file permissions but they seem okay.
Even i tested if the PHP command line is executed under my user and yes it is. So i keep on searching
Re: Warning: fwrite(): in StreamLogger.class.php on line 73 [message #57102 is a reply to message #55185 ] Sat, 26 July 2008 17:24 Go to previous message
johny  is currently offline johny
Messages: 15
Registered: December 2007
Location: Netherlands
Junior Member

So i found the Answer by clicking on a http://groups.google.com/group/symfony-fr/browse_thread/thre ad/811e49d9b8b81e68/88aa80f6ead29347?#88aa80f6ead29347French Newsgroup Link ,
luckily the answer was english.
It is caused if you use PHP CGI instead the CLI (Command Line) Version some hosters also my one are running the CGI version on the command line.
So you have to define the STDOUT constant yourself.
bestway to do it is inside the symfony file

just add
if(!defined(STDOUT))
{
define('STDOUT', fopen('php://stdout', 'w'));
}
to the top of the symfony file.
That solved it for me
Previous Topic:problem with setLabel
Next Topic:Anyone have a working email plugin?
Goto Forum:
  

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software