Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Forum Statistics Extension Error Message
Whenever I enable Forum Statistics, I get this:
Any ideas??? I downloaded the recent one
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/virtual/site448/fst/var/www/html/extensions/Statistics/default.php on line 83
Warning: Invalid argument supplied for foreach() in /home/virtual/site448/fst/var/www/html/extensions/Statistics/default.php on line 85
Warning: fopen(/home/virtual/site448/fst/var/www/html/extensions/Statistics/options.inc): failed to open stream: Permission denied in /home/virtual/site448/fst/var/www/html/extensions/Statistics/default.php on line 58
Warning: fwrite(): supplied argument is not a valid stream resource in /home/virtual/site448/fst/var/www/html/extensions/Statistics/default.php on line 59
Warning: fclose(): supplied argument is not a valid stream resource in /home/virtual/site448/fst/var/www/html/extensions/Statistics/default.php on line 60
0
This discussion has been closed.
Comments
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in ../extensions/Statistics/default.php on line 83
Warning: Invalid argument supplied for foreach() in ../extensions/Statistics/default.php on line 85
I've tried to change permissions to 777 (it was already at 666) and it still happens each time there is a new comment made.
Does somebody have an idea how to fix this? The problem seems to be located here:
if($this->Statistics[$data][0] == 1) { $tmpData = mysql_fetch_assoc($this->Context->Database->Execute($value, '', '', '', '')); $i=1; foreach($tmpData AS $tmptmpdata) { $this->Statistics[$data][$i] = $tmptmpdata; $i++; }
I don't have this problem on local with a fresh install, so it may be related to an extension conflict.
This SHOULD be equilivent