<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi,<br>
<br>
You should try using OpenSIPS CP 6.0 with OpenSIPS 1.11.<br>
Anyway, that NOTICE is just a notice, not a warning or error. You
can just ignore it.<br>
<br>
Best regards,<br>
Alex<br>
<br>
On 07/28/2014 07:33 PM, Gary Patton wrote:<br>
</div>
<blockquote cite="mid:COL126-W3702FA22350CD46574FFF184FB0@phx.gbl"
type="cite">
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style>
<div dir="ltr">Good afternoon. I keep getting this PHP warning
and notice every time my "get_opensips_stats.php" cron job runs:
<div><br>
</div>
<div>
<div><span style="font-size: 12pt;">PHP Warning: Creating
default object from empty value in
/var/www/5.0/config/db.inc.php on line 25</span></div>
<div>PHP Notice: Undefined variable: arg_list in
/var/www/5.0/web/common/mi_comm.php on line 79</div>
</div>
<div><br>
</div>
<div>===== </div>
<div><br>
</div>
<div>Here's the warning and a snippet from the file it points
to:</div>
<div><br>
</div>
<div>PHP Warning: Creating default object from empty value in
/var/www/5.0/config/db.inc.php on line 25</div>
<div>
<div><br>
</div>
<div>>>[SNIP]</div>
<div>23 |</div>
<div>24 | //database driver mysql or pgsql</div>
<div>25 | $config->db_driver = "mysql";</div>
<div>26 |</div>
<div>>>[SNIP]</div>
</div>
<div><br>
</div>
<div>I'm pretty sure that Line 25 is *not* an empty value.
Plus, I'm pretty sure the driver is correct since I'm using
MySQL on Debian 7.5, and I followed the instructions in
INSTALL that came with the CP 5.0 source files.</div>
<div><br>
</div>
<div>===== </div>
<div><br>
</div>
<div>Here's the notice and a snippet from the file it points to:</div>
<div><br>
</div>
<div>PHP Notice: Undefined variable: arg_list in
/var/www/5.0/web/common/mi_comm.php on line 79</div>
<div><br>
</div>
<div>
<div>>>[SNIP]</div>
<div>54 |</div>
<div>55 | if ($arg==""){</div>
<div>56 | /* no args */</div>
<div>57 | /*if the command contains
delimiter ':' , then return , or else bad things happen */</div>
<div>58 |</div>
<div>59 | $found_delimiter=strpos($cmd,":");</div>
<div>60 | if (
$found_delimiter === false )</div>
<div>61 | {</div>
<div>62 |
// mkay</div>
<div>63 | }</div>
<div>64 |</div>
<div>65 | else</div>
<div>66 |</div>
<div>67 | {</div>
<div>68 |
$err="Bad command. character ':' not permited here.";</div>
<div>69 |
$status=$err;</div>
<div>70 |
return $err ;</div>
<div>71 |</div>
<div>72 | }</div>
<div>73 |</div>
<div>74 |
$fifo_cmd=":".$cmd.":".$reply_fifo_filename."\n";</div>
<div>75 |</div>
<div>76 | } else {</div>
<div>77 | /* command with
args */</div>
<div>78 |
foreach($command_args as $key=>$val){</div>
<div>79 | $arg_list.=$val."\n";</div>
<div>80 | }</div>
<div>81 |
$fifo_cmd=":".$cmd.":".$reply_fifo_filename."\n".$arg_list;</div>
<div>82 |</div>
<div>83 |</div>
<div>84 | }</div>
<div>85 |</div>
<div>>>[SNIP]</div>
</div>
<div><br>
</div>
<div>I'm totally clueless on this notice. I don't even know
where the arg_list variable is being declared or where the
arg_list array is located. Do I need to fix it or can I
safely ignore the notice? OpenSIPS seems to be working (I can
make 1=to-1 and 1-to-many calls between softphone UACs within
my network) despite the notice and warning.</div>
<div><br>
</div>
<div>Can someone point me in the right direction on either of
these? Thank you.</div>
<div><br>
</div>
<div>Regards</div>
<div><br>
</div>
<div>Gary</div>
<div><br>
</div>
<div><br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>