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

kbk’s picture

Component: Documentation » Miscellaneous
Status: Active » Fixed

Not 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.

smoothify’s picture

Does 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?

kbk’s picture

Version: 6.x-1.0-alpha1 » 6.x-1.x-dev

Installed 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):

NID Delta FirstName LastName Age MarkupDelta
22 0 Bob Butters 44 0
22 1 Joan Butters 33 0

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.

jteague’s picture

Title: Markup field incompatible with Views Content Multigroup Filter » Markup field incompatible with Views Content Multigroup Filter (Fatal error: Call to undefined method stdClass::join())

Updated 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.

Status: Fixed » Closed (fixed)

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

kbk’s picture

Status: Closed (fixed) » Active

Probably most appropriate to leave this active.

NancyDru’s picture

Issue summary: View changes
Status: Active » Closed (outdated)