Report links point to localhost

Backend functionalities: user management, course management, reports, certificates, etc.
Post Reply
Graeme59
FormaLms User
Posts: 117
Joined: Thu May 05, 2016 6:53 am
Version: forma.lms 2.0
Location: UK
Contact:

Report links point to localhost

Post by Graeme59 »

Hi,
I have a multi tennent (with an empty "Website URL with final /") site running 3.01 where reports are sent out to customers that contain a link that points http://localhost/files/common/report/... they are unable to open the report file as they unable to connect to the server. Also the site is https.
How can I solve this and also why do some report emails contain links and others excel files?

Cheers
Graeme
alfa24
Senior Boarder
Posts: 2008
Joined: Fri Nov 24, 2017 8:45 am

Re: Report links point to localhost

Post by alfa24 »

It's an old bug.
Per supporto GRATUITO contattatemi in privato qui
Graeme59
FormaLms User
Posts: 117
Joined: Thu May 05, 2016 6:53 am
Version: forma.lms 2.0
Location: UK
Contact:

Re: Report links point to localhost

Post by Graeme59 »

Hi
Thanks for getting back to me. Why do some sites send excel files and others links?
Cheers
Graeme
alfa24
Senior Boarder
Posts: 2008
Joined: Fri Nov 24, 2017 8:45 am

Re: Report links point to localhost

Post by alfa24 »

I'm not sure of this, I should be on instance to investigate further.
Per supporto GRATUITO contattatemi in privato qui
User avatar
max
FormaLms Guru
Posts: 2735
Joined: Thu Mar 01, 2012 10:41 am
Version: forma.lms 2.4
Contact:

Re: Report links point to localhost

Post by max »

Graeme, actually I think it's simpler than that

Concerning the localhost, in all our instances the link that is being sent actually pulls the correct URL. From what I know, the "localhost" URL issue only happens when the cron job that sends the report is on a local machine and not on the cloud server. We already fixed that in our instances.

Sending files or links is something that you can decide in the advanced settings of Forma. You set a maximum size for attached files, if it's more than that it will send links. With 0 it'll send links.
Cattura.PNG
Cattura.PNG (6.05 KiB) Viewed 2014 times
In your istance this is probably more than 0, therefore it sends files if they are lighter than the value you have set.
---------------------
Massimiliano Ferrari
Elearnit - Elearning e Knowledge Management
https://www.elearnit.net
https://www.linkedin.com/in/massimilianoferrari
m.ferrari[at]elearnit.net
Skype: m_ferrari_it
Graeme59
FormaLms User
Posts: 117
Joined: Thu May 05, 2016 6:53 am
Version: forma.lms 2.0
Location: UK
Contact:

Re: Report links point to localhost

Post by Graeme59 »

Hi Max,
As always you are a fountain of all knowledge! Worked perfectly.
Thank you my friend
Graeme
User avatar
max
FormaLms Guru
Posts: 2735
Joined: Thu Mar 01, 2012 10:41 am
Version: forma.lms 2.4
Contact:

Re: Report links point to localhost

Post by max »

fountain_of_knowledge_by_djremgutz_d14jrn5-fullview.jpg
You're welcome!
---------------------
Massimiliano Ferrari
Elearnit - Elearning e Knowledge Management
https://www.elearnit.net
https://www.linkedin.com/in/massimilianoferrari
m.ferrari[at]elearnit.net
Skype: m_ferrari_it
Post Reply