Dear all,
Kindly seek assistance from you guys as I'm fairly new to moodle.
I just finished migrating moodle to our own local server which is running on Linux and PHP 7.2.
The issue I encounter was, whenever I want to upload a file, somehow there's an error inside the console.
Moodle is running on version 3.10.01 with moove theme
[01-Jul-2021 13:15:09 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'mysqli' (tried: /usr/lib/php/20190902/mysqli (/usr/lib/php/20190902/mysqli: cannot open shared object file: No such file or directory), /usr/lib/php/20190902/mysqli.so (/usr/lib/php/20190902/mysqli.so: undefined symbol: mysqlnd_global_stats)) in Unknown on line 0
If you switch from the error console to the Network tab you should be able to see the background requests being made for the upload. Click on these requests to see the server's response. There'll probably be a response that's an HTML page from the server probably containing an error. Moodle is expecting the server to send JSON only.
Is the SyntaxError: Unexpected token error occurring immediately when the upload starts or after a while, for example 30 seconds? This error can occur when a large file is being uploaded and the web server connection times out. If it does look like a timeout the first thing to check is whether PHP's max_execution_time is being exceeded. If the problem persists please tell us more about the web server: is it Apache, Nginx or something else?
You should be able to work around this problem by using the command line interface to restore courses.
Below is the tab for Network.
The error occurs instantaneously after I click the upload button.
The web server is running on apache (version 2.4.41)
Thanks for, insight on the alternative restore guide. However, I still need to get the upload issue as this affects all moodle features that are involve with file uploading
Re: File Upload Issue Moodle 3.10.01
In upload user section, I tried to upload a pdf file instead of csv. Somehow, the pdf has no issue.
My csv only contains the following