Details
-
Bug
-
Resolution: Fixed
-
High
-
5.4.2
-
None
Description
Importing a package created with ezpm.php fails with a PHP fatal error, either in the administration siteaccess or using ezpm.php cli command:
PHP Fatal error: Call to a member function getAttribute() on a non-object in /var/www/ezp53/ezpublish_legacy/kernel/classes/ezpackage.php on line 1982
Steps to reproduce:
$ php ezpublish/console ezpublish:legacy:script ezpm.php create test_package "Test Package Creation" $ php ezpublish/console ezpublish:legacy:script --siteaccess=ezdemo_site_admin ezpm.php add test_package ezcontentobject --exclude-templates 'Tests/*' $ php ezpublish/console ezpublish:legacy:script --siteaccess=ezdemo_site_admin ezpm.php export test_package --output -d .
Try to import the package on another environment, either with ezpm.php or through the admin interface.