I updated to the latest dev to avoid all matrix content being deleted on preview. its fine now but if i preview a node, matrix field wont display in the preview.

Comments

ChaosD’s picture

Title: Matrix not shown on preview » Matrix not shown on preview + duplicate on nodeview
Status: Active » Needs review

i just noticed that if i save the node, the matrix field gets displayed 3 times on nodeview.

-changed title-

epersonae2’s picture

I'm having the same problem, plus if I try to include the matrix field in a view using the Fields row style, the matrix field doesn't appear.

aaron1234nz’s picture

Status: Needs review » Active

I've seen this behavior before. How many CCK fields do you have on your node? Is it just Matrix or do you have others too? I think this is related to the way in which the formatter is called from CCK.

ChaosD’s picture

i used matix in combination with the link field...nothing else. the problem disappeared after i deleted any matrixfield releated files and reinstalled the module.

epersonae2’s picture

Mine has a matrix field and a date field.

scott859’s picture

I am having this issue as well. I have used a number of matrix fields (4 separate fields) together in one content type (profile) and the first matrix field displays 3x while the other 3 fields are displaying properly (just one time).

epersonae2’s picture

arez, did you just delete the module and reinstall, or actually delete the content type and content as well?

ChaosD’s picture

i completely rebuilt the content type, too - sorry forgot to mention that

scott859’s picture

Greetings,

As indicated in my earlier post (#6 above), I was having the same issue. I went into the matrix field that was repeating 3x (it was supposed to show only once) and just re-saved it without making any changes and that solved the issue somehow.

Also, I noticed that when I initially went to edit the content type after logging in, I received 3 errors. The content type is "Profile", here are the errors:

Content Type > Profile > Manage Fields

* warning: Invalid argument supplied for foreach() in .../sites/all/modules/matrix/matrix.module on line 882.
* warning: array_unshift() [function.array-unshift]: The first argument should be an array in .../sites/all/modules/matrix/matrix.module on line 885.
* warning: implode() [function.implode]: Invalid arguments passed in .../sites/all/modules/matrix/matrix.module on line 886.

After viewing these errors I then returned to the Profile page. Then I went back to Content Type > Profile > Manage Fields - and the error no longer showed.

So, all is good at this point, hopefully this lends some insight into isolating the issue(s) that may be causing this.

aaron1234nz’s picture

This seems like one of those hard-to-solve problems because it is not very repeatable. I have fixed the bug in relation to the matrix not show up in a view (comment #2).

epersonae2’s picture

6.2.x-dex does seem to fix the view/matrix problem for me, although it does come with its own tiny bug. #488736: errot at the time of installing this module

aaron1234nz’s picture

Status: Active » Fixed

as per the observation in #11, I'll take this as fixed.

Status: Fixed » Closed (fixed)

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