This page is for common issues happening on the phpFox Mobile apps and our solutions
ISSUE 1: After installing RESTful API and Mobile API apps, we download and use phpFox Mobile Apps to log in our site but have error "Ops. Can not login"
Causes and Solutions
If you are using Apache server, perhaps the HTTP:Authorization header is disabled on your server. It is necessary to inform that our mobile apps use OAuth2 Authorization to authenticate mobile apps and server API to improve security. The OAuth2 requires HTTP:Authorization header and SSL to be enabled. Therefore, you should
- Support SSL on your phpFox site
- Enable HTTP:Authorization header
- You can contact your hosting provider for help. Or add following rules in .htaccess to hotfix the issue by yourself
RewriteCond %{HTTP:Authorization} ^(.*) RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]
In case you followed our solution but the issue still happens, please feel free to submit tickets in our Client Area in order for us to help take further investigation.