Download & Extend

Matrix not shown on preview + duplicate on nodeview

Project:Matrix field
Version:6.x-2.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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

#1

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-

#2

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.

#3

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.

#4

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.

#5

Mine has a matrix field and a date field.

#6

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

#7

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

#8

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

#9

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.

#10

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

#11

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

#12

Status:active» fixed

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

#13

Status:fixed» closed (fixed)

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