Hi,

I'm very new to this Drupalgap, but I'm quite experience using drupal. I have follow the installation guide on "Getting Started Guide" from drupalgap.org but my site still showing white screen of death.

I can't find anymore info about the error, where can I find the error log?

I move the mobileapp to another domain and for the first time there are these error messages..
Here is my test installation www.foxono.me/mobileapp

First, it claim that /app/themes/easystreet3/easystreet3.js is missing. So I manually copy from /themes/easystreet3 but it still doesn't work and it give the error message as below.

drupalgap_deviceready() - failed connection to undefined - Bad Request: Bad Request at next (/app/node_modules/express/node_modules/connect/lib/proto.js:125:13) at module.exports (/app/node_modules/express/node_modules/connect/lib/middleware/bodyParser.js:54:23) at IncomingMessage.module.exports (/app/node_modules/express/node_modules/connect/lib/middleware/json.js:71:18) at IncomingMessage.EventEmitter.emit (events.js:93:17) at IncomingMessage._emitEnd (http.js:366:10) at HTTPParser.parserOnMessageComplete [as onMessageComplete] (http.js:149:23) at Socket.socket.ondata (http.js:1825:22) at TCP.onread (net.js:404:27) - Check your device's connection and check that http://www.foxono.me is online. If you continue to have problems visit www.drupalgap.org for troubleshooting info.

THanks.

Comments

maxchock’s picture

Issue summary: View changes
maxchock’s picture

Issue summary: View changes
tyler.frankenstein’s picture

Status: Active » Needs review

Try disabling the "Cross Domain Proxy" under Ripple's settings.

tyler.frankenstein’s picture

Also, it appears your app is hosted at this domain:

foxono.me

Then it will not be possible to connect to this domain:

buddyjoy

Unless you disable web security in Chrome:

http://www.drupalgap.org/node/223

maxchock’s picture

StatusFileSize
new130.6 KB

Hi, I have disable the Cross Domain Proxy but still white screen..

https://drupal.org/files/issues/Selection_155.png

Yes, I notice that and i revert everything back to this domain www.foxono.me now. With this domain, no error message will popup..

tyler.frankenstein’s picture

It looks like you are still jumping domains:

http://www.foxono.me/mobileapp/app/settings.js

The site_path variable is set to point to:

Drupal.settings.site_path = 'http://www.buddyjoy.com';

You can't do that, unless you open Chrome without web security:

http://www.drupalgap.org/node/223

It's also complaining about this:

http://www.buddyjoy.com/?q=services/session/token - 404 - Not Found

Which would indicate you don't have the Services module enabled on that site (or it is earlier than version 3.4). Install and/or update the Services module to the latest version.

maxchock’s picture

StatusFileSize
new38.76 KB
new17.89 KB
new45.89 KB

Hi,

I have checked, the Services module is v3.7. And you are right, I forgot to edit the settings.js. So now this is my settings.js, (http://www.foxono.me/mobileapp/app/settings.js)

However, that doesn't really solve my problem.
As when I open the site, it show this error..
https://drupal.org/files/issues/Selection_156.png

Then, pressing ok bring me into the Ripple screen
https://drupal.org/files/issues/Selection_157.png

Eventually, it show this...
https://drupal.org/files/issues/Selection_158.png

By the way, can DrupalGap work in Multi-site environment? because I'm using multi-site environment for foxono.me, buddyjoy.com and few others sites..

Million Thanks for helping.

tyler.frankenstein’s picture

Now when I go to:

http://www.foxono.me/mobileapp/app/settings.js

It appears Drupal is hijacking that path and throwing an error, so it appears the app doesn't even live there anymore.

maxchock’s picture

oops, something wrong with my server... the foxono.me site was down. it;s now back online.. TQ

tyler.frankenstein’s picture

Status: Needs review » Closed (works as designed)

The app works fine for me now:

http://www.foxono.me/mobileapp/

maxchock’s picture

ok, thanks, it work after disabling the Cross Domain Proxy.

ravisagar’s picture

Hi,

I am also developing an app by following the helloworld example.

The app works fine at www.example.org/mobile-application/index.html in

Firefox
chrome with web security and cross domain proxy disabled

The app doesn't work in emulator and actual android device.

I am using the latest version of services, and other related modules (installed them yesterday 2 June 2015). I also verified the json response using Poster Plugin.

Except my Drupal installation is quite older version of Drupal (7.14) and I need to develop an app for a huge website so updating it is not not easy.

URL of the app is http://www.eyeway-app.linuxindya.com/mobile-application/index.html

tyler.frankenstein’s picture

Make sure you installed the cordova plugins from the command line, and have followed other instructions in the Install guide. Otherwise, you'll have to set debug to true in settings.js, and report your drupal/drupalgap related output for any further help.

ravisagar’s picture

I also updated my Drupal and all its module to latest version and redid the whole process again but same error.

I downloaded the DrupalGap app from playstore and I was able to connect to my site. So I guess problem is somewhere in the app.

Debugging is turned to true and yes I can see lot of errors in my chrome console window. Here is the list of errors.

Ripple :: Environment Warming Up (Tea. Earl Gray. Hot.)
jdrupal-7.x-1.2.min.js:31 POST: http://www.eyeway-app.linuxindya.com/?q=drupalgap/system/connect.json
drupalgap-7.x-1.1.min.js:34 Uncaught TypeError: Cannot read property 'loading' of undefined
chrome-extension://geelfhphabnejjhdalkjhgipohgpdnoc/ripple.js Failed to load resource: the server responded with a status of 404 (Not Found)(anonymous function) @ ripple.js:50
http://www.eyeway-app.linuxindya.com/mobile-application/ripple/user-agent Failed to load resource: the server responded with a status of 404 (Not Found)
ripple.js:37 cordova :: Setting the user agent server side failed.
ripple.js:37 cordova :: Initialization Finished (Make it so.)
drupalgap-7.x-1.1.min.js:16 themes/easystreet3/easystreet3.js
jdrupal-7.x-1.2.min.js:32 200 - OK
drupalgap-7.x-1.1.min.js:144 drupalgap_jqm_active_page_url - TypeError: Cannot read property 'activePage' of undefined
drupalgap-7.x-1.1.min.js:128 drupalgap_goto_generate_page_and_go - TypeError: Cannot read property 'changePage' of undefined
drupalgap-7.x-1.1.min.js:35 Uncaught TypeError: Cannot read property 'loading' of undefined
ripple.js:37 cordova :: fired deviceready event!
jdrupal-7.x-1.2.min.js:31 POST: http://www.eyeway-app.linuxindya.com/?q=drupalgap/system/connect.json
jdrupal-7.x-1.2.min.js:32 200 - OK
jdrupal-7.x-1.2.min.js:31 GET: http://www.eyeway-app.linuxindya.com/?q=drupalgap/views_datasource/drupalgap_content
jdrupal-7.x-1.2.min.js:32 200 - OK
Corwin’s picture

I'm having almost exactly the same problem. The services module is 7.x-3.14 and Drupal.settings.site_path is set correctly. I can browse to www.site.com/mobile-application in Firefox, the drupalgap android app shows content, but Chromium/Ripple is a dud.

> Make sure you installed the cordova plugins from the command line
What are cordova plugins? Googling it gives me node stuff. I'm running Drupal and using PHP - the only node is Drupal nodes..