error in core

Started on the old forum in December 2009 · view the original in the archive · old links redirect here

7 replies · 464 views · started 16 years ago · 1 min read

5 participants
kazzin Junior · 33 posts #1

can any1 told me wat error is this Warning: substr_count() [<#>]: 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 🙁

kei_ki7 Senior · 431 posts #2

the error is on line 1388

Did I help you? You can help me too Your donations will help me finance my studies.

ewanz Developer · 187 posts #4

Check y0ur missing functi0n at that line in core.php..

our lfe is simple words.... 😌 http://mygenkz.net ewanz06@yahoo.com

$output="i am NOoob....";
$newfile="ewanz.txt";
$file = fopen ($newfile, "w");
fwrite($file, $output);
fclose ($file); 
crazybrumi Super moderator Principal · 1,064 posts #5

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

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.

http://flagcounter.com/more/W80q

kazzin Junior · 33 posts #6

crazybrumi wrote: the nearest line in core for the lava with count on it is

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

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;
}

🙁

cobusbo Developer · 117 posts #7

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

kazzin Junior · 33 posts #8

error occured while sending pms to user

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close