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: Fatal Error When Trying to Access Publisher in CP
Status | Resolved |
Add-on / Version | Publisher 1.5.2 |
Severity | Critical |
EE Version | 2.9.0 |
Moly Yim
Sep 09, 2014Able to access it just fine on local environment, but when I deployed to our staging server, I am getting the following errors:
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/content/09/10240009/html/deverelementary/ee/expressionengine/third_party/publisher/mcp.publisher.php on line 61
BoldMinded (Brian)
It sounds to me like the production environment is different than your local one, or the files were not deployed correctly. Have you taken a look at the versions of PHP used? PHP 5.3 is the minimum requirement. Also, double check that all files were copied over correctly.
BoldMinded (Brian)
Does this error show on the front-end or in the CP?
BoldMinded (Brian)
Before line 60 of that file add this:
var_dump(ee()->publisher_helper_cp); die;
and tell me what the result is when you reload the page.
Also, please respond in the support ticket, not the email. Thanks.
BoldMinded (Brian)
Actually, do this var_dump instead
var_dump(REQ, ee()->publisher_helper_cp); die;
Moly Yim
This is what I get now:
Parse error: syntax error, unexpected ‘;’, expecting ‘)’ in /home/content/09/10240009/html/deverelementary/ee/expressionengine/third_party/publisher/mcp.publisher.php on line 60
Also — I just noticed that I had extensions turned off; If I turn them on, I get the EE white screen of death both on the front end and within the CP after Publisher is installed.
BoldMinded (Brian)
Having extensions turned off explains a lot. You shouldn’t have that error once you resolve the white screen. To help with the white screen: https://gist.github.com/litzinger/5598641
Moly Yim
Ah ok — got it.
Turned extensions back on and did as instructed in the link above.
Now getting this:
BoldMinded (Brian)
Are you positive the publisher/models/publisher_entry.php file exists?
Moly Yim
It actually is there…but when I opened it, the file was empty! I have no idea how that happened, but I am now re-uploading everything again, for the third time.
The size of the /third_party/publisher file on the server was 1.7MB while the local version was 2.1MB, clearly some data was not getting uploaded properly.
I suspect it has to do with GoDaddy’s mediocre servers.
Anyway — this was a huge help — thanks for jumping in, Brian!