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: Publisher is blocking upgrade from ExpressionEngine 3.5.16 to 4.3.1 because of fatal error
Status | Resolved |
Add-on / Version | Publisher 2.8.2 |
Severity | |
EE Version | 3.5.16 |
Burgi von Mengershausen
Jun 20, 2018
Description:
I’m trying to upgrade from ExpressionEngine 3.5.16 to 4.3.1
and i’m getting the following fatal error within the ExpressionEngine updater:
Fatal error: Uncaught Error: Call to a member function setCurrentStatus() on null in /kunden/tannerhof.de/ee4/eeengine/user/addons/publisher/ext.publisher.php:199 Stack trace: #0 /kunden/tannerhof.de/ee4/eeengine/ee/legacy/libraries/Extensions.php(221): Publisher_ext->sessions_start(Object(EE_Session)) #1 /kunden/tannerhof.de/ee4/eeengine/ee/legacy/libraries/Extensions.php(116): EE_Extensions->call_class('Publisher_ext', 'sessions_start', Array, Array) #2 /kunden/tannerhof.de/ee4/eeengine/ee/legacy/libraries/Session.php(121): EE_Extensions->call('sessions_start', Object(EE_Session)) #3 /kunden/tannerhof.de/ee4/eeengine/ee/legacy/core/Loader.php(1034): EE_Session->__construct(Array) #4 /kunden/tannerhof.de/ee4/eeengine/ee/legacy/core/Loader.php(949): EE_Loader->_ci_init_class('session', '', Array, NULL) #5 /kunden/tannerhof.de/ee4/eeengine/ee/legacy/core/Loader.php(171): EE_Loader->_ci_load_class('Session', NULL, NULL) #6 /kunden/tannerhof.de/ee4/eeengine/ee/legacy/libraries/Core.php(293): EE_Loader->library('session') #7 in /kunden/tannerhof.de/ee4/eeengine/user/addons/publisher/ext.publisher.php on line 199
Detailed steps to reproduce the issue:
1. updated all addons to latest version
2. updated ExpressionEngine to version 3.5.16
3. run the updater from 3.5.16 to 4.3.1
BoldMinded (Brian)
Try making this change… add the following to the ext file right before that error is thrown on line 199.
BoldMinded (Brian)
Do you have custom member fields in your site?
Burgi von Mengershausen
no custom member fields at all!
when i incorporate your code right before line 199 in ext.publisher.php
i get now
Parse error: syntax error, unexpected ‘public’ (T_PUBLIC) in /kunden/tannerhof.de/ee4/eeengine/user/addons/publisher/ext.publisher.php on line 199
BoldMinded (Brian)
My code snippet was just the beginning of the function, don’t paste the whole thing in there, just add the “if ($this->isUpdating()) {” part.
Burgi von Mengershausen
Did this now and now i get:
BoldMinded (Brian)
Ok then, add it just after the core_boot() method too.
Burgi von Mengershausen
Then i get
Fatal error: Uncaught Error: Call to a member function get() on null in /kunden/tannerhof.de/ee4/eeengine/user/addons/publisher/ext.publisher.php:951 Stack trace: #0 /kunden/tannerhof.de/ee4/eeengine/ee/legacy/libraries/Extensions.php(221): Publisher_ext->core_template_route(”) #1 /kunden/tannerhof.de/ee4/eeengine/ee/legacy/libraries/Extensions.php(116): EE_Extensions->call_class(‘Publisher_ext’, ‘core_template_r…’, Array, Array) #2 /kunden/tannerhof.de/ee4/eeengine/ee/legacy/libraries/Core.php(604): EE_Extensions->call(‘core_template_r…’, ”) #3 /kunden/tannerhof.de/ee4/eeengine/ee/legacy/controllers/ee.php(62): EE_Core->generate_page() #4 [internal function]: EE->index() #5 /kunden/tannerhof.de/ee4/eeengine/ee/EllisLab/ExpressionEngine/Core/Core.php(240): call_user_func_array(Array, Array) #6 /kunden/tannerhof.de/ee4/eeengine/ee/EllisLab/ExpressionEngine/Core/Core.php(109): EllisLab\ExpressionEngine\Core\Core->runController(Array) #7 /kunden/tannerhof.de/ee4/eeengine/ee/EllisLab/ExpressionEngine/Boot/boot.php(146): in /kunden/tannerhof.de/ee4/eeengine/user/addons/publisher/ext.publisher.php on line 951
BoldMinded (Brian)
This shouldn’t be happening. Have you tried setting ‘allow_extensions’ = ‘n’ in your config file before running the upgrade? Then changing it back?
BoldMinded (Brian)
Did disabling extensions work? I thought that was a recommended path in the EE upgrade docs too.
Burgi von Mengershausen
no it did not work but it might not be because of publisher … working on it … keep you posted, thanks
Burgi von Mengershausen
When i disable extensions with $config[‘allow_extensions’] = ‘n’;
i now get this error:
Burgi von Mengershausen
but table “exp_channels_channel_field_groups” does not exist and has never existed … there is only “exp_field_groups” … very strange
BoldMinded (Brian)
Did you start over from scratch after changing that config value or did you try to continue from where you left off? That error isn’t Publisher related, so I’m not sure what is happening.
Burgi von Mengershausen
I did start over from scratch. Just opened a ticket at ExpressionEngine support.
Burgi von Mengershausen
hi Brian,
It’s a bug on ExpressionEngines end … Robin worked it out. The problem only happens if you have these two config overrides set and then try to update to ee4:
$config[‘base_path’] = ‘value’; $config[‘base_url’] = ‘value’;
without them the update worked fine and publisher did not show up again.
Thanks Axel
BoldMinded (Brian)
Sounds like an interesting bug. Glad it was found though. I’ll go ahead and close this ticket.