【问题标题】:Moodle File Upload errors: An error occured whilst communicating with the serverMoodle 文件上传错误:与服务器通信时发生错误
【发布时间】:2022-01-20 06:27:18
【问题描述】:

在 Moodle (3.9) 中有一些上传不成功,主要是 pdf。 出现的消息是:“与服务器通信时发生错误”。

不成功的请求显示 POST /course/dndupload.php 未定义

成功的请求显示 POST /course/dndupload.php HTTP/1.1

例如,当使用 libre office 重新导出 pdf 时,可以毫无问题地上传相同的 pdf。

有什么想法吗?

【问题讨论】:

    标签: file-upload http-headers moodle


    【解决方案1】:

    LibreOffice pdf 是否更小?可能是 PHP 超时。

    https://docs.moodle.org/311/en/File_upload_size#Modifying_the_php.ini_file

    max_execution_time 的值是多少?您可以在此处检查 PHP 值 -

    网站管理 > 服务器 > PHP 信息

    另外,尝试将调试切换到开发人员级别,看看错误消息是什么。

    网站管理 > 开发 > 调试

    调试消息 = 开发人员

    显示调试消息 = 选中

    如果是生产站点,请谨慎更改调试级别。如果您有权访问config.php 文件,那么您可以指定一个用户。

    // You can specify a comma separated list of user ids that that always see
    // debug messages, this overrides the debug flag in $CFG->debug and $CFG->debugdisplay
    // for these users only.
    // $CFG->debugusers = '2';
    

    【讨论】:

      【解决方案2】:

      感谢您的回复,同时找到了问题的解决方案。在服务器上实施了针对 log4j2 漏洞的测量:https://support.f5.com/csp/article/K59329043#proc2。这导致了不当行为,iRule 已被删除,现在它又可以工作了。

      【讨论】:

        猜你喜欢
        • 2018-05-03
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2019-12-14
        相关资源
        最近更新 更多