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: Receiving a Fatal Error when trying to save or preview an entry
Status | Resolved |
Add-on / Version | Publisher Lite 2.10.6 |
Severity | |
EE Version | 5.1.2 |
Fabcom
Jan 21, 2019Hello, when we’re trying to preview or save an entry, we’re getting the following error:
Fatal error: Uncaught Error: Call to undefined method Publisher_draft_preview::isAuthorized() in /var/www/html/xxx/system/user/addons/publisher/ext.publisher.php:259 Stack trace: #0 /var/www/html/xxx/system/ee/legacy/libraries/Extensions.php(222): Publisher_ext->core_boot() #1 /var/www/html/xxx/system/ee/legacy/libraries/Extensions.php(117): EE_Extensions->call_class(‘Publisher_ext’, ‘core_boot’, Array, Array) #2 /var/www/html/xxx/system/ee/legacy/core/Controller.php(85): EE_Extensions->call(‘core_boot’) #3 /var/www/html/xxx/system/ee/legacy/core/Controller.php(99): EE_Controller->__construct() #4 /var/www/html/xxx/system/ee/EllisLab/ExpressionEngine/Controller/Publish/AbstractPublish.php(30): CP_Controller->__construct() #5 /var/www/html/xxx/system/ee/EllisLab/ExpressionEngine/Controller/Publish/Publish.php(24): EllisLab\ExpressionEngine\Controller\Publish\AbstractPublish->__construct() #6 /var/www/html/xxx/system/ee/EllisLab/ExpressionEngine/Core/Core.php(228): EllisLab\ExpressionEngine\Controller\Publish\Publish->__con in /var/www/html/xxx/system/user/addons/publisher/ext.publisher.php on line 259
Thank you,
Yoni
BoldMinded (Brian)
Based on that stack I feel like something is messing up your file loading, or something is overriding the publisher_draft_preview model that does not have an isAuthorized() method on it. Since this is something that I can’t replicate, and no one else is reporting as an issue, and more to the matter that these few lines of code haven’t been changed in months or longer, I would suspect something is up with your environment. Have you tried recreating the issue in a brand new install of EE and Publisher?
Fabcom
we’re also getting this error whenever trying to publish if that helps troubleshoot (and on another EE installation on that same server, publisher is working fine):
Warning Use of undefined constant PUBLISHER_STATUS_OPEN - assumed ‘PUBLISHER_STATUS_OPEN’ (this will throw an Error in a future version of PHP)
user/addons/publisher/config.php, line 61
Fatal error: Class ‘Pimple\Container’ not found in /var/www/html/xxx/system/user/addons/publisher/bootstrap.php on line 3
BoldMinded (Brian)
This definitely seems like something isn’t installed correctly, or there are old files laying around or something, but Publisher doesn’t have a bootstrap.php file and definitely doesn’t use Pimple for DI. Do you have two publisher folders in your addons directory? I suggest taking a second look at your setup to see what is missing or what there may be duplicate files of.
Fabcom
This was from an EE v2 upgrade, so yeah maybe something didn’t upgrade/install correctly along the way. I wiped the /system/user/addons/publisher/ folder and re-installed from download and it appears to be working..
Thanks!