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: PHP Error encountered when saving Low Variable Matrix

Status Resolved
Add-on / Version Publisher 1.1.4
Severity Critical
EE Version 2.7.2

JohnDWells

Feb 04, 2014

Hi Brian,

I have a Matrix field set up as a Low Variable, and when I attempt to save my changes I encounter the following PHP error:

A PHP Error was encountered
Severity: Notice
Message: Undefined index: entry_id Filename: hooks/Publisher_hooks_base.php
Line Number: 54

This morning I updated Publisher to 1.1.4 (from 1.1.1), which has introduced the error - if I roll back to the 1.1.1 state, the error does not appear.

Cheers,
John

#1

BoldMinded (Brian)

1.2 build emailed, should fix it.

#2

JohnDWells

Hi Brian,

Thanks for the prompt response - unfortunately with that update, if the Matrix row has an Asset field the selected file is lost upon saving the Low Variables.

No errors though, just silently wipes all Asset-in-Matrix Low Variables fields of their contents. Standalone Asset Low Variables behave fine.

#3

BoldMinded (Brian)

John, I’m unable to replicate this. I have a Matrix field inside of Low Vars, Added 2 rows, 1 image in each row, and it saves fine.

#4

JohnDWells

Hmm, I am definitely getting this consistently, with previously existing fields, and newly created (after the Publisher 1.2 upgrade).

Can I confirm we’re on same versions of add-ons?

Assets 2.2.2 Low Variables 2.4.1 Matrix 2.5.10 Publisher 1.2 (the one you provided via email) EE 2.7.2

Cheers, John

#5

BoldMinded (Brian)

My version of Assets is 2.1.3. I’ll upgrade and test.

#6

BoldMinded (Brian)

I sent a new build. I tested with the exact versions of those add-ons and Matrix containing Assets fields saved fine :/

#7

JohnDWells

It’s still happening I’m afraid…

So this is at that awkward point where I say, “well then what?”, and you say, “I can’t replicate your problem so I’ve got nothing.” 😊

All of this is local right now (the live site is still at Publisher 1.1.4), so I can’t share access easily just yet. Would it help to send you a DB dump? Is there anywhere specifically in the code I can go hunting for where the data loss may be occurring? I certainly don’t mind getting my hands dirty in code.

Cheers, John

#8

BoldMinded (Brian)

Would you be able to setup a development or staging domain so I could FTP to and take a look?

#9

JohnDWells

I thought you might ask - running through the paces now, I’ll drop you an email direct when ready.

#10

BoldMinded (Brian)

Sounds good. FWIW, I’d prefer the server info in this ticket actually. Its over SSL and the details get deleted when the ticket is closed, as opposed to sitting around in my email.

#11

JohnDWells

Hi Brian,

I’m still working on getting a staging server to you. I’m just trying to work out some other kinks before I hand it over to you. I’ll update this ticket with details as soon as I have them.

Cheers, John

#12

JohnDWells

Hi Brian,

Well who knows what’s going on but now when I test, I think everything is working - I’ve just saved an Asset within Matrix Low Variable, and didn’t lose any data. Sorry, not sure what’s happened.

I did have to patch lines 1395 and 1411 of models/publisher_site_pages.php to replace $this->EE with ee()…

Cheers, John

Login to reply