Matrix not shown on preview + duplicate on nodeview

arez - May 21, 2009 - 13:03
Project:Matrix Field
Version:6.x-2.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

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.

#1

arez - May 21, 2009 - 13:43
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

epersonae2 - May 28, 2009 - 23:21

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

aaron1234nz - May 29, 2009 - 00:02
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

arez - June 1, 2009 - 18:38

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

epersonae2 - June 2, 2009 - 18:31

Mine has a matrix field and a date field.

#6

scott859 - June 2, 2009 - 22:57

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

epersonae2 - June 3, 2009 - 00:15

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

#8

arez - June 4, 2009 - 10:11

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

#9

scott859 - June 4, 2009 - 21:14

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

aaron1234nz - June 5, 2009 - 09:56

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

epersonae2 - June 11, 2009 - 16:41

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

aaron1234nz - July 10, 2009 - 23:43
Status:active» fixed

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

#13

System Message - July 24, 2009 - 23:50
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.