plig มีบั๊กครับ เพิ่มแคมตาล็อกเยอะๆ แล้ว error
ผมเพิ่มแคทตาล็อก 88 แคมตาล็อกแล้ว error ครับ
Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in C:\AppServ\www\pligg\libs\html1.php on line 253
Warning: Invalid argument supplied for foreach() in C:\AppServ\www\pligg\libs\html1.php on line 261
ไม่ว่าจะทดลองในเชิฟ หรือ เครื่องตัวเองเป็นเหมือนกัน
sourc ที่ error ตั้งแต่บรรทัดที่ 253-270
บรรทัด 253 while ($row = mysql_fetch_object($result1)) {
$a[]=$row;
}
$result = $a;
$i = 0;
$lastspacer = 0;
$array = array();
// added @ thanks to `parterburn` - http://www.pligg.com/forum/showthread.php?t=4888
บรรทัด 261 foreach($result as $row)
{
if (count($right)>0) {
// check if we should remove a node from the stack
while ($right[count($right)-1]<$row->rgt) {
if (array_pop($right) == NULL) {
break; // We've reached the top of the category chain
}
}
}