John Davidson

php - "An error occurred whilst communicating with the server" or "Error connecting to the server" Moodle 3.7

0 comments
Message:


I am getting "An error occurred whilst communicating with the server" or "Error connecting to the server" on a Moodle 3.7 site when I try to upload audio or video files. May be becuase the error shows up in a pop up message no debug messages are displayed even though i enabled it in the settings. Strange thing is previously i was able to upload without such errors.


Action taken so far to relove the issue;
increasing following values in php.ini


memory_limit
upload_max_filesize
post_max_size
max_input_time

increasing uploadReadAheadSize, appConcurrentRequestLimit in IIS


I can see the following error in network tab of the browsers inspector
repository/repository_ajax.php?action=upload [HTTP/1.1 413 Request Entity Too Large 448ms]
or
course/dndupload.php [HTTP/1.1 413 Request Entity Too Large 455ms]
I am only trying to upload an audio in 50M size. Uploading word or PDFs produce no errors. I'm trying to resolve this since yesterday. Any help is greatly appriciated!



My Answer:
PHP is a server-side scripting language that is commonly used for web development. It can be embedded into HTML code and is often used to create dynamic web pages. PHP stands for Hypertext Preprocessor and is open-source, meaning it is free to use and modify. It is a popular choice for building websites and web applications due to its ease of use and versatility.

Rate this post

4 of 5 based on 5026 votes

Comments




© 2024 Hayatsk.info - Personal Blogs Platform. All Rights Reserved.
Create blog  |  Privacy Policy  |  Terms & Conditions  |  Contact Us