Aquesta pàgina forma part de la documentació de Moodle en català, tot i que no ha estat traduïda encara. Podeu contribuir obertament a les tasques de traducció. Podeu consultar la Guia d'edició de la documentació i també participar ens els debats del fòrum de traductors de la documentació a moodle.org

AMFPHP

De MoodleDocs
Salta a:navegació, cerca

I have a problem with User.php not working on my installation - UserName.php works fine.

I had to change:

include(AMFPHP_BASE . "util/MethodTable.php");

to

include("../core/shared/util/MethodTable.php");

but I still get an error:

 (Object)#0
 message = "faultCode:AMFPHP_RUNTIME_ERROR faultString:'Missing argument 3 for create()' 
 faultDetail:'***MOODLEROOT***/lib/amfphp/core/shared/util/MethodTable.php on line 53'"
 name = "Error"
 rootCause = (null)

The line in MethodTable.php is:

 function create($className, $servicePath = NULL, &$classComment){

I think the problem might be the the "&".