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 Errors in Publisher settings with PHP 5.4.10

Status Resolved
Add-on / Version Publisher
Severity Trivial
EE Version 31

Dennis Frank

Jun 26, 2013

When developing locally with MAMP and PHP Version 5.4.10 I get lots of PHP errors on Publisher’s Settings page:

A PHP Error was encountered
Severity: Notice
Message: Array to string conversion
Filename: fieldtypes/Select.php
Line Number: 61

A PHP Error was encountered
Severity: Notice
Message: Array to string conversion
Filename: fieldtypes/Select.php
Line Number: 61

A PHP Error was encountered
Severity: Notice
Message: Array to string conversion
Filename: fieldtypes/Select.php
Line Number: 61

…

A PHP Error was encountered
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /path/to/expressionengine/system/codeigniter/system/core/Exceptions.php:170)
Filename: core/Common.php
Line Number: 412

ExpressionEngine 2.61 with modified custom_field core files (https://gist.github.com/litzinger/5718707)

#1

BoldMinded (Brian)

I don’t have my work computer running the latest version of MAMP, but I do at home, so I’ll take a look again locally to see if I can replicate.

Would it be possible for you to give me an export as an .sql file of exp_publisher_settings table so I can import it locally?

#2

BoldMinded (Brian)

Don’t worry about sending the db export, I’m able to replicate it now locally.

#3

BoldMinded (Brian)

Ok, that was a pretty easy fix. If you want to patch it prior to the next release just change line 61 of publisher/libraries/Interface_builder/fieldtypes/Select.php to this:

$selected = ( (is_array($data) AND in_array($option_value, $data)) OR ($data == $option_value) ) ? 'selected="selected"' : NULL;

Login to reply