Android app in self host website (not subdomain) installation

Hi.

My InvoiceNinja is installed on https://website.com/payments/
(Not on subdomain like. https://invoiceninja.website.com)

I’m accessing the admin and client using URL
https://website.com/payments/public/

So far everything seems to work smoothly except google maps in client’s view, which I don’t need.

Android app accepts the same URL and logs in:
https://website.com/payments/public/

In dashboard I can see Average Invoice, Outstanding, Total Revenue, Activity, Products just fine.

Payments, Invoices, Quotes, Clients are blank.

Thank you

Br,
Dali

Here’s info on enabling Google Maps:

http://docs.invoiceninja.com/en/latest/configure.html#google-map

Our mobile developer will try to help with the Android app issues.

Can you try un-commenting this line to see if it helps

https://github.com/invoiceninja/invoiceninja/blob/master/public/.htaccess#L22

Hi Dali,

It is strange that you are getting some data - but not everything. I think there is something going on deeper on the webserver with this.

Can you check your error logs for any exceptions that are being generated?

We can debug this direct on your server as well if you can create a test account for us. Send us an email a contact@invoiceninja.com so we can understand what the exact issue is.

Hi Hillel.

Can you try un-commenting this line to see if it helps https://github.com/invoiceninja/invoiceninja/blob/master/public/.htaccess#L22

Which line would this be exactly?

Br,
Dali

Dear Hillel and David.

I have 2 instances of the Invoice ninja 3.2.1 installed. Both connected to same database.

  1. https://invoice.website.com (works ok)
  2. https://website.com/payments/ (google maps in client view and Android app does not work)

I will send you an email with direct access to my server.

Thank you

Br,
Dali

This is the line to un-comment: RewriteBase /

There’s info about enabling Google Maps here: http://docs.invoiceninja.com/en/latest/configure.html#google-map

Ahh, .httacess inside /public

If I un-comment RewriteBase / Android app still fail. Admin https://website.com/payments/public/dashboard will stop to respond, so no good solution.

If I set GOOGLE_MAPS_ENABLED=true I get Whoops in google maps window.

Please note that on duplicated 3.2.1. sub-domain install (invoice.website.com) using the same database everything works well.

The problems seems to be .htacess rules for website folder installation.

Br,
Dali

I have found a race condition which is causing an issue with users using a URL with a subdirectory.

This has been resolved in v1.1.16

Please let me know if you continue to have similar issues.

Thank you David!!!

Br,
Dali

Even i am facing a almost similar issue and the solution posted here do not seems to work

can you help me out?

Which exact version of the mobile app are you using?