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

Gary Patton gpatton.public at outlook.com
Mon Jul 28 18:33:25 CEST 2014


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 25PHP 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 pgsql25 | $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 |                                                            // mkay63 |                                            }64 |65 |                                             else66 |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

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


More information about the Users mailing list