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

mimicafe at gmail.com mimicafe at gmail.com
Wed Sep 4 10:34:41 CEST 2013


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 <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/f925de1d/attachment.htm>


More information about the Users mailing list