Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
While trying to create a relationship to another view using the representative view drop down, I get this fatal error. I've tried installing the 7.x-3.x-dev version of views with the same error.
I have installed the 7.x-3.1 version of the Views module and the 7.10 of Dupal core.
I am relatively new to Drupal and tried to research the error on my own without success.
I have attached a screenshot of the error.
Comment | File | Size | Author |
---|---|---|---|
#5 | 1412734.patch | 868 bytes | dawehner |
viewsError.png | 87.58 KB | jeepers52004 |
Comments
Comment #1
danielb CreditAttribution: danielb commentedAre you using the View reference module? At what point does this happen? Can you use the View properly without View reference?
Comment #2
jeepers52004 CreditAttribution: jeepers52004 commentedI believe I am using the standard Views UI. I have several views created and they work fine. I was trying to add a relationship to another view through the Advanced drop down menu in the view editing window. When I try to add the relationship, representative node and then choose a representative view, a get the error upon submitting.
Again, I am new to Drupal and I may not be going in the right direction to accomplish my goal, but thought I shouldn't get the error?
Comment #3
danielb CreditAttribution: danielb commentedI think you've posted this in the wrong place. This issue queue is specifically for a module that inserts views into content.
I'll move this to the Views issue queue.
If you want an explanation of how these issue queues work see here: http://drupal.org/node/317
Comment #4
dawehnerview::load got removed as it seemed to be unnecessary as it's not used by views_get_view.
Sadly the relationship handler used it.
As this quite a experimental feature set it just to major.
The short fix would be to reintroduce the function.
Comment #5
dawehnerI don't see a reason why this patch shouldn't work.
Can you please try it out?
Comment #6
bschilt CreditAttribution: bschilt commentedthe patch in #5 worked for me. I was receiving the Call to undefined method view::load() too when trying to use a view to retrieve the representative node.
Just need to figure out how to use the representative view...
Comment #7
jeepers52004 CreditAttribution: jeepers52004 commentedCan you point me to the relevant info on applying the patch?
Comment #8
danielb CreditAttribution: danielb commentedjeepers, go to the Views project page and click "version control" near the top. Scroll down to 'applying a patch'. You need to know some git basics, and have git.
However as this is a simple patch, you can apply it manually. Read the patch file for clues as to the file and lines to edit, the code with "-" before it is to be deleted, and the code with "+" before it is to be inserted.
Comment #9
dawehnerCommitted the patch to 7.x-3.x