Re: [OpenSIPS-Users] opensips control panel error connecting to rules, carrier group

2021-10-29 Thread Pavel Eremin
HI, add  require("../../../common/cfg_comm.php");
before "require("template/header.php");"

works for me. Maybe a little bug.

чт, 21 окт. 2021 г. в 22:12, Eamon Garland :

> Hi Bogdan
> i am using the following for the install
>
> wget https://github.com/OpenSIPS/opensips-cp/archive/master.zip
>
> Regards,
> Eamon
> On Thu, Oct 21, 2021 at 5:55 PM Bogdan-Andrei Iancu 
> wrote:
>
>> Hi Eamon,
>>
>> What version of CP do you use ?
>>
>> Regards,
>>
>> Bogdan-Andrei Iancu
>>
>> OpenSIPS Founder and Developer
>>   https://www.opensips-solutions.com
>> OpenSIPS eBootcamp 2021
>>   https://opensips.org/training/OpenSIPS_eBootcamp_2021/
>>
>> On 10/20/21 8:27 PM, Eamon Garland wrote:
>>
>> Hi
>> i have installed latest version on debian 10 and get the following error
>> when i try to add rules
>>
>>  PHP Fatal error:  Uncaught Error: Call t*o undefined function
>> get_group()* in
>> /var/www/html/opensips-cp/web/tools/system/drouting/template/header.php:33\nStack
>> trace:\n#0
>> /var/www/html/opensips-cp/web/tools/system/drouting/rules.php(24):
>> require()\n#1 {main}\n  thrown in
>> /var/www/html/opensips-cp/web/tools/system/drouting/template/header.php on
>> line 33, referer: http://x.x.x.x/cp/tools/system/drouting/gateways.php
>>
>> [image: cdca5e74-523d-4cc2-b56b-f598aed8535d]
>>
>> ___
>> Users mailing 
>> listUsers@lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>>
>> ___
>> Users mailing list
>> Users@lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] opensips control panel error connecting to rules, carrier group

2021-10-21 Thread Eamon Garland
Hi Bogdan
i am using the following for the install

wget https://github.com/OpenSIPS/opensips-cp/archive/master.zip

Regards,
Eamon
On Thu, Oct 21, 2021 at 5:55 PM Bogdan-Andrei Iancu 
wrote:

> Hi Eamon,
>
> What version of CP do you use ?
>
> Regards,
>
> Bogdan-Andrei Iancu
>
> OpenSIPS Founder and Developer
>   https://www.opensips-solutions.com
> OpenSIPS eBootcamp 2021
>   https://opensips.org/training/OpenSIPS_eBootcamp_2021/
>
> On 10/20/21 8:27 PM, Eamon Garland wrote:
>
> Hi
> i have installed latest version on debian 10 and get the following error
> when i try to add rules
>
>  PHP Fatal error:  Uncaught Error: Call t*o undefined function
> get_group()* in
> /var/www/html/opensips-cp/web/tools/system/drouting/template/header.php:33\nStack
> trace:\n#0
> /var/www/html/opensips-cp/web/tools/system/drouting/rules.php(24):
> require()\n#1 {main}\n  thrown in
> /var/www/html/opensips-cp/web/tools/system/drouting/template/header.php on
> line 33, referer: http://x.x.x.x/cp/tools/system/drouting/gateways.php
>
> [image: cdca5e74-523d-4cc2-b56b-f598aed8535d]
>
> ___
> Users mailing 
> listUsers@lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] opensips control panel error connecting to rules, carrier group

2021-10-21 Thread Bogdan-Andrei Iancu

Hi Eamon,

What version of CP do you use ?

Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  https://www.opensips-solutions.com
OpenSIPS eBootcamp 2021
  https://opensips.org/training/OpenSIPS_eBootcamp_2021/

On 10/20/21 8:27 PM, Eamon Garland wrote:

Hi
i have installed latest version on debian 10 and get the following 
error when i try to add rules


 PHP Fatal error:  Uncaught Error: Call t*o undefined function 
get_group()* in 
/var/www/html/opensips-cp/web/tools/system/drouting/template/header.php:33\nStack 
trace:\n#0 
/var/www/html/opensips-cp/web/tools/system/drouting/rules.php(24): 
require()\n#1 {main}\n  thrown in 
/var/www/html/opensips-cp/web/tools/system/drouting/template/header.php 
on line 33, referer: http://x.x.x.x/cp/tools/system/drouting/gateways.php


cdca5e74-523d-4cc2-b56b-f598aed8535d

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] opensips control panel error connecting to rules, carrier group

2021-10-21 Thread Eamon Garland
Hi
i have installed latest version on debian 10 and get the following error when i 
try to add rules

 PHP Fatal error:  Uncaught Error: Call to undefined function get_group() in 
/var/www/html/opensips-cp/web/tools/system/drouting/template/header.php:33\nStack
 trace:\n#0 /var/www/html/opensips-cp/web/tools/system/drouting/rules.php(24): 
require()\n#1 {main}\n  thrown in 
/var/www/html/opensips-cp/web/tools/system/drouting/template/header.php on line 
33, referer: http://x.x.x.x/cp/tools/system/drouting/gateways.php


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] OpenSips Control Panel error

2012-12-02 Thread Alex Ionescu

Hi,

First thing on the list : selinux - lower a bit the security.
Second thing: in your php.ini file (probably you'll find it somewhere in 
/etc/php ... ) you have to enable *short_open_tags*


That's it for now. Try these things and come back if CP still doesn't work.

Regards,
Alex


On 12/01/2012 04:17 PM, Mimi Cafe wrote:

I configured opensips control panel on centos, and when I login, the
page does not load completely. In Apache log, I can see that it throws
out loads of php related error.

Any ideas?


[Wed Nov 28 20:56:15 2012] [error] [client 192.168.18.94] PHP Notice:
Undefined variable: resultset1 in
/var/www/html/opensips-cp/web/login.php on line 80, referer:
http://192.168.18.88/opensips-cp/web/
[Wed Nov 28 20:56:15 2012] [error] [client 192.168.18.94] PHP Notice:
Undefined variable: resultset1 in
/var/www/html/opensips-cp/web/login.php on line 86, referer:
http://192.168.18.88/opensips-cp/web/
[Wed Nov 28 20:56:15 2012] [error] [client 192.168.18.94] 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 'UTC' for 'GMT/0.0/no
DST' instead in /var/www/html/opensips-cp/web/login.php on line 107,
referer: http://192.168.18.88/opensips-cp/web/
[Wed Nov 28 20:56:15 2012] [error] [client 192.168.18.94] 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 'UTC' for 'GMT/0.0/no
DST' instead in /var/www/html/opensips-cp/web/login.php on line 107,
referer: http://192.168.18.88/opensips-cp/web/
[Wed Nov 28 20:56:15 2012] [error] [client 192.168.18.94] File does not
exist: /var/www/html/opensips-cp/web/<, referer:
http://192.168.18.88/opensips-cp/web/main.php
[Wed Nov 28 21:08:49 2012] [notice] caught SIGTERM, shutting down
[Wed Nov 28 21:08:49 2012] [notice] SELinux policy enabled; httpd
running as context unconfined_u:system_r:httpd_t:s0
[Wed Nov 28 21:08:49 2012] [notice] suEXEC mechanism enabled (wrapper:
/usr/sbin/suexec)
[Wed Nov 28 21:08:49 2012] [notice] Digest: generating secret for digest
authentication ...
[Wed Nov 28 21:08:49 2012] [notice] Digest: done
[Wed Nov 28 21:08:50 2012] [notice] Apache/2.2.15 (Unix) DAV/2
mod_nss/2.2.15 NSS/3.13.1.0 Basic ECC PHP/5.3.3 mod_ssl/2.2.15
OpenSSL/1.0.0-fips SVN/1.6.11 mod_perl/2.0.4 Perl/v5.10.1 configured --
resuming normal operations
[Wed Nov 28 21:09:01 2012] [error] [client 192.168.18.94] File does not
exist: /var/www/html/opensips-cp/web/<, referer:
http://192.168.18.88/opensips-cp/web/main.php
[Wed Nov 28 21:09:09 2012] [error] [client 192.168.18.94] PHP Parse
error:  syntax error, unexpected '}' in
/var/www/html/opensips-cp/web/tools/admin/list_admins/template/list_admins.main.php 


on line 152, referer: http://192.168.18.88/opensips-cp/web/menu.php
[Wed Nov 28 21:09:14 2012] [error] [client 192.168.18.94] PHP Notice:
Undefined index: acl_username in
/var/www/html/opensips-cp/web/tools/users/acl_management/template/acl_management.main.php 


on line 28, referer: http://192.168.18.88/opensips-cp/web/menu.php
[Wed Nov 28 21:09:14 2012] [error] [client 192.168.18.94] PHP Notice:
Undefined index: acl_domain in
/var/www/html/opensips-cp/web/tools/users/acl_management/template/acl_management.main.php 


on line 29, referer: http://192.168.18.88/opensips-cp/web/menu.php
[Wed Nov 28 21:09:14 2012] [error] [client 192.168.18.94] PHP Notice:
Undefined index: acl_grp in
/var/www/html/opensips-cp/web/tools/users/acl_management/template/acl_management.main.php 


on line 30, referer: http://192.168.18.88/opensips-cp/web/menu.php
[Wed Nov 28 21:09:14 2012] [error] [client 192.168.18.94] PHP Notice:
Undefined variable: options in
/var/www/html/opensips-cp/web/tools/users/acl_management/lib/functions.inc.php 


on line 95, referer: http://192.168.18.88/opensips-cp/web/menu.php
[Wed Nov 28 21:09:14 2012] [error] [client 192.168.18.94] PHP Notice:
Undefined variable: errors in
/var/www/html/opensips-cp/web/tools/users/acl_management/acl_management.php 


on line 302, referer: http://192.168.18.88/opensips-cp/web/menu.php
[Wed Nov 28 21:09:14 2012] [error] [client 192.168.18.94] PHP Notice:
Undefined variable: errors in
/var/www/html/opensips-cp/web/tools/users/acl_management/acl_management.php 


on line 302, referer: http://192.168.18.88/opensips-cp/web/menu.php
[Wed Nov 28 21:09:22 2012] [error] [client 192.168.18.94] PHP Notice:
Undefined index: username in
/var/www/html/opensips-cp/web/tools/users/alias_management/template/alias_management.main.php 


on line 28, referer: http://192.168.18.88/opensips-cp/web/menu.php
[Wed Nov 28 21:09:22 20

[OpenSIPS-Users] OpenSips Control Panel error

2012-12-01 Thread Mimi Cafe

I configured opensips control panel on centos, and when I login, the
page does not load completely. In Apache log, I can see that it throws
out loads of php related error.

Any ideas?


[Wed Nov 28 20:56:15 2012] [error] [client 192.168.18.94] PHP Notice:
Undefined variable: resultset1 in
/var/www/html/opensips-cp/web/login.php on line 80, referer:
http://192.168.18.88/opensips-cp/web/
[Wed Nov 28 20:56:15 2012] [error] [client 192.168.18.94] PHP Notice:
Undefined variable: resultset1 in
/var/www/html/opensips-cp/web/login.php on line 86, referer:
http://192.168.18.88/opensips-cp/web/
[Wed Nov 28 20:56:15 2012] [error] [client 192.168.18.94] 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 'UTC' for 'GMT/0.0/no
DST' instead in /var/www/html/opensips-cp/web/login.php on line 107,
referer: http://192.168.18.88/opensips-cp/web/
[Wed Nov 28 20:56:15 2012] [error] [client 192.168.18.94] 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 'UTC' for 'GMT/0.0/no
DST' instead in /var/www/html/opensips-cp/web/login.php on line 107,
referer: http://192.168.18.88/opensips-cp/web/
[Wed Nov 28 20:56:15 2012] [error] [client 192.168.18.94] File does not
exist: /var/www/html/opensips-cp/web/<, referer:
http://192.168.18.88/opensips-cp/web/main.php
[Wed Nov 28 21:08:49 2012] [notice] caught SIGTERM, shutting down
[Wed Nov 28 21:08:49 2012] [notice] SELinux policy enabled; httpd
running as context unconfined_u:system_r:httpd_t:s0
[Wed Nov 28 21:08:49 2012] [notice] suEXEC mechanism enabled (wrapper:
/usr/sbin/suexec)
[Wed Nov 28 21:08:49 2012] [notice] Digest: generating secret for digest
authentication ...
[Wed Nov 28 21:08:49 2012] [notice] Digest: done
[Wed Nov 28 21:08:50 2012] [notice] Apache/2.2.15 (Unix) DAV/2
mod_nss/2.2.15 NSS/3.13.1.0 Basic ECC PHP/5.3.3 mod_ssl/2.2.15
OpenSSL/1.0.0-fips SVN/1.6.11 mod_perl/2.0.4 Perl/v5.10.1 configured --
resuming normal operations
[Wed Nov 28 21:09:01 2012] [error] [client 192.168.18.94] File does not
exist: /var/www/html/opensips-cp/web/<, referer:
http://192.168.18.88/opensips-cp/web/main.php
[Wed Nov 28 21:09:09 2012] [error] [client 192.168.18.94] PHP Parse
error:  syntax error, unexpected '}' in
/var/www/html/opensips-cp/web/tools/admin/list_admins/template/list_admins.main.php
on line 152, referer: http://192.168.18.88/opensips-cp/web/menu.php
[Wed Nov 28 21:09:14 2012] [error] [client 192.168.18.94] PHP Notice:
Undefined index: acl_username in
/var/www/html/opensips-cp/web/tools/users/acl_management/template/acl_management.main.php
on line 28, referer: http://192.168.18.88/opensips-cp/web/menu.php
[Wed Nov 28 21:09:14 2012] [error] [client 192.168.18.94] PHP Notice:
Undefined index: acl_domain in
/var/www/html/opensips-cp/web/tools/users/acl_management/template/acl_management.main.php
on line 29, referer: http://192.168.18.88/opensips-cp/web/menu.php
[Wed Nov 28 21:09:14 2012] [error] [client 192.168.18.94] PHP Notice:
Undefined index: acl_grp in
/var/www/html/opensips-cp/web/tools/users/acl_management/template/acl_management.main.php
on line 30, referer: http://192.168.18.88/opensips-cp/web/menu.php
[Wed Nov 28 21:09:14 2012] [error] [client 192.168.18.94] PHP Notice:
Undefined variable: options in
/var/www/html/opensips-cp/web/tools/users/acl_management/lib/functions.inc.php
on line 95, referer: http://192.168.18.88/opensips-cp/web/menu.php
[Wed Nov 28 21:09:14 2012] [error] [client 192.168.18.94] PHP Notice:
Undefined variable: errors in
/var/www/html/opensips-cp/web/tools/users/acl_management/acl_management.php
on line 302, referer: http://192.168.18.88/opensips-cp/web/menu.php
[Wed Nov 28 21:09:14 2012] [error] [client 192.168.18.94] PHP Notice:
Undefined variable: errors in
/var/www/html/opensips-cp/web/tools/users/acl_management/acl_management.php
on line 302, referer: http://192.168.18.88/opensips-cp/web/menu.php
[Wed Nov 28 21:09:22 2012] [error] [client 192.168.18.94] PHP Notice:
Undefined index: username in
/var/www/html/opensips-cp/web/tools/users/alias_management/template/alias_management.main.php
on line 28, referer: http://192.168.18.88/opensips-cp/web/menu.php
[Wed Nov 28 21:09:22 2012] [error] [client 192.168.18.94] PHP Notice:
Undefined index: alias_username in
/var/www/html/opensips-cp/web/tools/users/alias_management/template/alias_management.main.php
on line 29, referer: http://192.168.18.88/opensips-cp/web/menu.php
[Wed Nov 28 21:09:22 2012] [error] [client 192.168.18.94] PHP Notice:
Undefined index: alias_domain in
/var/www