Publisher is EE6 compatible, but it does not support the Fluid field.

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: Undefined offset error when saving draft

Status Resolved
Add-on / Version Publisher 3.2.4
Severity
EE Version 6.0.3

Vincent Fierant

Mar 05, 2021

When I want to save a draft of an entry already available in the default language, I get the error below

Notice
Undefined offset: 0
user/addons/publisher/legacy/models/publisher_template.php, line 643

Severity: E_NOTICE

I can set error reporting to hidden in the EE settings, which solves it, however, that’s not wanted behaviour. Unsure how to troubleshoot this. Hope you can help.

#1

BoldMinded (Brian)

Mar 05, 2021

What version of PHP are you using?

#2

BoldMinded (Brian)

Mar 05, 2021

I can send a whole new build, but the easiest fix is to change line 643 of that file to this:

$preview = $result[0] ?? [];

Login to reply