[OpenSIPS-Users] OpenSIPS 1.11.1 and Control Panel 5 - php warning & notice being logged

Alex Ionescu alex at opensips.org
Mon Aug 11 15:47:42 CEST 2014


Hi,

You should try using OpenSIPS CP 6.0 with OpenSIPS 1.11.
Anyway, that NOTICE is just a notice, not a warning or error. You can 
just ignore it.

Best regards,
Alex

On 07/28/2014 07:33 PM, Gary Patton wrote:
> Good afternoon.  I keep getting this PHP warning and notice every time 
> my "get_opensips_stats.php" cron job runs:
>
> PHP Warning:  Creating default object from empty value in 
> /var/www/5.0/config/db.inc.php on line 25
> PHP Notice:  Undefined variable: arg_list in 
> /var/www/5.0/web/common/mi_comm.php on line 79
>
> =====
>
> Here's the warning and a snippet from the file it points to:
>
> PHP Warning:  Creating default object from empty value in 
> /var/www/5.0/config/db.inc.php on line 25
>
> >>[SNIP]
> 23 |
> 24 | //database driver mysql or pgsql
> 25 | $config->db_driver = "mysql";
> 26 |
> >>[SNIP]
>
> 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.
>
> =====
>
> Here's the notice and a snippet from the file it points to:
>
> PHP Notice:  Undefined variable: arg_list in 
> /var/www/5.0/web/common/mi_comm.php on line 79
>
> >>[SNIP]
> 54 |
> 55 |        if ($arg==""){
> 56 |                            /* no args */
> 57 |                            /*if the command contains delimiter 
> ':' , then return , or else bad things happen  */
> 58 |
> 59 |              $found_delimiter=strpos($cmd,":");
> 60 |                                            if ( $found_delimiter 
> === false )
> 61 |                                            {
> 62 |        // mkay
> 63 |                                            }
> 64 |
> 65 |                                             else
> 66 |
> 67 |                                             {
> 68 |  $err="Bad command. character ':' not permited here.";
> 69 |  $status=$err;
> 70 |  return $err ;
> 71 |
> 72 |                                             }
> 73 |
> 74 |  $fifo_cmd=":".$cmd.":".$reply_fifo_filename."\n";
> 75 |
> 76 |                    } else {
> 77 |                                    /* command with args */
> 78 |  foreach($command_args as $key=>$val){
> 79 |                             $arg_list.=$val."\n";
> 80 |        }
> 81 |  $fifo_cmd=":".$cmd.":".$reply_fifo_filename."\n".$arg_list;
> 82 |
> 83 |
> 84 |        }
> 85 |
> >>[SNIP]
>
> 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.
>
> Can someone point me in the right direction on either of these?  Thank 
> you.
>
> Regards
>
> Gary
>
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20140811/ed4bb081/attachment.htm>


More information about the Users mailing list