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
811 stars 481 forks source link

Uploaded Files are not shown within chamilo #3784

Open Maverickgts opened 3 years ago

Maverickgts commented 3 years ago

Hi Chamilo Team,

i found an issue with my chamilo installation and am looking for guidance on how to fix it.

Current behavior

When i want to create a Hotspot test it fails to show the uploaded picture and the option for rectangel/circle etc. So i am not able to mark what should be the right choice.

Expected behavior

When moving to the question, after creating the Hotspot test and choosing the file to upload, i should see the jpg-file and be able to choose the part of the picture that would be the correct answer.

Steps to reproduce

Create hotspot test, choose picture to upload and move forward to the question detail.

Chamilo Version

1.11.14 using Nginx and PHP7.2-fpm

additional information

checking the files ~/app/courses/TESTKURSADMIN/document/images/ is see it is uploaded. root@srv10438:/var/www/html/chamilo/app# ls -lh courses/TESTKURSADMIN/document/images/ total 2.0M [...] -rw-r--r-- 1 www-data www-data 338K Feb 21 13:35 quiz-1613910909.jpg

I did check to change the file permission from 0666 to 0550 as found in one of the istall guides, but still the same issue. I did try to upload another image in the course/fileupload section and have the same. Clicking on it does not show the picture (pdf's are downloaded) If i try to open the uploaded picture in new bowserwindow, i only see the chamilo starting page.

I have the feeling there is some PHP Setting or package missing, but don't know which. Looking forward to your feedback.

Best regards Sandro Missing_picture File_selected

lonesomewalker commented 3 years ago

Please use the forum for misconfiguration.

Thanks

christianbeeznest commented 3 years ago

Hello @Maverickgts

I can upload my image for hotspot in my chamilo 1.11.14 , could you be sure if you have the correct settings in php.ini ?

max_execution_time = 300; Maximum execution time of each script, in seconds max_input_time = 600; Maximum amount of time each script may spend parsing request data memory_limit = 256M; Maximum amount of memory a script may consume (128MB) post_max_size = 100M upload_max_filesize = 100M;

Can you check what error do you get in your browser console or server log so We can debug it and find your issue.

Thank you.