asipto / siremis

Web Admin Interface for Kamailio
http://www.siremis.org
99 stars 47 forks source link

Login not working #33

Closed farmorg closed 6 years ago

farmorg commented 6 years ago

Hi, I see that there have been some issues around php 7.2 and I am unable to login.

I am using the Git Master branch on Ubuntu server 18.04 with php 7.2.7 from the standard apt repository.

Please could someone help with this? Here's what I get when I try to login using the default admin account.

[{"target":"ERROR","content":"
\n[2018-08-22 12:45:01 (GMT)] An exception occurred while executing this script:
\nError message: #2, Use of undefined constant META_PATH - assumed 'META_PATH' (this will throw an Error in a future version of PHP)<\/font>
\nScript name and line number of error: \/usr\/local\/src\/siremis\/openbiz\/bin\/Resource.php:242<\/font>
\n

function:<\/b> errorHandler ( 2, \"Use of undefined constant META_PATH - assumed 'META_PATH' (this ...\", \"\/usr\/local\/src\/siremis\/openbiz\/bin\/Resource.php\", 242, Array(2) ) @ \/usr\/local\/src\/siremis\/openbiz\/bin\/sysheader.inc 117\n
function:<\/b> userErrorHandler ( 2, \"Use of undefined constant META_PATH - assumed 'META_PATH' (this ...\", \"\/usr\/local\/src\/siremis\/openbiz\/bin\/Resource.php\", 242, Array(2) ) @ \/usr\/local\/src\/siremis\/openbiz\/bin\/Resource.php 242\n
function:<\/b> getXmlFileWithPath ( \"service.logService\" ) @ \/usr\/local\/src\/siremis\/openbiz\/bin\/BizSystem.php 549\n
function:<\/b> getXmlFileWithPath ( \"service.logService\" ) @ \/usr\/local\/src\/siremis\/openbiz\/bin\/ObjectFactory.php 104\n
function:<\/b> constructObject ( \"service.logService\" ) @ \/usr\/local\/src\/siremis\/openbiz\/bin\/ObjectFactory.php 56\n
function:<\/b> getObject ( \"service.logService\", 0 ) @ \/usr\/local\/src\/siremis\/openbiz\/bin\/BizSystem.php 252\n
function:<\/b> getObject ( \"service.logService\", 0 ) @ \/usr\/local\/src\/siremis\/openbiz\/bin\/BizSystem.php 241\n
function:<\/b> getService ( \"service.logService\" ) @ \/usr\/local\/src\/siremis\/openbiz\/bin\/BizSystem.php 507\n
function:<\/b> log ( 7, \"DATAOBJ\", \"Query Sql = SELECT T0.id, T0.username, T0.password, T0.enctype, ...\" ) @ \/usr\/local\/src\/siremis\/openbiz\/bin\/data\/BizDataObj_Lite.php 438\n
function:<\/b> _run_search ( Array(2) ) @ \/usr\/local\/src\/siremis\/openbiz\/bin\/data\/BizDataObj_Lite.php 345\n
function:<\/b> fetchRecords ( \"[username]='admin' and status='1'\", Array(0), 1 ) @ \/usr\/local\/src\/siremis\/siremis\/modules\/service\/authService.php 98\n
function:<\/b> authDBUser ( \"admin\", \"admin\" ) @ \/usr\/local\/src\/siremis\/siremis\/modules\/service\/authService.php 66\n
function:<\/b> authenticateUser ( \"admin\", \"admin\" ) @ \/usr\/local\/src\/siremis\/siremis\/modules\/user\/form\/LoginForm.php 93\n
function:<\/b> Login ( ) @ \/usr\/local\/src\/siremis\/openbiz\/bin\/BizController.php 310\n
function:<\/b> invoke ( ) @ \/usr\/local\/src\/siremis\/openbiz\/bin\/BizController.php 110\n
function:<\/b> dispatchRequest ( ) @ \/usr\/local\/src\/siremis\/openbiz\/bin\/BizController.php 32\n
function:<\/b> include_once ( \"\/usr\/local\/src\/siremis\/openbiz\/bin\/BizController.php\" ) @ \/usr\/local\/src\/siremis\/siremis\/bin\/controller.php 6<\/div>\nPlease ask system administrator for help...<\/div>\n"}]
miconda commented 6 years ago

Is a recent master branch? The META_PATH was defined in commit:

farmorg commented 6 years ago

Yes, I cloned it today :) 'git clone https://github.com/asipto/siremis'

miconda commented 6 years ago

Strange, because MODULE_PATH is used in resource.php before and it is defined in the same file.

Anyhow, since metadata folder is not actually used, I commented the part of searching in META_PATH and pushed the patch to git -- give it another try with latest master.

farmorg commented 6 years ago

That seems to have done the trick.

Thank you for your help & quick response.