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 Notices with Publisher and Playa

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

Mike C

Jul 15, 2013

Hi -

We’re upgrading a site with Publisher and after installing it (1.0.1), we get the following PHP notices when logged in as a super admin:

A PHP Error was encountered
Severity: Warning
Message: Missing argument 3 for Publisher_ext::playa_fetch_rels_query()
Filename: publisher/ext.publisher.php
Line Number: 1185
A PHP Error was encountered
Severity: Notice
Message: Undefined variable: where
Filename: publisher/ext.publisher.php
Line Number: 1187

A PHP Error was encountered
Severity: Warning
Message: Missing argument 3 for Publisher_ext::playa_fetch_rels_query()
Filename: publisher/ext.publisher.php
Line Number: 1185

A PHP Error was encountered
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /nfs/c07/h04/mnt/112936/domains/system252_stag/codeigniter/system/core/Exceptions.php:170)
Filename: core/Common.php
Line Number: 408

Fatal error: ob_start() [<a href='ref.outcontrol'>ref.outcontrol</a>]: Cannot use output buffering in output buffering display handlers in /nfs/c07/h04/mnt/112936/domains/system252_stag/codeigniter/system/core/Exceptions.php on line 166

We are running EE 2.5.2 and Playa 4.3.

Note that these notices are not re-producable - they happened on site pages that included those fieldtypes in the entries upon first view but after a page refresh, they did not come back. Also, we did hit the update P&T link on the Publisher settings tab as those other modules were already installed. We also cleared all caches.

Any idea on what was causing this - and might we see further issues related to this?

Thanks,
Mike

#1

BoldMinded (Brian)

Hi, Mike. I’m not sure how that would happen to be honest. The 3rd parameter is very clearly defined in Playa and is passed to the hook, so I don’t see how it would be undefined. Can you upgrade Playa to 4.3.3 or later just to make sure there isn’t an error with it.

#2

Mike C

Sure - we can do 4.3.3 for now. I’ll let you know if issues persist.

#3

Mike C

Adding Playa 4.3.3 seems to have fixed the issue above (which actually was re-producable if you started a new session).

However, we’re seeing some other issues. There is one other site on this install (with MSM) and it is not coming up at all (see the errors: http://staging.batteryuniversity.com).

If I disable Publisher in it’s Settings, then the site above comes up ok.

Also, just curious, Publisher is MSM compatible but if I disable it, it is disabled for both sites. I would have thought I could use it on one site but not the other and have different language settings for both if needed. Is that not correct?

Thanks, Mike

#4

BoldMinded (Brian)

Can you upgrade to the latest version of Publisher? I think the new error you are seeing is fixed in 1.0.2 (newest is 1.0.3).

Disabling Publisher turns off all the hook calls, so it will disable it for all sites, not just the site you’re editing the settings in. The settings are global too… I can look into making the settings unique per site. The languages though are MSM compatible.

#5

BoldMinded (Brian)

Mike, I just added support to make settings specific to each site, however, the Enabled option needs to be global as it disables hooks in the database. I can’t make that site specific. I’ll test the build out on another computer tonight and send it to you tomorrow.

#6

Mike C

That’s awesome - thanks Brian! I’ll await that build and test that out for the other issue also and get back to you. I think per site settings will be a great feature for anyone in an MSM environment .

#7

BoldMinded (Brian)

I agree, and can’t believe I overlooked this part. I guess “MSM” to me meant that languages were specific… just forgot about the settings.

#8

BoldMinded (Brian)

Added MSM compatible settings in 1.0.3

Login to reply