Hi to all,
I'm facing some hurdles updating an old Espo deployment in 4.2.5. I'd like to upgrade to current 5.0.
Problems start when I update from 4.3.1 to 4.4.1:
php upgrade.php ../EspoCRM-upgrade-4.3.1-to-4.4.1.zip
Current version is 4.3.1
Start upgrade process...
PHP Fatal error: Call to a member function get() on null in [...]/application/Espo/Core/ORM/Repositories/RDB.php on line 283
Line 283 of RDB.php tries to do
if ($entity->hasAttribute('modifiedById')) {
$entity->set('modifiedById', $this->getEntityManager()->getUser()->id);
$entity->set('modifiedByName', $this->getEntityManager()->getUser()->get('name')); [--line 283]
}
So as far as I can understand the code why does getUser() return null at line 283 when at the previous line it was valid and ->id did not crash code?
Tried with 5.6.25 and even 7.1: php -v
PHP 5.6.25 (cli) (built: Oct 21 2016 18:00:07)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
Any ideas?
Thanks in advance,
Michele
I'm facing some hurdles updating an old Espo deployment in 4.2.5. I'd like to upgrade to current 5.0.
Problems start when I update from 4.3.1 to 4.4.1:
php upgrade.php ../EspoCRM-upgrade-4.3.1-to-4.4.1.zip
Current version is 4.3.1
Start upgrade process...
PHP Fatal error: Call to a member function get() on null in [...]/application/Espo/Core/ORM/Repositories/RDB.php on line 283
Line 283 of RDB.php tries to do
if ($entity->hasAttribute('modifiedById')) {
$entity->set('modifiedById', $this->getEntityManager()->getUser()->id);
$entity->set('modifiedByName', $this->getEntityManager()->getUser()->get('name')); [--line 283]
}
So as far as I can understand the code why does getUser() return null at line 283 when at the previous line it was valid and ->id did not crash code?
Tried with 5.6.25 and even 7.1: php -v
PHP 5.6.25 (cli) (built: Oct 21 2016 18:00:07)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
Any ideas?
Thanks in advance,
Michele
Comment