I get this error twice: "Notice: Undefined index: path in services_views_services_resources() (line 99 of /[...]/drupal/sites/all/modules/services_views/services_views.module)."

This happens when I'm looking at admin/structure/services/list/viewpoint/resources. 'viewpoint' is the name of my endpoint.

I also end up seeing:

picture of an error

That is, the 'index' part appears in its own drop-down underneath the views one. It's impossible to enable index. 'servicetest' is the machine name of my view.

CommentFileSizeAuthor
servicetest.jpg27.12 KBmile23

Comments

EmanueleQuinto’s picture

I noticed the same error for newly created views. Did you set the path for the view? I guess this is the source of the error.

Probably we need a validation on display editing similar to the page one where you get the message: Display "Page" uses a path but the path is undefined.

ygerasimov’s picture

Status: Active » Fixed

I have tried to save Services display without path and now it shows validation error. Display "Services" uses a path but the path is undefined.. I think it has been fixed in views itself now.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

ifernando’s picture

It seems that naming the path is mandatory. I solved it by naming the Path. This name is used to access the service's resource. The user interface should indicate it to avoid this confusion.