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: Upgrading to 1.0.2 causes PHP error

Status Resolved
Add-on / Version Publisher
Severity Blocker
EE Version 24

GIGA

Jul 16, 2013

Hello,

i did upgrade from version 9.8 to 1.0.2. After i get php this error:

A PHP Error was encountered

Severity: Notice

Message: Use of undefined constant PUBLISHER_LITE - assumed 'PUBLISHER_LITE'

Filename: publisher/mod.publisher.php

Line Number: 457

A PHP Error was encountered

Severity: Notice

Message: Undefined property: EE::$publisher_setting

Filename: publisher/mod.publisher.php

Line Number: 463


Fatal error: Call to a member function get() on a non-object in /home/afisas/public_html/system/expressionengine/third_party/publisher/mod.publisher.php on line 463

#1

BoldMinded (Brian)

How are you calling the exp:publisher:translate_phrase tag? This seems out of the ordinary that both of those errors are being called as publisher_setting is one of the first objects created, and PUBLISHER_LITE will be defined every time the extension file is run on the server.

#2

BoldMinded (Brian)

Are you sure you copied all the new files correctly? I’m unable to replicate this.

#3

Dimitri Neufeld

i call it with {exp:publisher:translate_phrase name=”phrase_name”}

yes all the publisher files are complete

#4

Dimitri Neufeld

first i deleted old publisher files and uploaded the new version

#5

Dimitri Neufeld

before upgrading publisher i did upgrade of assets to 2.1.4. May it case the error?

#6

Dimitri Neufeld

when i try to access publisher in addons i got this:

A PHP Error was encountered

Severity: Notice

Message: Undefined property: Addons_modules::$publisher_helper_cp

Filename: publisher/mcp.publisher.php

Line Number: 60

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: publisher/mcp.publisher.php

Line Number: 60

A PHP Error was encountered

Severity: Notice

Message: Undefined property: Addons_modules::$publisher_helper_cp

Filename: publisher/mcp.publisher.php

Line Number: 61


Fatal error: Call to a member function mod_link() on a non-object in /home/afisas/public_html/system/expressionengine/third_party/publisher/mcp.publisher.php on line 61
#7

BoldMinded (Brian)

Something obviously didn’t update correctly. The files look correct, look readable by the server. There are errors everywhere. The errors are being thrown because all these objects are created in the sessions_start hook which is not getting called.

#8

BoldMinded (Brian)

It looks like you set the allow_extensions config setting to “n” and forgot to set it back after the upgrade.

#9

Dimitri Neufeld

I had in my config [‘allow_extensions’] = ‘y’;

i set it to “no” and uploaded to server, then set it to “y” again.

Don’t have any idea why, but now works everything.

Thank you.

Login to reply