Problème avec Sandbox 1.1 : fwrite(): supplied argument is not a valid stream resource

14 views
Skip to first unread message

Jean-Philippe Bolatre

unread,
May 13, 2008, 7:40:58 AM5/13/08
to symfo...@googlegroups.com
Bonjour,

J'ai téléchargé ce matin le tar sandbox 1.1 à cette adresse : http://www.symfony-project.org/get/sf_sandbox_1_1.tgz

Après extraction puis modification du fichier /symfony pour bien utiliser php5 de mon serveur, j'arrive bien à avoir la page par défaut via un serveur web, mais j'ai une erreur sur la commande : ./symfony

Ex:

 $ ./symfony
X-Powered-By: PHP/5.2.5-pl1-gentoo
Content-type: text/html


Warning: fwrite(): supplied argument is not a valid stream resource in /home/webcam/sd/dev/cagades/lib/symfony/log/sfStreamLogger.class.php on line 73

Warning: fwrite(): supplied argument is not a valid stream resource in /home/webcam/sd/dev/cagades/lib/symfony/log/sfStreamLogger.class.php on line 73

Warning: fwrite(): supplied argument is not a valid stream resource in /home/webcam/sd/dev/cagades/lib/symfony/log/sfStreamLogger.class.php on line 73

[...]


idem avec la commande ./symfony -T
Les droits des répertoires cache et logs sont bien à 777
J'ai vérifié les fichiers de configuration dans /config, mais je n'ai rien trouvé concernant les logs.

Avez vous une idée d'ou peut venir le problème ?

--
Jean-Philippe BOLATRE

mischka

unread,
Jun 19, 2008, 4:57:29 AM6/19/08
to Symfony-fr
Hello,

your problem is that you use the cgi and not the cli sapi from php.
@see http://de.php.net/manual/en/features.commandline.php

the gentoo system has different binaries for the sapi, try the php-cli
out.
Or register the constant by your own
<code>
if(!defined(STDOUT))
{
define('STDOUT', fopen('php://stdout', 'w'));
}
</code>
in the ProjectConfiguration.class.php or in the symfony cli file

regards
Kay

Reply all
Reply to author
Forward
0 new messages