Open 1nf1n7y opened 8 years ago
@ahmedbarwary You'll need to open your browser development tools` JavaScript Console Log and Network Activity, both of these will reveal to you more insight into the problem. Please report back with any relevant console and/or network activity.
@signalpoint thanks for your reply. but I can not get console log because the app is showing the error only inside the mobile not in the browser.
@ahmedbarwary If you're using an Android device, and are connected over USB to compile the app, then you can use Chrome's (or Chromium) Inspect Devices feature that is available with it's developer tools. With it you can inspect html, browse the console log and watch the network activity of a compiled app. A very crucial tool when it comes to debugging a compiled app. Please report back with your findings, thanks.
@signalpoint this is the Console log:
@ahmedbarwary These errors are definitely a problem:
drupalgap_service_resource_extract_results - TypeError: Cannot set property 'permissions' of undefined
drupalgap_menu_access - TypeError: Cannot read property 'uid' of undefined
drupalgap_user_has_role - TypeError: Cannot read property 'roles' of undefined
First, I'd recommend updating your Drupal site to use the latest version of every module and core. Then update DrupalGap to the latest drupalgap.min.js and jDrupal to the latest jdrupal.min.js then see if that fixes the problem.
Hi. have drupalgap app connected to drupal site on localhost and it worked perfectly. but when I moved the drupal site to remote server I got the error (401 - Not authorized) inside my drupalgap and I don't know how to solve this problem.