Control Web Panel
Developers => CWP API => Topic started by: paulo_piquera@hotmail.com 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
-
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)
-
The problem was solved with command line below:
chown -R root:root /tmp
chmod 777 -R /tmp