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.
The follow error occurs when viewing an single image node:
Fatal error: Call to a member function substitutions() on a non-object in /sites/all/modules/views/includes/handlers.inc on line 1624
- Steps to reproduce:
- Clean install of Drupal
- Enable Node Gallery module
- Create new Image node ----> Create new Gallery node
- Click on image node
- Error message discplayed
Comments
Comment #1
rosso69 CreditAttribution: rosso69 commented+1 Subscribe
Comment #2
dddave CreditAttribution: dddave commentedCannot reproduce on the testsite. Are you using views3?
Comment #3
larruda CreditAttribution: larruda commentedI have just updated Views to 6.x-3.x-dev and now I'm getting this error message either. I think this may be related to Views module.
Comment #4
jlmeredithYes, I was using Views 3 dev.
Comment #5
dddave CreditAttribution: dddave commentedI guess the handler needs some love. If anybody could provide a patch perhaps? I don't know when/if justintime has time to do it himself.
Comment #6
justintime CreditAttribution: justintime commentedI know awhile back, I looked at making NG compatible with both views 2 and 3. While it wasn't impossible, it would have resulted in a bunch of "if views is 2.x, then do this, but if it's 3.x, then do this" clutter.
Personally, I kinda doubt that the views team will ever make 3.x be the recommended release for D6. It's a large amount of effort for a waning amount of people. So, it's doubtful that NG 6.x-3.x will ever support Views 3.x.
However, Views3 *is* the recommended version for D7, so the D7 version of NG (NG4) will have to tackle this early on.
Comment #7
brayo4 CreditAttribution: brayo4 commentedI think its a views issue, I rolled back to Views 6.x-3.0-rc2 and everything works just fine.
Comment #8
dawehner#1330716: Views substitutions broken after db_safe() update is perhaps an helpful issue here, because this fix might causes problems here.
Does this module might embed a view without pre_executing() ?
There was another module with the same kind of problem: #1339390: Views code doesn't execute pre_execute()
Comment #9
zengenuity CreditAttribution: zengenuity commentedAt this point, I won't be adding new features to the D6 version. If features are wanted for D7, please post a new issue.
Comment #9.0
zengenuity CreditAttribution: zengenuity commentedRemoving non important info