User Management frame in OpenSIPS-CP has no display

classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

User Management frame in OpenSIPS-CP has no display

jhchinn
I just loaded OpenSIPS-CP 7.2.3 on a server running CentOS7 following the directions from http://controlpanel.opensips.org/htmldoc/INSTALL.html. Everything loaded and I can get to the CP and all frames via multiple browsers. The display for the User Management doesn't display anything while all others do. Any ideas why and what to do to fix it? Thanks
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: User Management frame in OpenSIPS-CP has no display

Bogdan-Andrei Iancu-2
Hello,

Have you configured the DB support, so that the User Management can list the users ? Do you see any errors in the apache logs ?

Regards,
Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  http://www.opensips-solutions.com

OpenSIPS Bootcamp 2017, Houston, US
  http://opensips.org/training/OpenSIPS_Bootcamp_2017.html
On 07/27/2017 10:03 PM, jhchinn wrote:
I just loaded OpenSIPS-CP 7.2.3 on a server running CentOS7 following the directions from http://controlpanel.opensips.org/htmldoc/INSTALL.html. Everything loaded and I can get to the CP and all frames via multiple browsers. The display for the User Management doesn't display anything while all others do. Any ideas why and what to do to fix it? Thanks

View this message in context: User Management frame in OpenSIPS-CP has no display
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: User Management frame in OpenSIPS-CP has no display

jhchinn

Bogdan,

 

I found an error in the /var/www/opensips-cp/web/tools/users/user_management/user_management.php file

On line 273 and 274 there is an unexpected } character.

 

I removed them and I am now getting the attached display in the User Management display

 

 

Your thoughts?

Jerry Chinn

Telecom VoIP Specialist

NAVIS More Performance. More Profit.

tel 541-330-3562   

www.TheNavisWay.com

Facebook | Twitter | LinkedIn | Blog

 

From: Bogdan-Andrei Iancu [mailto:[hidden email]]
Sent: Friday, July 28, 2017 3:59 AM
To: OpenSIPS users mailling list; Jerry Chinn
Subject: Re: [OpenSIPS-Users] User Management frame in OpenSIPS-CP has no display

 

Hello,

Have you configured the DB support, so that the User Management can list the users ? Do you see any errors in the apache logs ?

Regards,

Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  http://www.opensips-solutions.com
 
OpenSIPS Bootcamp 2017, Houston, US
  http://opensips.org/training/OpenSIPS_Bootcamp_2017.html

On 07/27/2017 10:03 PM, jhchinn wrote:

I just loaded OpenSIPS-CP 7.2.3 on a server running CentOS7 following the directions from http://controlpanel.opensips.org/htmldoc/INSTALL.html. Everything loaded and I can get to the CP and all frames via multiple browsers. The display for the User Management doesn't display anything while all others do. Image removed by sender.Any ideas why and what to do to fix it? Thanks


View this message in context: User Management frame in OpenSIPS-CP has no display
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.



_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

 


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: User Management frame in OpenSIPS-CP has no display

Bogdan-Andrei Iancu-2
That is the typical error if you forgot turn ON the short_open_tag PHP option in php.ini for apache (not for cli). And be sure you restart apache after doing the change.

Regards,

Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  http://www.opensips-solutions.com

OpenSIPS Bootcamp 2017, Houston, US
  http://opensips.org/training/OpenSIPS_Bootcamp_2017.html
On 07/28/2017 07:52 PM, Jerry Chinn wrote:

Bogdan,

 

I found an error in the /var/www/opensips-cp/web/tools/users/user_management/user_management.php file

On line 273 and 274 there is an unexpected } character.

 

I removed them and I am now getting the attached display in the User Management display

 


 

Your thoughts?

Jerry Chinn

Telecom VoIP Specialist

NAVIS More Performance. More Profit.

tel 541-330-3562   

www.TheNavisWay.com

Facebook | Twitter | LinkedIn | Blog

 

From: Bogdan-Andrei Iancu [[hidden email]]
Sent: Friday, July 28, 2017 3:59 AM
To: OpenSIPS users mailling list; Jerry Chinn
Subject: Re: [OpenSIPS-Users] User Management frame in OpenSIPS-CP has no display

 

Hello,

Have you configured the DB support, so that the User Management can list the users ? Do you see any errors in the apache logs ?

Regards,

Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  http://www.opensips-solutions.com
 
OpenSIPS Bootcamp 2017, Houston, US
  http://opensips.org/training/OpenSIPS_Bootcamp_2017.html

On 07/27/2017 10:03 PM, jhchinn wrote:

I just loaded OpenSIPS-CP 7.2.3 on a server running CentOS7 following the directions from http://controlpanel.opensips.org/htmldoc/INSTALL.html. Everything loaded and I can get to the CP and all frames via multiple browsers. The display for the User Management doesn't display anything while all others do. Image removed by sender.Any ideas why and what to do to fix it? Thanks


View this message in context: User Management frame in OpenSIPS-CP has no display
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.



_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

 



_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: User Management frame in OpenSIPS-CP has no display

jhchinn

Bogdan,

 

I fixed the short_open_tag in the php.ini file (I Had not removed the ;).

I restarted the httpd.service and still see either the blank screen with the } left in the /var/www/opensips-cp/web/tools/users/user_management/template/user_management.main.php file

OR

the below view when the } is removed

 

cid:image001.png@01D30787.30137FC0

Any thoughts?

Jerry Chinn

Telecom VoIP Specialist

NAVIS More Performance. More Profit.

tel 541-330-3562   

www.TheNavisWay.com

Facebook | Twitter | LinkedIn | Blog

 

From: Bogdan-Andrei Iancu [mailto:[hidden email]]
Sent: Friday, July 28, 2017 10:09 AM
To: Jerry Chinn; OpenSIPS users mailling list
Subject: Re: [OpenSIPS-Users] User Management frame in OpenSIPS-CP has no display

 

That is the typical error if you forgot turn ON the short_open_tag PHP option in php.ini for apache (not for cli). And be sure you restart apache after doing the change.

Regards,


Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  http://www.opensips-solutions.com
 
OpenSIPS Bootcamp 2017, Houston, US
  http://opensips.org/training/OpenSIPS_Bootcamp_2017.html

On 07/28/2017 07:52 PM, Jerry Chinn wrote:

Bogdan,

 

I found an error in the /var/www/opensips-cp/web/tools/users/user_management/user_management.php file

On line 273 and 274 there is an unexpected } character.

 

I removed them and I am now getting the attached display in the User Management display

 



 

Your thoughts?

Jerry Chinn

Telecom VoIP Specialist

NAVIS More Performance. More Profit.

tel 541-330-3562   

www.TheNavisWay.com

Facebook | Twitter | LinkedIn | Blog

 

From: Bogdan-Andrei Iancu [[hidden email]]
Sent: Friday, July 28, 2017 3:59 AM
To: OpenSIPS users mailling list; Jerry Chinn
Subject: Re: [OpenSIPS-Users] User Management frame in OpenSIPS-CP has no display

 

Hello,

Have you configured the DB support, so that the User Management can list the users ? Do you see any errors in the apache logs ?

Regards,


Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  http://www.opensips-solutions.com
 
OpenSIPS Bootcamp 2017, Houston, US
  http://opensips.org/training/OpenSIPS_Bootcamp_2017.html

On 07/27/2017 10:03 PM, jhchinn wrote:

I just loaded OpenSIPS-CP 7.2.3 on a server running CentOS7 following the directions from http://controlpanel.opensips.org/htmldoc/INSTALL.html. Everything loaded and I can get to the CP and all frames via multiple browsers. The display for the User Management doesn't display anything while all others do. Image removed by sender.Any ideas why and what to do to fix it? Thanks


View this message in context: User Management frame in OpenSIPS-CP has no display
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.




_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

 

 


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: User Management frame in OpenSIPS-CP has no display

Bogdan-Andrei Iancu-2
What is the file you fixed ?

Have you restarted apache ?

Regards,
Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  http://www.opensips-solutions.com

OpenSIPS Bootcamp 2017, Houston, US
  http://opensips.org/training/OpenSIPS_Bootcamp_2017.html
On 07/28/2017 08:37 PM, Jerry Chinn wrote:

Bogdan,

 

I fixed the short_open_tag in the php.ini file (I Had not removed the ;).

I restarted the httpd.service and still see either the blank screen with the } left in the /var/www/opensips-cp/web/tools/users/user_management/template/user_management.main.php file

OR

the below view when the } is removed

 

cid:image001.png@01D30787.30137FC0

Any thoughts?

Jerry Chinn

Telecom VoIP Specialist

NAVIS More Performance. More Profit.

tel 541-330-3562   

www.TheNavisWay.com

Facebook | Twitter | LinkedIn | Blog

 

From: Bogdan-Andrei Iancu [[hidden email]]
Sent: Friday, July 28, 2017 10:09 AM
To: Jerry Chinn; OpenSIPS users mailling list
Subject: Re: [OpenSIPS-Users] User Management frame in OpenSIPS-CP has no display

 

That is the typical error if you forgot turn ON the short_open_tag PHP option in php.ini for apache (not for cli). And be sure you restart apache after doing the change.

Regards,


Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  http://www.opensips-solutions.com
 
OpenSIPS Bootcamp 2017, Houston, US
  http://opensips.org/training/OpenSIPS_Bootcamp_2017.html

On 07/28/2017 07:52 PM, Jerry Chinn wrote:

Bogdan,

 

I found an error in the /var/www/opensips-cp/web/tools/users/user_management/user_management.php file

On line 273 and 274 there is an unexpected } character.

 

I removed them and I am now getting the attached display in the User Management display

 



 

Your thoughts?

Jerry Chinn

Telecom VoIP Specialist

NAVIS More Performance. More Profit.

tel 541-330-3562   

www.TheNavisWay.com

Facebook | Twitter | LinkedIn | Blog

 

From: Bogdan-Andrei Iancu [[hidden email]]
Sent: Friday, July 28, 2017 3:59 AM
To: OpenSIPS users mailling list; Jerry Chinn
Subject: Re: [OpenSIPS-Users] User Management frame in OpenSIPS-CP has no display

 

Hello,

Have you configured the DB support, so that the User Management can list the users ? Do you see any errors in the apache logs ?

Regards,


Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  http://www.opensips-solutions.com
 
OpenSIPS Bootcamp 2017, Houston, US
  http://opensips.org/training/OpenSIPS_Bootcamp_2017.html

On 07/27/2017 10:03 PM, jhchinn wrote:

I just loaded OpenSIPS-CP 7.2.3 on a server running CentOS7 following the directions from http://controlpanel.opensips.org/htmldoc/INSTALL.html. Everything loaded and I can get to the CP and all frames via multiple browsers. The display for the User Management doesn't display anything while all others do. Image removed by sender.Any ideas why and what to do to fix it? Thanks


View this message in context: User Management frame in OpenSIPS-CP has no display
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.




_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

 

 



_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: User Management frame in OpenSIPS-CP has no display

jhchinn

/var/www/opensips-cp/web/tools/users/user_management/template/user_management.main.php

And I did restart apache.

 

Jerry Chinn

Telecom VoIP Specialist

NAVIS More Performance. More Profit.

tel 541-330-3562   

www.TheNavisWay.com

Facebook | Twitter | LinkedIn | Blog

 

From: Bogdan-Andrei Iancu [mailto:[hidden email]]
Sent: Friday, July 28, 2017 10:40 AM
To: Jerry Chinn; OpenSIPS users mailling list
Subject: Re: [OpenSIPS-Users] User Management frame in OpenSIPS-CP has no display

 

What is the file you fixed ?

Have you restarted apache ?

Regards,

Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  http://www.opensips-solutions.com
 
OpenSIPS Bootcamp 2017, Houston, US
  http://opensips.org/training/OpenSIPS_Bootcamp_2017.html

On 07/28/2017 08:37 PM, Jerry Chinn wrote:

Bogdan,

 

I fixed the short_open_tag in the php.ini file (I Had not removed the ;).

I restarted the httpd.service and still see either the blank screen with the } left in the /var/www/opensips-cp/web/tools/users/user_management/template/user_management.main.php file

OR

the below view when the } is removed

 

cid:image001.png@01D30787.30137FC0

Any thoughts?

Jerry Chinn

Telecom VoIP Specialist

NAVIS More Performance. More Profit.

tel 541-330-3562   

www.TheNavisWay.com

Facebook | Twitter | LinkedIn | Blog

 

From: Bogdan-Andrei Iancu [[hidden email]]
Sent: Friday, July 28, 2017 10:09 AM
To: Jerry Chinn; OpenSIPS users mailling list
Subject: Re: [OpenSIPS-Users] User Management frame in OpenSIPS-CP has no display

 

That is the typical error if you forgot turn ON the short_open_tag PHP option in php.ini for apache (not for cli). And be sure you restart apache after doing the change.

Regards,



Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  http://www.opensips-solutions.com
 
OpenSIPS Bootcamp 2017, Houston, US
  http://opensips.org/training/OpenSIPS_Bootcamp_2017.html

On 07/28/2017 07:52 PM, Jerry Chinn wrote:

Bogdan,

 

I found an error in the /var/www/opensips-cp/web/tools/users/user_management/user_management.php file

On line 273 and 274 there is an unexpected } character.

 

I removed them and I am now getting the attached display in the User Management display

 




 

Your thoughts?

Jerry Chinn

Telecom VoIP Specialist

NAVIS More Performance. More Profit.

tel 541-330-3562   

www.TheNavisWay.com

Facebook | Twitter | LinkedIn | Blog

 

From: Bogdan-Andrei Iancu [[hidden email]]
Sent: Friday, July 28, 2017 3:59 AM
To: OpenSIPS users mailling list; Jerry Chinn
Subject: Re: [OpenSIPS-Users] User Management frame in OpenSIPS-CP has no display

 

Hello,

Have you configured the DB support, so that the User Management can list the users ? Do you see any errors in the apache logs ?

Regards,



Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  http://www.opensips-solutions.com
 
OpenSIPS Bootcamp 2017, Houston, US
  http://opensips.org/training/OpenSIPS_Bootcamp_2017.html

On 07/27/2017 10:03 PM, jhchinn wrote:

I just loaded OpenSIPS-CP 7.2.3 on a server running CentOS7 following the directions from http://controlpanel.opensips.org/htmldoc/INSTALL.html. Everything loaded and I can get to the CP and all frames via multiple browsers. The display for the User Management doesn't display anything while all others do. Image removed by sender.Any ideas why and what to do to fix it? Thanks


View this message in context: User Management frame in OpenSIPS-CP has no display
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.





_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

 

 

 


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: User Management frame in OpenSIPS-CP has no display

jhchinn
In reply to this post by Bogdan-Andrei Iancu-2

This is what shows up in the error log after a restart:

 

[Fri Jul 28 10:30:02.600483 2017] [mpm_prefork:notice] [pid 3227] AH00170: caught SIGWINCH, shutting down gracefully

[Fri Jul 28 10:30:07.456104 2017] [core:notice] [pid 3246] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0

[Fri Jul 28 10:30:07.457197 2017] [suexec:notice] [pid 3246] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)

[Fri Jul 28 10:30:10.396994 2017] [auth_digest:notice] [pid 3246] AH01757: generating secret for digest authentication ...

[Fri Jul 28 10:30:10.399234 2017] [lbmethod_heartbeat:notice] [pid 3246] AH02282: No slotmem from mod_heartmonitor

[Fri Jul 28 10:30:10.448825 2017] [mpm_prefork:notice] [pid 3246] AH00163: Apache/2.4.6 (CentOS) PHP/5.4.16 configured -- resuming normal operations

[Fri Jul 28 10:30:10.448882 2017] [core:notice] [pid 3246] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'

[Fri Jul 28 10:30:21.538198 2017] [:error] [pid 3251] [client 10.2.112.22:53033] PHP Warning:  Creating default object from empty value in /var/www/opensips-cp/config/db.inc.php on line 24, referer: http://10.2.112.29/cp/menu.php

[Fri Jul 28 10:30:21.556313 2017] [:error] [pid 3251] [client 10.2.112.22:53033] PHP Parse error:  syntax error, unexpected '}' in /var/www/opensips-cp/web/tools/users/user_management/template/user_management.main.php on line 273, referer: http://10.2.112.29/cp/menu.php

[Fri Jul 28 10:30:24.139244 2017] [:error] [pid 3247] [client 10.2.112.22:53037] PHP Notice:  Undefined variable: i in /var/www/opensips-cp/web/main.php on line 42, referer: http://10.2.112.29/cp/

[Fri Jul 28 10:30:24.193831 2017] [:error] [pid 3249] [client 10.2.112.22:53043] PHP Warning:  Creating default object from empty value in /var/www/opensips-cp/config/db.inc.php on line 24, referer: http://10.2.112.29/cp/main.php

[Fri Jul 28 10:30:24.231075 2017] [:error] [pid 3249] [client 10.2.112.22:53043] PHP Parse error:  syntax error, unexpected '}' in /var/www/opensips-cp/web/tools/users/user_management/template/user_management.main.php on line 273, referer: http://10.2.112.29/cp/main.php

[Fri Jul 28 10:35:25.738895 2017] [:error] [pid 3251] [client 10.2.112.22:54191] PHP Notice:  Undefined variable: i in /var/www/opensips-cp/web/main.php on line 42, referer: http://10.2.112.29/cp/

[Fri Jul 28 10:35:25.817481 2017] [:error] [pid 3251] [client 10.2.112.22:54191] PHP Warning:  Creating default object from empty value in /var/www/opensips-cp/config/db.inc.php on line 24, referer: http://10.2.112.29/cp/main.php

[Fri Jul 28 10:35:25.844710 2017] [:error] [pid 3251] [client 10.2.112.22:54191] PHP Parse error:  syntax error, unexpected '}' in /var/www/opensips-cp/web/tools/users/user_management/template/user_management.main.php on line 273, referer: http://10.2.112.29/cp/main.php

[Fri Jul 28 10:35:30.676243 2017] [:error] [pid 3254] [client 10.2.112.22:54227] PHP Warning:  Creating default object from empty value in /var/www/opensips-cp/config/db.inc.php on line 24, referer: http://10.2.112.29/cp/menu.php

[Fri Jul 28 10:35:30.700095 2017] [:error] [pid 3254] [client 10.2.112.22:54227] PHP Notice:  Undefined index: username in /var/www/opensips-cp/web/tools/users/alias_management/template/alias_management.main.php on line 24, referer: http://10.2.112.29/cp/menu.php

[Fri Jul 28 10:35:30.700198 2017] [:error] [pid 3254] [client 10.2.112.22:54227] PHP Notice:  Undefined index: alias_username in /var/www/opensips-cp/web/tools/users/alias_management/template/alias_management.main.php on line 25, referer: http://10.2.112.29/cp/menu.php

[Fri Jul 28 10:35:30.700221 2017] [:error] [pid 3254] [client 10.2.112.22:54227] PHP Notice:  Undefined index: alias_domain in /var/www/opensips-cp/web/tools/users/alias_management/template/alias_management.main.php on line 26, referer: http://10.2.112.29/cp/menu.php

[Fri Jul 28 10:35:30.700236 2017] [:error] [pid 3254] [client 10.2.112.22:54227] PHP Notice:  Undefined index: alias_type in /var/www/opensips-cp/web/tools/users/alias_management/template/alias_management.main.php on line 27, referer: http://10.2.112.29/cp/menu.php

[Fri Jul 28 10:35:30.703075 2017] [:error] [pid 3254] [client 10.2.112.22:54227] PHP Notice:  Undefined variable: temp in /var/www/opensips-cp/web/tools/users/alias_management/lib/functions.inc.php on line 60, referer: http://10.2.112.29/cp/menu.php

[Fri Jul 28 10:35:30.703179 2017] [:error] [pid 3254] [client 10.2.112.22:54227] PHP Notice:  Undefined variable: temp in /var/www/opensips-cp/web/tools/users/alias_management/lib/functions.inc.php on line 60, referer: http://10.2.112.29/cp/menu.php

[Fri Jul 28 10:35:30.703410 2017] [:error] [pid 3254] [client 10.2.112.22:54227] PHP Notice:  Undefined variable: temp in /var/www/opensips-cp/web/tools/users/alias_management/lib/functions.inc.php on line 91, referer: http://10.2.112.29/cp/menu.php

[Fri Jul 28 10:35:30.703439 2017] [:error] [pid 3254] [client 10.2.112.22:54227] PHP Notice:  Undefined variable: temp in /var/www/opensips-cp/web/tools/users/alias_management/lib/functions.inc.php on line 91, referer: http://10.2.112.29/cp/menu.php

[Fri Jul 28 10:35:30.704470 2017] [:error] [pid 3254] [client 10.2.112.22:54227] PHP Notice:  Undefined variable: errors in /var/www/opensips-cp/web/tools/users/alias_management/alias_management.php on line 304, referer: http://10.2.112.29/cp/menu.php

[Fri Jul 28 10:35:30.704514 2017] [:error] [pid 3254] [client 10.2.112.22:54227] PHP Notice:  Undefined variable: errors in /var/www/opensips-cp/web/tools/users/alias_management/alias_management.php on line 304, referer: http://10.2.112.29/cp/menu.php

[Fri Jul 28 10:35:31.767117 2017] [:error] [pid 3254] [client 10.2.112.22:54227] PHP Warning:  Creating default object from empty value in /var/www/opensips-cp/config/db.inc.php on line 24, referer: http://10.2.112.29/cp/menu.php

[Fri Jul 28 10:35:31.786457 2017] [:error] [pid 3254] [client 10.2.112.22:54227] PHP Parse error:  syntax error, unexpected '}' in /var/www/opensips-cp/web/tools/users/user_management/template/user_management.main.php on line 273, referer: http://10.2.112.29/cp/menu.php

 

 

Jerry Chinn

Telecom VoIP Specialist

NAVIS More Performance. More Profit.

tel 541-330-3562   

www.TheNavisWay.com

Facebook | Twitter | LinkedIn | Blog

 

From: Bogdan-Andrei Iancu [mailto:[hidden email]]
Sent: Friday, July 28, 2017 10:40 AM
To: Jerry Chinn; OpenSIPS users mailling list
Subject: Re: [OpenSIPS-Users] User Management frame in OpenSIPS-CP has no display

 

What is the file you fixed ?

Have you restarted apache ?

Regards,

Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  http://www.opensips-solutions.com
 
OpenSIPS Bootcamp 2017, Houston, US
  http://opensips.org/training/OpenSIPS_Bootcamp_2017.html

On 07/28/2017 08:37 PM, Jerry Chinn wrote:

Bogdan,

 

I fixed the short_open_tag in the php.ini file (I Had not removed the ;).

I restarted the httpd.service and still see either the blank screen with the } left in the /var/www/opensips-cp/web/tools/users/user_management/template/user_management.main.php file

OR

the below view when the } is removed

 

cid:image001.png@01D30787.30137FC0

Any thoughts?

Jerry Chinn

Telecom VoIP Specialist

NAVIS More Performance. More Profit.

tel 541-330-3562   

www.TheNavisWay.com

Facebook | Twitter | LinkedIn | Blog

 

From: Bogdan-Andrei Iancu [[hidden email]]
Sent: Friday, July 28, 2017 10:09 AM
To: Jerry Chinn; OpenSIPS users mailling list
Subject: Re: [OpenSIPS-Users] User Management frame in OpenSIPS-CP has no display

 

That is the typical error if you forgot turn ON the short_open_tag PHP option in php.ini for apache (not for cli). And be sure you restart apache after doing the change.

Regards,



Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  http://www.opensips-solutions.com
 
OpenSIPS Bootcamp 2017, Houston, US
  http://opensips.org/training/OpenSIPS_Bootcamp_2017.html

On 07/28/2017 07:52 PM, Jerry Chinn wrote:

Bogdan,

 

I found an error in the /var/www/opensips-cp/web/tools/users/user_management/user_management.php file

On line 273 and 274 there is an unexpected } character.

 

I removed them and I am now getting the attached display in the User Management display

 




 

Your thoughts?

Jerry Chinn

Telecom VoIP Specialist

NAVIS More Performance. More Profit.

tel 541-330-3562   

www.TheNavisWay.com

Facebook | Twitter | LinkedIn | Blog

 

From: Bogdan-Andrei Iancu [[hidden email]]
Sent: Friday, July 28, 2017 3:59 AM
To: OpenSIPS users mailling list; Jerry Chinn
Subject: Re: [OpenSIPS-Users] User Management frame in OpenSIPS-CP has no display

 

Hello,

Have you configured the DB support, so that the User Management can list the users ? Do you see any errors in the apache logs ?

Regards,



Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  http://www.opensips-solutions.com
 
OpenSIPS Bootcamp 2017, Houston, US
  http://opensips.org/training/OpenSIPS_Bootcamp_2017.html

On 07/27/2017 10:03 PM, jhchinn wrote:

I just loaded OpenSIPS-CP 7.2.3 on a server running CentOS7 following the directions from http://controlpanel.opensips.org/htmldoc/INSTALL.html. Everything loaded and I can get to the CP and all frames via multiple browsers. The display for the User Management doesn't display anything while all others do. Image removed by sender.Any ideas why and what to do to fix it? Thanks


View this message in context: User Management frame in OpenSIPS-CP has no display
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.





_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

 

 

 


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: User Management frame in OpenSIPS-CP has no display

jhchinn
In reply to this post by jhchinn
Bogdan,

Is there any other advice on how to proceed?

Thanks,

Jerry
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: User Management frame in OpenSIPS-CP has no display

Jennifer Hashimoto
Jerry,

I use opensips-cp maybe I can help.

A couple things - I have not found there is an extraneous } that needed to be removed, I would suggest putting it back.

What database are you using? I am using postgres instead of mysql and I found that there was a query where it did a count of users to see if it had anything to display and it was mistakenly finding that it had no users to display.

I suggest finding the part where it does a count on users and modifying the php file to echo the sql it uses (just add a few lines like echo $sql;) then test the sql against your database.

I had to change something like
< $data_no=$resultset[0]['count'];
---
> $data_no=$resultset[0]['count(*)’];

Jennifer


---------------------------------------------------
Jennifer Akemi Hashimoto
Caztel Communications
[hidden email]
905-836-5445 

On Jul 31, 2017, at 1:37 PM, jhchinn <[hidden email]> wrote:

Bogdan,

Is there any other advice on how to proceed?

Thanks,

Jerry



--
View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/User-Management-frame-in-OpenSIPS-CP-has-no-display-tp7608166p7608194.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: User Management frame in OpenSIPS-CP has no display

jhchinn

Jennifer,

 

Thanks for your response.

 

I did identify the issue and am posting what I found to resolve this.

 

In the php.ini file there are (2) locations where the short_open_tag is defined.

;short_open_tag

;   Default Value: On

;   Development Value: Off

;   Production Value: On

 

Again in a few lines below

 

; This directive determines whether or not PHP will recognize code between

; <? and ?> tags as PHP source which should be processed as such. It's been

; recommended for several years that you not use the short tag "short cut" and

; instead to use the full <?php and ?> tag combination. With the wide spread use

; of XML and use of these tags by other languages, the server can become easily

; confused and end up parsing the wrong code in the wrong context. But because

; this short cut has been a feature for such a long time, it's currently still

; supported for backwards compatibility, but we recommend you don't use them.

; Default Value: On

; Development Value: Off

; Production Value: Off

; http://php.net/short-open-tag

short_open_tag = OFF

 

When I searched for the parameter, I uncommented the first, and did not see the second.

 

Once I corrected this error, all works fine.

 

Jerry Chinn

Telecom VoIP Specialist

NAVIS More Performance. More Profit.

tel 541-330-3562   

www.TheNavisWay.com

Facebook | Twitter | LinkedIn | Blog

 

From: Users [mailto:[hidden email]] On Behalf Of Jennifer Hashimoto
Sent: Monday, July 31, 2017 10:53 AM
To: OpenSIPS users mailling list
Subject: Re: [OpenSIPS-Users] User Management frame in OpenSIPS-CP has no display

 

Jerry,

 

I use opensips-cp maybe I can help.

 

A couple things - I have not found there is an extraneous } that needed to be removed, I would suggest putting it back.

 

What database are you using? I am using postgres instead of mysql and I found that there was a query where it did a count of users to see if it had anything to display and it was mistakenly finding that it had no users to display.

 

I suggest finding the part where it does a count on users and modifying the php file to echo the sql it uses (just add a few lines like echo $sql;) then test the sql against your database.

 

I had to change something like

< $data_no=$resultset[0]['count'];

---

> $data_no=$resultset[0]['count(*)’];

 

Jennifer

 

 

---------------------------------------------------
Jennifer Akemi Hashimoto
Caztel Communications
[hidden email]
905-836-5445 

 

On Jul 31, 2017, at 1:37 PM, jhchinn <[hidden email]> wrote:

 

Bogdan,

Is there any other advice on how to proceed?

Thanks,

Jerry



--
View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/User-Management-frame-in-OpenSIPS-CP-has-no-display-tp7608166p7608194.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

 


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Loading...