chamilo / chamilo-lms

Chamilo is a learning management system focused on ease of use and accessibility
https://chamilo.org
GNU General Public License v3.0
796 stars 479 forks source link

Unable to post a link on the social network page #3754

Open niyatipalan opened 3 years ago

niyatipalan commented 3 years ago

Describe I tried posting a URL on the social network page built through Chamilo, however was not able to post the same and it kept on loading the preview for a long time. Kindly find the attached image(2.png) to see the illustration. However, after removing the https://www part from the URL (which was to be posted) it worked properly. Kindly find the attached image(1.png) for the reference

To Reproduce Steps to reproduce the behavior:

  1. Go to 'the social network' on the website
  2. Copy and paste the URL which is to be posted.
  3. Click Post.
  4. See the Loading preview for a long time

Expected behavior The post should be updated on the wall as soon as the entire URL is posted on the social wall.

Screenshots Attached the snapshots for the issue.

Desktop (please complete the following information):

**Server

2 1

Additional context Add any other context about the problem here.

ywarnier commented 3 years ago

This might just be a question of http to https communication. When you write a link, the server (not your computer) sends queries to the remote link to try and obtain metadata from it (the image, the title, subtitle, etc). If the server somehow is not able to handle this call, your "loading preview" indicator will wait until it gets an answer or some timeout is triggered. I see no particular reason for it not to support https.

I tried on my local installation (only http) and it worked straight away, with the "https://" prefix. local-https-load

I would suggest you update to 1.11.14, but to be honest I'm not sure there's anything in 1.11.14 specifically improving that.