PDA

View Full Version : Warning: fwrite(): supplied argument is not a valid stream resource


Salvis
29th June 2007, 19:10
I runed command:
# /root/ispconfig/php/php /root/ispconfig/scripts/shell/awstats.php

And i received multiple lines with response:

Warning: fwrite(): supplied argument is not a valid stream resource in /root/ispconfig/scripts/shell/logs.php on line 97

Warning: fwrite(): supplied argument is not a valid stream resource in /root/ispconfig/scripts/shell/logs.php on line 97

Warning: fwrite(): supplied argument is not a valid stream resource in /root/ispconfig/scripts/shell/logs.php on line 97

Warning: fwrite(): supplied argument is not a valid stream resource in /root/ispconfig/scripts/shell/logs.php on line 97


How to fix it ?

falko
30th June 2007, 17:15
What's around line 97 in /root/ispconfig/scripts/shell/logs.php?

Salvis
1st July 2007, 09:31
/root/ispconfig/scripts/shell/logs.php
http://salvis.no.lv/97.jpg

falko
2nd July 2007, 19:32
Can you put the lines
echo get_filename($virtual_host);
echo $virtual_host;
after line 95 and run
/root/ispconfig/php/php /root/ispconfig/scripts/shell/awstats.php
again? What's the output?

Salvis
2nd July 2007, 22:10
# /root/ispconfig/php/php /root/ispconfig/scripts/shell/awstats.php
chown: `:web8': invalid group

Warning: array_merge(): Argument #1 is not an array in /root/ispconfig/scripts/shell/awstats.php on line 197

Warning: array_merge(): Argument #1 is not an array in /root/ispconfig/scripts/shell/awstats.php on line 197

Warning: array_merge(): Argument #2 is not an array in /root/ispconfig/scripts/shell/awstats.php on line 197

Warning: array_merge(): Argument #1 is not an array in /root/ispconfig/scripts/shell/awstats.php on line 197

Warning: array_merge(): Argument #2 is not an array in /root/ispconfig/scripts/shell/awstats.php on line 197

Warning: array_merge(): Argument #1 is not an array in /root/ispconfig/scripts/shell/awstats.php on line 197

Warning: array_merge(): Argument #2 is not an array in /root/ispconfig/scripts/shell/awstats.php on line 197

Warning: array_merge(): Argument #1 is not an array in /root/ispconfig/scripts/shell/awstats.php on line 197

Warning: array_merge(): Argument #2 is not an array in /root/ispconfig/scripts/shell/awstats.php on line 197

Warning: array_merge(): Argument #1 is not an array in /root/ispconfig/scripts/shell/awstats.php on line 197

Warning: array_merge(): Argument #2 is not an array in /root/ispconfig/scripts/shell/awstats.php on line 197

Warning: array_merge(): Argument #1 is not an array in /root/ispconfig/scripts/shell/awstats.php on line 197

Warning: array_merge(): Argument #2 is not an array in /root/ispconfig/scripts/shell/awstats.php on line 197

Warning: array_merge(): Argument #1 is not an array in /root/ispconfig/scripts/shell/awstats.php on line 197

Warning: array_merge(): Argument #2 is not an array in /root/ispconfig/scripts/shell/awstats.php on line 197

Warning: array_merge(): Argument #1 is not an array in /root/ispconfig/scripts/shell/awstats.php on line 197

Warning: array_merge(): Argument #2 is not an array in /root/ispconfig/scripts/shell/awstats.php on line 197

Warning: array_merge(): Argument #1 is not an array in /root/ispconfig/scripts/shell/awstats.php on line 197

Warning: array_merge(): Argument #2 is not an array in /root/ispconfig/scripts/shell/awstats.php on line 197
#

falko
3rd July 2007, 17:02
Is that the whole output?

Salvis
3rd July 2007, 17:11
Is that the whole output?
Yes. Whole output.

falko
4th July 2007, 16:43
I wonder why it doesn't display any virtual hosts... Also, why does it say that web8 is an invalid group?
Did you maybe delete some groups and directories manually?