Hi,
I upgrade my Moodle from 3.4.2 to 3.5
When I try to DRAG and DROP Folder in Folder Resource it says "Error Connecting to Server"
What to Do??
Please help
Open the javascript console in your web browser, do it again, what error (if any) is displayed in the console?
Hi Howard,
It shows:
POST http://mysite.com/lms/repository/repository_ajax.php?action=upload 0 ()
upload_file @ dndupload.js:52
do_upload @ dndupload.js:44
process_renames @ dndupload.js:35
start_upload @ dndupload.js:25
drop @ dndupload.js:21
_notify @ yui_combo.php?rollup/3.17.2/yui-moodlesimple.js:13680
notify @ yui_combo.php?rollup/3.17.2/yui-moodlesimple.js:13709
_notify @ yui_combo.php?rollup/3.17.2/yui-moodlesimple.js:13372
_procSubs @ yui_combo.php?rollup/3.17.2/yui-moodlesimple.js:13498
fireSimple @ yui_combo.php?rollup/3.17.2/yui-moodlesimple.js:13465
_fire @ yui_combo.php?rollup/3.17.2/yui-moodlesimple.js:13447
fire @ yui_combo.php?rollup/3.17.2/yui-moodlesimple.js:13416
cewrapper.fn @ yui_combo.php?rollup/3.17.2/yui-moodlesimple.js:20467
Have you been able to solve it? Same issue with Moodle 3.5 (Build: 20180517):
Request URL: http://moodle35.mimosinnet.org/moodle/repository/repository_ajax.php?action=upload
Request Method: POST
Status Code: 500 Internal Server Error
Remote Address: 192.168.1.100:80
Referrer Policy: no-referrer-when-downgrade
upload_file @ dndupload.js:52
do_upload @ dndupload.js:44
process_renames @ dndupload.js:35
start_upload @ dndupload.js:25
drop @ dndupload.js:21
_notify @ yui_combo.php?rollup/3.17.2/yui-moodlesimple.js:13680
notify @ yui_combo.php?rollup/3.17.2/yui-moodlesimple.js:13709
_notify @ yui_combo.php?rollup/3.17.2/yui-moodlesimple.js:13372
_procSubs @ yui_combo.php?rollup/3.17.2/yui-moodlesimple.js:13498
fireSimple @ yui_combo.php?rollup/3.17.2/yui-moodlesimple.js:13465
_fire @ yui_combo.php?rollup/3.17.2/yui-moodlesimple.js:13447
fire @ yui_combo.php?rollup/3.17.2/yui-moodlesimple.js:13416
cewrapper.fn @ yui_combo.php?rollup/3.17.2/yui-moodlesimple.js:20467
After examining nginx logs:
"/var/lib/nginx/tmp/client/0000000001" failed (13: Permission denied), client: 192.168.10.100, server: moodle35.mimosinnet.org, request[0/977] /moodle/repository/repository_ajax.php?action=upload HTTP/1.0", host: "192.168.10.101:82", referrer: "http://moodle35.mimosinnet.org/moodle/user/editadvanced.php?id=2&course=1&returnto=profile"
Setting correct permissions in /var/lib/nginx solved the issue.
Cheers!
Hi Joan
Thanks for your replies and sorry for late
Nginx is disabled in my server as it creates session swapping problems for me.
I still get the same error
Hi,
New Update:
Server Rebuild.
Basic Linux server.
Moodle 3.5
Still Getting "Error Connecting Server" error while Drag and Drop Folder in Folder Resource.
Debug is On and not giving any additional info.
No Nginx installed.
Please Help
Yes but its Moodle problem I feel
...then why doesn't everybody else have the problem?
Can I confirm that you have debugging on (full), have checked your web server logs and have checked your javascript console (since you rebuilt)?
Please also confirm that you have no optional plugins or themes. Get rid of them if you do. If only to eliminate them.
Hi Howard,
May be others didnt tried yet or they know its hard to get exact solution here
Debug is on and at Developer level but as you see in image there is no information about error.
Console shows this:
I have lots and lots of big files which I cant upload one by one thats why I want to upload them as folder and DRAG AND DROP
Optional Plugin installed:
Profile field based theme delivery and some themes
Please help
Waiting for needful help
Hi, I had the same problem: "Error Connecting to Server" when I was uploading a file .
I´m working with moodle 3.5.1.
What I did to solve this problem was add this line in: /etc/nginx/nginx.conf:
# set client body size to 2M # client_max_body_size 2M; |
And reload nginx service:
systemctl reload nginx |