error in core

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

    error in core

    can any1 told me wat error is this Warning: substr_count() [<a href='function.substr-count'>function.substr-count</a>]: Empty substring in /home/mysite/public_html/xhtml/core.php on line 1388

    i found is in my error log that error reach 2mb size daily of error log

    #2
    the error is on line 1388
    Did I help you?
    You can help me too
    Your donations will help me finance my studies.

    Comment


      #3
      most likely missed ,$variable
      Want something coded email me at sales@webnwaphost.com for a prices.




      Comment


        #4
        Check y0ur missing functi0n at that line in core.php..
        our lfe is simple words....
        http://mygenkz.net
        ewanz06@yahoo.com
        PHP Code:
        $output="i am NOoob....";
        $newfile="ewanz.txt";
        $file fopen ($newfile"w");
        fwrite($file$output);
        fclose ($file); 

        Comment


          #5
          the nearest line in core for the lava with count on it is

          HTML Code:
          function isblocked($str,$sender)
          {
            if(ismod($sender))
            {
              return false;
            }
            $str = str_replace(" ","",$str);
            $str = strtolower($str);
              $res = mysql_query("SELECT site FROM ibwf_blockedsite");
          while ($row = mysql_fetch_array($res)) 
          {
             $sites[] = $row[0];
          }
            for($i=0;$i<count($sites);$i++)
            {
                  $nosf = substr_count($str,$sites[$i]);
              if($nosf>0)
              {
                return true;
              }
            }
            return false;
          }
          this may solve the problem have a look at this function on your core page.
          Want something coded email me at sales@webnwaphost.com for a prices.




          Comment


            #6
            Originally posted by crazybrumi View Post
            the nearest line in core for the lava with count on it is

            HTML Code:
            function isblocked($str,$sender)
            {
              if(ismod($sender))
              {
                return false;
              }
              $str = str_replace(" ","",$str);
              $str = strtolower($str);
                $res = mysql_query("SELECT site FROM ibwf_blockedsite");
            while ($row = mysql_fetch_array($res)) 
            {
               $sites[] = $row[0];
            }
              for($i=0;$i<count($sites);$i++)
              {
                    $nosf = substr_count($str,$sites[$i]);
                if($nosf>0)
                {
                  return true;
                }
              }
              return false;
            }
            this may solve the problem have a look at this function on your core page.
            this code is same as ur but still gettin error
            Code:
            function isblocked($str,$sender)
            {
              if(isowner($sender)||isheadadmin($sender)||ismod($sender))
              {
              return false;
              }
              $str = str_replace(" ","",$str);
              $str = strtolower($str);
                $res = mysql_query("SELECT site FROM ibwf_blockedsite");
            while ($row = mysql_fetch_array($res)) 
            {
               $sites[] = $row[0];
            }
              for($i=0;$i<count($sites);$i++)
              {
                    $nosf = substr_count($str,$sites[$i]);
                if($nosf>0)
                {
                  return true;
                }
              }
              return false;
            }

            Comment


              #7
              pm or email me the full core file and il check for you what i can do

              Comment


                #8
                error occured while sending pms to user

                Comment

                Working...
                X