[OpenSIPS-Users] Opensip-cp: Undefined variable and index issue

Shaverdov Gerasim gshaverdov at ocs.ru
Wed Sep 4 10:39:36 CEST 2013


In my platform 5.0 opensips-cp the same php noticied and warning... cdr tools for examples not work with incorrect procedure includes on distrib...  or incorrect acc and cdrs table was create by sql scripts for cdrs


-----
С Уважением,
Шавердов Герасим
Системный Администратор
OCS Distribution РБЮ Самара
Почта: gshaverdov at ocs.ru<mailto:gshaverdov at ocs.ru>, gshaverdov at samara.ocs.ru<mailto:gshaverdov at samara.ocs.ru>
Тел.: (846) 262-99-52(53-57), доб. 4850
Icq: 91846275
Skype:shaverdoff
[Описание: Описание: cid:image002.jpg at 01CB6B8D.75B8B0B0]

From: users-bounces at lists.opensips.org [mailto:users-bounces at lists.opensips.org] On Behalf Of mimicafe at gmail.com
Sent: Wednesday, September 04, 2013 12:35 PM
To: users at lists.opensips.org
Subject: Re: [OpenSIPS-Users] Opensip-cp: Undefined variable and index issue

Is this a bug perhaps? I downloaded Opensips-cp from svn trunk, as I understand it normally resolves most problems, but I still see the "Undefined variable" filling up my log file. I am unsure which variables are undefined and what else is required to fix this.
Any help appreciated.

On 1 September 2013 22:35, mimicafe at gmail.com<mailto:mimicafe at gmail.com> <mimicafe at gmail.com<mailto:mimicafe at gmail.com>> wrote:
Opensips-cp is running as expected, and I am wondering what these undefined variable and undefined index are about. If the variables are undefined, then why are we trying to use them? Or better, how do I resolve these issue?


[Sun Sep 01 16:08:02 2013] [warn] ./mod_dnssd.c: No services found to register
[Sun Sep 01 16:08:02 2013] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 configured -- resuming normal operations
[Sun Sep 01 17:48:16 2013] [error] [client 192.168.18.97] PHP Notice:  Undefined variable: arg_list in /var/www/opensips-cp/web/common/mi_comm.php on line 78, referer: http://192.168.18.103/cp/menu.php
[Sun Sep 01 17:48:16 2013] [error] [client 192.168.18.97] PHP Notice:  Undefined offset: 1 in /var/www/opensips-cp/web/tools/system/dialog/template/dialog.main.php on line 101, referer: http://192.168.18.103/cp/menu.php
[Sun Sep 01 17:48:16 2013] [error] [client 192.168.18.97] PHP Notice:  Undefined offset: 1 in /var/www/opensips-cp/web/tools/system/dialog/template/dialog.main.php on line 101, referer: http://192.168.18.103/cp/menu.php
[Sun Sep 01 17:48:16 2013] [error] [client 192.168.18.97] PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/London' for 'BST/1.0/DST' instead in /var/www/opensips-cp/web/tools/system/dialog/template/dialog.main.php on line 135, referer: http://192.168.18.103/cp/menu.php
[Sun Sep 01 17:49:39 2013] [error] [client 192.168.18.97] PHP Notice:  Undefined index: username in /var/www/opensips-cp/web/tools/users/alias_management/template/alias_management.main.php on line 28, referer: http://192.168.18.103/cp/menu.php
[Sun Sep 01 17:49:39 2013] [error] [client 192.168.18.97] PHP Notice:  Undefined index: alias_username in /var/www/opensips-cp/web/tools/users/alias_management/template/alias_management.main.php on line 29, referer: http://192.168.18.103/cp/menu.php
[Sun Sep 01 17:49:39 2013] [error] [client 192.168.18.97] PHP Notice:  Undefined index: alias_domain in /var/www/opensips-cp/web/tools/users/alias_management/template/alias_management.main.php on line 30, referer: http://192.168.18.103/cp/menu.php
[Sun Sep 01 17:49:39 2013] [error] [client 192.168.18.97] PHP Notice:  Undefined index: alias_type in /var/www/opensips-cp/web/tools/users/alias_management/template/alias_management.main.php on line 31, referer: http://192.168.18.103/cp/menu.php
[Sun Sep 01 17:49:39 2013] [error] [client 192.168.18.97] PHP Notice:  Undefined variable: temp in /var/www/opensips-cp/web/tools/users/alias_management/lib/functions.inc.php on line 107, referer: http://192.168.18.103/cp/menu.php
[Sun Sep 01 17:49:39 2013] [error] [client 192.168.18.97] PHP Notice:  Undefined variable: temp in /var/www/opensips-cp/web/tools/users/alias_management/lib/functions.inc.php on line 107, referer: http://192.168.18.103/cp/menu.php
[Sun Sep 01 17:49:39 2013] [error] [client 192.168.18.97] PHP Notice:  Undefined variable: temp in /var/www/opensips-cp/web/tools/users/alias_management/lib/functions.inc.php on line 142, referer: http://192.168.18.103/cp/menu.php
[Sun Sep 01 17:49:39 2013] [error] [client 192.168.18.97] PHP Notice:  Undefined variable: temp in /var/www/opensips-cp/web/tools/users/alias_management/lib/functions.inc.php on line 142, referer: http://192.168.18.103/cp/menu.php
[Sun Sep 01 17:49:39 2013] [error] [client 192.168.18.97] PHP Notice:  Undefined variable: errors in /var/www/opensips-cp/web/tools/users/alias_management/alias_management.php on line 305, referer: http://192.168.18.103/cp/menu.php
[Sun Sep 01 17:49:39 2013] [error] [client 192.168.18.97] PHP Notice:  Undefined variable: errors in /var/www/opensips-cp/web/tools/users/alias_management/alias_management.php on line 305, referer: http://192.168.18.103/cp/menu.php
[Sun Sep 01 17:53:13 2013] [error] [client 192.168.18.97] PHP Notice:  Undefined variable: arg_list in /v

mysql.so and xmlrpc.so appear only once in the php.ini, however, I do see the warning below in httpd.log

$ sudo egrep 'mysql.so|xmlrpc.so' /etc/php.ini
extension=mysql.so
extension=xmlrpc.so

PHP Warning:  Module 'mysql' already loaded in Unknown on line 0
PHP Warning:  Module 'xmlrpc' already loaded in Unknown on line 0
Any help appreciated.
Mimi

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20130904/abdef67d/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 2124 bytes
Desc: image001.jpg
URL: <http://lists.opensips.org/pipermail/users/attachments/20130904/abdef67d/attachment-0001.jpg>


More information about the Users mailing list