Publisher does not support the Fluid field type. Please do not contact asking when support will be available.

If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.

Ticket: Publisher Not Populating Matrix exp_channel_data Column

Status Resolved
Add-on / Version Publisher
Severity Critical
EE Version 17

Jesse Bunch

Nov 19, 2012

Hey Brian,

First off, thanks for the addon. It’s the best I’ve seen so far when it comes to workflow and multi-lingual entries. I’ve ran into an issue where I’m trying to use Matrix’s

{field:total_rows}

tag. ExpressionEngine does not call Matrix to parse it’s fields if the field’s column in exp_channel_data is empty. It seems like Publisher is not populating this field. When I uninstall publisher and re-save the entry, that field is populated and the total_rows tag works. With Publisher enabled, the field is not populated and the total_rows tag does not work.

Steps to Reproduce:

1. Install Matrix and Publisher
2. Create a field group with a single matrix field. Specific columns don’t matter. I have Assets and a few text columns.
3. Publish a new entry with one row in the matrix.
4. In your template, do something like this:

[code}
{if "{layout_gencon_feature:total_rows}” > 0}
  it works!
{/if}

The conditional should never fire because the output of that template tag is blank.

#1

BoldMinded (Brian)

Jesse, try this fix. You might be hitting a bug I found the other day. Around line 156 of exp.publisher.php you’ll see this:

if ($this->EE->input->post('save_status'))
        {
            $this->EE->publisher_lib->status = $this->EE->input->post('save_status');
        }

replace it with this

if ($this->EE->input->post('save_status'))
        {
            $this->EE->publisher_lib->save_status = $this->EE->input->post('save_status');
        }
#2

BoldMinded (Brian)

Hrm, maybe you are seeing something new. I can try to give it a look tonight, but honestly I’m about to start traveling for the holiday so I’m not sure how much time I’ll have.

#3

Jesse Bunch

Roger. I tried your fix and alas it did not fix the issue. Enjoy your Thanksgiving. It’s not critical right now, I have a few weeks’ work until I really need publisher. I’ll just uninstall it until then!

Thanks!

#4

BoldMinded (Brian)

I think someone else is having a similar issue with Playa. I can get both Playa and Matrix fields to render just fine, but the field parameters are messing things up, and the :total_rows variant isn’t working either… this could be an interesting challenge.

#5

Jesse Bunch

Indeed. If I get some time later today, I’ll dig in and see if I can find the issue. It probably is a compatibility issue with the Playa/Matrix extensions and the Publisher extension.

#6

BoldMinded (Brian)

Figured it out. Will include it in the release later today.

#7

BoldMinded (Brian)

Fixed in 0.96

Login to reply