Development talk:AMFPHP: Difference between revisions
From MoodleDocs
(New page: 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...) |
mNo edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 11: | Line 11: | ||
but I still get an error: | but I still get an error: | ||
(Object)#0 | (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'" | 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" | name = "Error" | ||
rootCause = (null) | rootCause = (null) | ||
Line 18: | Line 19: | ||
The line in MethodTable.php is: | The line in MethodTable.php is: | ||
function create($className, $servicePath = NULL, &$classComment){ | function create($className, $servicePath = NULL, &$classComment){ | ||
I think the problem might be the the "&". |
Latest revision as of 06:52, 30 September 2008
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 "&".