Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/vb.net/15.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Moodle-调用web服务返回错误/还原\u不\u可执行\u等待\u所需_Moodle - Fatal编程技术网

Moodle-调用web服务返回错误/还原\u不\u可执行\u等待\u所需

Moodle-调用web服务返回错误/还原\u不\u可执行\u等待\u所需,moodle,Moodle,我被这个错误缠住了。 尝试调用自定义web服务,该服务执行测试(复制模块())、编辑(测试更新实例())和最终缓存清除(重建课程缓存)的复制 直到我在测验中添加一个问题,它才能正常工作。然后返回错误: error/restore_not_executable_awaiting_required | ERRORCODE: restore_not_executable_awaiting_required. Fault code: 78563441. Actual reply from server:

我被这个错误缠住了。 尝试调用自定义web服务,该服务执行测试(复制模块())、编辑(测试更新实例())和最终缓存清除(重建课程缓存)的复制

直到我在测验中添加一个问题,它才能正常工作。然后返回错误:

error/restore_not_executable_awaiting_required | ERRORCODE: restore_not_executable_awaiting_required. Fault code: 78563441. Actual reply from server: <?xml version="1.0" encoding="UTF-8"?> <methodResponse><fault><value><struct><member><name>faultCode</name><value><int>78563441</int></value></member><member><name>faultString</name><value><string>error/restore_not_executable_awaiting_required | ERRORCODE: restore_not_executable_awaiting_required</string></value></member></struct></value></fault></methodResponse>
代码:


你能帮我找出错误的原因吗?谢谢大家!

在将Moodle 3.1升级到3.5.1之后,我遇到了同样的问题,并在Moodle 3.5.2上找到了解决方案,我选择了:

在将Moodle 3.1升级到3.5.1后,我遇到了同样的问题,并在Moodle 3.5.2上找到了解决方案,我选择了:

您解决了问题吗?在我的情况下,这是一个权限问题,恢复备份的用户没有“moodle/question:managecategory”或“moodle/question:add”功能。您解决了问题吗?在我的情况下,这是一个权限问题,还原备份的用户不具备“moodle/question:managecategory”或“moodle/question:add”功能。
max_execution_time=14400
max_input_time=14400
$context = stream_context_create(array('http' => array( 'method' => "POST", 'header' => "Content-Type: text/xml", 'content' => $request, 'timeout' => 14000000, ))); 
$path = $this->url . "/webservice/xmlrpc/server.php?wstoken=" . $this->token; 
$file = file_get_contents($path, false, $context);