Error In Buddylist

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Error In Buddylist

    i am getting this error in buddylist any idea how to fix it.no bud is showing in list just this error shows. but in buddy list link in main menu it shows how much buds online like Buddylist (4/35)

    The SELECT would examine more than MAX_JOIN_SIZE rows; check your WHERE and use SET SQL_BIG_SELECTS=1 or SET SQL_MAX_JOIN_SIZE=# if the SELECT is okay

    Many Thankx in advance.

    #2
    i am getting this error in buddylist any idea how to fix it.no bud is showing in list just this error shows. but in buddy list link in main menu it shows how much buds online like Buddylist (4/35)

    The SELECT would examine more than MAX_JOIN_SIZE rows; check your WHERE and use SET SQL_BIG_SELECTS=1 or SET SQL_MAX_JOIN_SIZE=# if the SELECT is okay

    Many Thankx in advance.[/b]

    Post the buddylist code here

    Comment


      #3
      Thank you for reply. i got where is the error. i cross the MAX_JOIN_SIZE limit of my server so thats why i got this error. there is way to leave this host ang join new host with much MAX_JOIN_SIZE limit.

      Comment


        #4
        <div class='quotetop'>QUOTE (mrgondal @ Sep 26 2008, 08:55 AM) <{POST_SNAPBACK}></div>
        i am getting this error in buddylist any idea how to fix it.no bud is showing in list just this error shows. but in buddy list link in main menu it shows how much buds online like Buddylist (4/35)

        The SELECT would examine more than MAX_JOIN_SIZE rows; check your WHERE and use SET SQL_BIG_SELECTS=1 or SET SQL_MAX_JOIN_SIZE=# if the SELECT is okay

        Many Thankx in advance.[/b]

        me too getin this error .. how to fix it? thanx


        Comment


          #5
          Post the buddylist coding or tell us what script its for....

          Comment


            #6
            last time i went to mr gondals site he was using lavalair but that dont look like lava coding to me lol

            Comment


              #7
              <div class='quotetop'>QUOTE (WhiteWarrior @ Dec 15 2008, 04:23 PM) <{POST_SNAPBACK}></div>
              Post the buddylist coding or tell us what script its for....[/b]
              i had simular problem wen i was coding in vb.net in college.
              the answer is bascially in the error it gives you.

              sooo little like this

              say you have the code

              Code:
              $mood = $db->select("SELECT DISTINCT name ......
              above that coding put somehting like this

              Code:
              $makeupavariablename = $db->misc("SET sql_big_selects=1");
              making sure yu only match the variable $db with the varible you had set.

              hope this is how i ent dun this in ages. so may be wrong.
              Want something coded email me at sales@webnwaphost.com for a prices.




              Comment


                #8
                <div class='quotetop'>QUOTE (WhiteWarrior @ Dec 15 2008, 05:23 PM) <{POST_SNAPBACK}></div>
                Post the buddylist coding or tell us what script its for....[/b]


                else if($action=="buds")
                {
                  addonline(getuid_sid($sid),"Buddies List","lists.php?action=$action");
                  echo "<card id=\"main\" title=\"Buddies\">";
                  $uid = getuid_sid($sid);
                  echo "<p align=\"center\">";
                  echo "Your Buddy Message
                ";
                  echo parsemsg(getbudmsg($uid), $sid);
                   
                  echo "</p>";
                  //////ALL LISTS SCRIPT <<

                  if($page=="" || $page<=0)$page=1;
                  $num_items = getnbuds($uid); //changable
                  $items_per_page= 5;
                  $num_pages = ceil($num_items/$items_per_page);
                  if(($page>$num_pages)&&$page!=1)$page= $num_pages;
                  $limit_start = ($page-1)*$items_per_page;

                  //changable sql

                   
                  $sql = "SELECT a.lastact, a.name, a.id, b.uid, b.tid, b.reqdt FROM funy_users a INNER JOIN funy_buddies b ON (a.id = b.uid) OR (a.id=b.tid) WHERE (b.uid=&#39;".$uid."&#39; OR b.tid=&#39;".$uid."&#39;) AND b.agreed=&#39;1&#39; GROUP BY 2,1 ORDER BY a.lastact DESC LIMIT $limit_start, $items_per_page";


                  echo "

                ";
                  $items = mysql_query($sql);
                  echo mysql_error();
                  if(mysql_num_rows($items)>0)
                  {
                  while ($item = mysql_fetch_array($items))
                  {
                  if($uid!=$item[2])
                  {
                  if(isonline($item[2]))
                  {
                  $iml = "<img src=\"images/onl.gif\" alt=\"+\"/>";
                  $uact = "WHERE: ";
                  $plc = mysql_fetch_array(mysql_query("SELECT place FROM funy_online WHERE userid=&#39;".$item[2]."&#39;"));
                  $uact .= $plc[0];
                  }else{
                  $iml = "<img src=\"images/ofl.gif\" alt=\"-\"/>";
                  $uact = "Last Active: ";
                  $ladt = date("d m y-H:i:s", $item[0]);
                  $uact .= $ladt;
                  }
                  $lnk = "<a href=\"index.php?action=viewuser&amp;who=$item[2]&amp;sid=$sid\">$iml$item[1]</a>";
                  echo "$lnk
                ";
                  echo "";
                  $bs = date("d m y-H:i:s",$item[5]);
                  echo "Buddy since:$bs
                ";
                  echo "$uact
                ";
                  echo "Says: ";
                  $bmsg = parsemsg(getbudmsg($item[2]), $sid);
                  echo "$bmsg
                ";
                  $lnk = "<a href=\"lists.php?action=sendto&amp;who=$item[2]&amp;sid=$sid\">pOpup msg to $item[1]</a>";
                echo "$lnk
                ";
                  echo "
                ";
                  }
                  }
                  }
                  echo "</p>";
                  echo "<p align=\"center\">";
                  if($page>1)
                  {
                  $ppage = $page-1;
                  echo "<a href=\"lists.php?action=buds&amp;page=$ppage&amp;s id=$sid&amp;view=$view\">«Prev</a> ";
                  }
                  if($page<$num_pages)
                  {
                  $npage = $page+1;
                  echo "<a href=\"lists.php?action=buds&amp;page=$npage&amp;s id=$sid&amp;view=$view\">Next»</a>";
                  }
                  echo "
                $page/$num_pages
                ";
                  if($num_pages>2)
                  {
                  $rets = "Jump to page<input name=\"pg\" format=\"*N\" size=\"3\"/>";
                  $rets .= "<anchor>[GO]";
                  $rets .= "<go href=\"lists.php\" method=\"get\">";
                  $rets .= "<postfield name=\"action\" value=\"$action\"/>";
                  $rets .= "<postfield name=\"sid\" value=\"$sid\"/>";
                  $rets .= "<postfield name=\"page\" value=\"$(pg)\"/>";
                  $rets .= "</go></anchor>";

                  echo $rets;
                  }
                  echo "</p>";
                  ////// UNTILL HERE >>
                  echo "<p align=\"center\">";
                  echo "<a href=\"index.php?action=chbmsg&amp;sid=$sid\">";
                echo "Buddy Message</a>
                ";
                  echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
                echo "Home</a>";
                  echo "</p>";
                  echo "</card>";
                }





                Comment


                  #9
                  is funy_users a joke or is it your real sql lol

                  Comment


                    #10
                    oops i guess its not a joke as there is funy_online aswell lol

                    sorry i just fort that was funny lol ...........OOOOOOOOOPS! lol

                    Comment


                      #11
                      try this:
                      Code:
                      $sql = "SELECT a.lastact, a.name, a.id, b.uid, b.tid, b.reqdt FROM funy_users a INNER JOIN funy_buddies b ON (a.id = b.uid) OR (a.id=b.tid) WHERE (b.uid=&#39;".$uid."&#39; OR b.tid=&#39;".$uid."&#39;) AND b.agreed=&#39;1&#39; AND a.id!=&#39;".$uid."&#39; GROUP BY 1,2  ORDER BY a.lastact DESC LIMIT $limit_start, $items_per_page";

                      Comment


                        #12
                        i have just copied and pasted the action and all works fine for me as it is ?
                        Want something coded email me at sales@webnwaphost.com for a prices.




                        Comment


                          #13
                          maybee max buddies hasnt been set up properly?

                          Comment


                            #14
                            This means your mysql query is trying to access over 4 million rows of data

                            bcoz current Server variables and settings is

                            max join size = 4,000,000
                            and
                            sql big selects = OFF
                              so it must be 


                            like this

                             max join size = 18446744073709551615
                            SQL_BIG_SELECTS = on



                            but i cant change MySQL system variables . if u hv any idea abt this post. dont be a mupet postin silly replies. lol.

                            Comment

                            Working...
                            X