diff --git a/webservice/amf/server.php b/webservice/amf/server.php index 4103f002d0658..32a460227a53e 100644 --- a/webservice/amf/server.php +++ b/webservice/amf/server.php @@ -37,6 +37,8 @@ require_once("$CFG->dirroot/webservice/amf/locallib.php"); if (!webservice_protocol_is_enabled('amf')) { + debugging('The server died because the web services or the AMF protocol are not enable', + DEBUG_DEVELOPER); die; } diff --git a/webservice/rest/server.php b/webservice/rest/server.php index 5e9f515179dd0..c0f02bce2efb5 100644 --- a/webservice/rest/server.php +++ b/webservice/rest/server.php @@ -37,6 +37,8 @@ require_once("$CFG->dirroot/webservice/rest/locallib.php"); if (!webservice_protocol_is_enabled('rest')) { + debugging('The server died because the web services or the REST protocol are not enable', + DEBUG_DEVELOPER); die; } diff --git a/webservice/soap/server.php b/webservice/soap/server.php index 468c3257e9da6..b110cfeaa89ed 100644 --- a/webservice/soap/server.php +++ b/webservice/soap/server.php @@ -37,6 +37,8 @@ require_once("$CFG->dirroot/webservice/soap/locallib.php"); if (!webservice_protocol_is_enabled('soap')) { + debugging('The server died because the web services or the SOAP protocol are not enable', + DEBUG_DEVELOPER); die; } diff --git a/webservice/xmlrpc/server.php b/webservice/xmlrpc/server.php index b601bdc6c407b..bb07369d3ed86 100644 --- a/webservice/xmlrpc/server.php +++ b/webservice/xmlrpc/server.php @@ -37,6 +37,8 @@ require_once("$CFG->dirroot/webservice/xmlrpc/locallib.php"); if (!webservice_protocol_is_enabled('xmlrpc')) { + debugging('The server died because the web services or the XMLRPC protocol are not enable', + DEBUG_DEVELOPER); die; }