Author Topic: Problem to login in User panel on CWP  (Read 5157 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Problem to login in User panel on CWP
« on: August 15, 2019, 07:10:07 PM »
Hello,

I am with problem to login in user panel on CWP, I identified in php-fpm.log file on /usr/local/cwp/php71/var/log/php-fpm.log directory the error below, anyone know what is this error and how can I resolve it?

Error message I got: "ErrorException: Trying to get property of non-object in /usr/local/cwpsrv/var/services/user_api/v1/app/routes/api.php:0"
Browser console error: SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data

Offline
*
Re: Problem to login in User panel on CWP
« Reply #1 on: August 16, 2019, 09:19:01 PM »
The problem was solved with command line below:

NOTE: With first command line, probably your admin access will shown error in access you will need save the old MySQL root password.

sh /usr/local/cwpsrv/htdocs/resources/scripts/mysql_pwd_reset
chown -R root:root /tmp
chmod 777 -R /tmp
systemctl start mysql
sudo vi /root/.my.cnf > change the password line with old password
sudo vi /usr/local/cwpsrv/htdocs/resources/admin/include/db_conn.php > change the password line with old password (ONLY CHANGE $db_pass variable)

Offline
*
Re: Problem to login in User panel on CWP
« Reply #2 on: August 17, 2019, 02:14:48 PM »
The problem was solved with command line below:

chown -R root:root /tmp
chmod 777 -R /tmp