Hello I have this notice popping up:
Notice: Undefined variable: arguments in RESTServer->handle() (line 48 of PATH/sites/all/modules/services/servers/rest_server/includes/RESTServer.inc).
S.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | notice_undefined-2650796-3.patch | 709 bytes | joelpittet |
Comments
Comment #2
jeremy.zimmermann commentedHi, I do have the same issue.
D 7.41 and 7.x-3.13 using the REST server.
Comment #3
joelpittetYeah, if you have required arguments and they are not sent in, the $arguments variable is never initialized because the method throws before the assignment.
Try this patch.
Comment #4
kylebrowning commentedComment #5
Sumeet Darade commentedHaving the same issue ! Only while registering a new user ! I can see patch above, not sure how to use it since am new to drupal and drupal modules !
Can someone help with applying the patch ?
Help is appreciated !
Comment #6
joelpittet@Sumeet Darade there are some instructions how to apply a patch. It's a nice skill to have, hopefully this will help. https://www.drupal.org/patch/apply
Comment #7
Sumeet Darade commented@joelpittet thanks for that ! I tried it and same response (500).
Can i check a list of fields that i can send/required to send for completing the registration ? is it the field issue ?
Comment #8
Sumeet Darade commentedI enabled the debug mode for the service ! which reported the following on trying to register...
Recoverable fatal error: Argument 2 passed to drupal_array_get_nested_value() must be of the type array, null given, called in /home/drupalsite/public_html/mywebsite/modules/field/field.default.inc on line 38 and defined in drupal_array_get_nested_value() (line 6786 of /home/drupalsite/public_html/mywebsite/includes/common.inc).helps ?
Comment #9
Sumeet Darade commentedI am sorry for populating this issue with comments , but am trying to debug and i think it would help resolving the issue !
After all this time what i concluded is ,
Endpoint/user/registerit works fine only if it has no custom fields !As soon as remove all custom fields it starts working !
the custom field i made was,
mobile number
machine name --> field_mobile_number
i sent user data like this,
Didnt wrk !
for registration to work , i had to to remove the custom field even from the site !
Help is appreciated ! Thank you !
Comment #10
kylebrowning commentedSumeet your issue is over here #2543010: Validation causes calls to user/create to fail when the user has a field attached.
Comment #11
Sumeet Darade commented@ kylebrowning Thanks Alot ! That saved my life !
Comment #13
kylebrowning commented