I had a site in drupal 6 and I upgraded it to drupal 7. I had this module in drupal 6 which use to return response in form of plist to apple devices.
After upgrading to drupal 7 the devices were not getting data in form of plist but if I set the response type of json they got the response data.

Seemed to be a bug with drupal 7 branch and Services 3.x.

Also the error logs showed error as stderr: PHP Fatal error: Class 'RESTServerView' not found in <drupalroot>/sites/all/modules/rest_server_plist/includes/RESTServerPlistView.inc on line 3

Comments

sadashiv’s picture

Status: Active » Needs review
StatusFileSize
new2.06 KB

After debugging rest_server module of services, I think that the class RESTServerView no longer exists and the class needs to implement ServicesFormatterInterface.

I made few changes and it worked for me. I am attaching the patch for these changes.

Thanks,
Sadashiv.

reevo’s picture

The above patch is for 6.x. and won't apply to 7.x. I've created a new patch against the 7.x-1.0 tag, however cannot work out how to attach it to this issue. So, sorry for the duplicate issue, but the 7.x patch is at #2187819: [dupe] Request with plist response is not returning any data.

sadashiv’s picture

I checked the version control and found only master branch for the module so made the patch based on the master branch.

I am using this patch on my production drupal 7 site and its working fine for me.

Thanks,
Sadashiv.

reevo’s picture

Yep, the patch applies against master, but the 7.x-1.0 tag will get checked out when including this module in a make file, causing the patch to fail.