invoiceninja / ui

Invoice Ninja: Web admin portal built with React
https://app.invoicing.co
Other
55 stars 47 forks source link

Dead link #1746

Closed LarsK1 closed 4 months ago

LarsK1 commented 5 months ago

When I try to purchase a license in the React UI - nothing happens. The button has no link. image

beganovich commented 5 months ago

Hi, can you please share your environment with us and version?

I've tested in latest version and link seems to be working fine.

LarsK1 commented 5 months ago

Hi, it's selfhosted v14.04.2024.1.

LarsK1 commented 5 months ago

There's also no a tag in the html image

beganovich commented 5 months ago

@Civolilah can you replicate?

Civolilah commented 5 months ago

@Civolilah can you replicate?

@beganovich It works fine for me as well. The link for this element is actually pulled from the VITE_WHITELABEL_INVOICE_URL environment variable, so missing the link in the .env file can cause this issue. @LarsK1, can you please confirm whether your .env file is populated with the correct value for the VITE_WHITELABEL_INVOICE_URL variable?

LarsK1 commented 5 months ago

@Civolilah no, there's no such variable in there. There also no such one in the .env.example.

To what value should I set it?

Civolilah commented 5 months ago

@Civolilah no, there's no such variable in there. There also no such one in the .env.example.

To what value should I set it?

@LarsK1 The variable was probably added to the .env.example file later, which is why you're missing it. Please ensure that you have

VITE_WHITELABEL_INVOICE_URL=https://app.invoiceninja.com/buy_now/?account_key=AsFmBAeLXF0IKf7tmi0eiyZfmWW9hxMT&product_id=3

in the .env file, and it will work for you. Thanks!

LarsK1 commented 5 months ago

@Civolilah just added it, and also run php artisan optimize. Still no luck

LarsK1 commented 5 months ago

The variable doesn't exist here as well: https://github.com/invoiceninja/invoiceninja/blob/v5-develop/.env.example

Civolilah commented 5 months ago

@LarsK1 Ah, there seems to be a slight misunderstanding. The variable needs to be added to the React/frontend project. Here is the current .env.example file, which is the best reference: https://github.com/invoiceninja/ui/blob/main/.env.example. Thanks!

LarsK1 commented 5 months ago

@LarsK1 where do I find this file in a regular install?

beganovich commented 5 months ago

You'll have to share with us how you get v5 working. Is it a Docker install, prebuilt ZIP or you did do everything yourself?

LarsK1 commented 5 months ago

It's the prebuilt zip

beganovich commented 5 months ago

Thanks.

cc @turbo124, might be able to help us :)

turbo124 commented 4 months ago

@Civolilah

i think i know the issue, the link has changed:

https://invoiceninja.invoicing.co/client/subscriptions/O5xe7Rwd7r/purchase

Can we update the build for this url please.

Civolilah commented 4 months ago

@Civolilah

i think i know the issue, the link has changed:

https://invoiceninja.invoicing.co/client/subscriptions/O5xe7Rwd7r/purchase

Can we update the build for this url please.

@turbo124 Sure thing, the PR for updating the URL has been created. (#1761)

LarsK1 commented 4 months ago

Hi @turbo124 @Civolilah @beganovich , the big still exists, even though the pr is merged?

turbo124 commented 4 months ago

@LarsK1 we are looking into it, it is in the backlog again.