所有表单上的操作元素问题(仅在我们客户的服务器上)-Moodle

Issue with the action element on all Forms (only on our client's server) - Moodle

所有表单在操作元素上都有双 URL,因此,none 的表单有效。所有这些都会将您带到一个空白页面,每个表单上的操作如下所示(添加新用户的示例表单):

action="http://domain.com:8080http://ip:8080/user/editadvanced.php"

出于某种原因,您注意到的所有表格都有 domain.com + ip。

Moodle 版本是 2.5,他们和我们的唯一区别是他们在端口 8080

上安装了 apache 运行

任何解决方案或见解将不胜感激。

如果需要任何进一步的说明,请告诉我,我很乐意对此进行编辑 post。

问题是,Moodle 运行 在配置损坏的 VM 中。导致 Moodle 行为异常的虚拟机配置问题。

对于任何自定义表单,我们可以通过表单调用传递URL:

<?php
// Require your form class.
require_once('custom_form.php');

// Pass the URI where the form will be processed.
$form = new custom_form($CFG->wwwroot . '/blocks/myblockname/file.php');

如果有人 运行 遇到同样的情况,这可能会有所帮助。