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.
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | Selection_158.png | 45.89 KB | maxchock |
| #7 | Selection_157.png | 17.89 KB | maxchock |
| #7 | Selection_156.png | 38.76 KB | maxchock |
| #5 | Selection_155.png | 130.6 KB | maxchock |
Comments
Comment #1
maxchock commentedComment #2
maxchock commentedComment #3
tyler.frankenstein commentedTry disabling the "Cross Domain Proxy" under Ripple's settings.
Comment #4
tyler.frankenstein commentedAlso, it appears your app is hosted at this domain:
foxono.meThen it will not be possible to connect to this domain:
buddyjoyUnless you disable web security in Chrome:
http://www.drupalgap.org/node/223
Comment #5
maxchock commentedHi, I have disable the Cross Domain Proxy but still white screen..
Yes, I notice that and i revert everything back to this domain www.foxono.me now. With this domain, no error message will popup..
Comment #6
tyler.frankenstein commentedIt 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:
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.
Comment #7
maxchock commentedHi,
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..
Then, pressing ok bring me into the Ripple screen

Eventually, it show this...

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.
Comment #8
tyler.frankenstein commentedNow 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.
Comment #9
maxchock commentedoops, something wrong with my server... the foxono.me site was down. it;s now back online.. TQ
Comment #10
tyler.frankenstein commentedThe app works fine for me now:
http://www.foxono.me/mobileapp/
Comment #11
maxchock commentedok, thanks, it work after disabling the Cross Domain Proxy.
Comment #12
ravisagar commentedHi,
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
Comment #13
tyler.frankenstein commentedMake 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.
Comment #14
ravisagar commentedI 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.
Comment #15
Corwin commentedI'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..