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.
Placing a Markup Field inside of a multigroup (CCK3) and then creating a synced view using the Multigroup Filter with fields from the same multigroup produces the following error:
An error occurred at /admin/build/views/ajax/preview/[my_view].
Error Description: Fatal error: Call to undefined method stdClass::join() in /sites/all/modules/views/includes/query.inc on line 929
A workaround is to move the Markup field outside of the multigroup.
Comments
Comment #1
kbk CreditAttribution: kbk commentedNot really expecting a patch for this but I did want to make a record of it in case others run into the same issue. Feel free to change status back if you think a patch is necessary.
Comment #2
smoothify CreditAttribution: smoothify commentedDoes the same problem occur when using both 1.0-alpha1 and 1.x-dev of markup? There is some differences to how it works in the dev version?
Comment #3
kbk CreditAttribution: kbk commentedInstalled 1.x-dev, updated, cleared cache and the problem remains.
Not sure if you are familiar with CCK3 but it uses a delta value to sync entries of fields that are part of a multigroup. I just peaked at the database and the markup field delta is not incremented when other fields of the same multigroup are.
Here is an approximation of what is going on with a multigroup containing 4 fields (FirstName, LastName, Age, Markup):
I believe the delta value is part of the problem but manually adding rows with deltas to the markup field table did not solve the problem. In all, this is a relatively minor problem as CCK3 is only quasi-supported (albeit with +15k site users) and the markup can probably be moved before the multigroup in most cases.
Comment #4
jteague CreditAttribution: jteague commentedUpdated title to reflect error received.
As aside, I can confirm (#3) kbk's assessment of the problem. I had the same error, removed the markup field from the multigroup, and cleared the error. It is a problem with delta sync, but also with type. Really not a huge problem, but can cause some confusion when working with views.
Comment #6
kbk CreditAttribution: kbk commentedProbably most appropriate to leave this active.
Comment #7
NancyDru