Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-22404

Fatal error on UserService::createUser()

    XMLWordPrintable

    Details

      Description

      *fatal error stack trace*

      PHP Fatal error:  require(): Failed opening required '/var/www/html/ezp/ezpublish//var/www/html/ezp/ezpublish/../vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Persistence/Tests/TransformationProcessor/_fixtures/transformations/ascii.tr.result' (include_path='/var/www/html/ezp/vendor/phpunit/php-text-template:/var/www/html/ezp/vendor/phpunit/phpunit-mock-objects:/var/www/html/ezp/vendor/phpunit/php-timer:/var/www/html/ezp/vendor/phpunit/php-token-stream:/var/www/html/ezp/vendor/phpunit/php-file-iterator:/var/www/html/ezp/vendor/phpunit/php-code-coverage:/var/www/html/ezp/vendor/phpunit/phpunit:/var/www/html/ezp/vendor/symfony/yaml:.:/usr/share/pear:/usr/share/php') in /var/www/html/ezp/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Persistence/TransformationProcessor/PreprocessedBased.php on line 52
      PHP Stack trace:
      PHP   1. {main}() /var/www/html/ezp/ezpublish/console:0
      PHP   2. Symfony\Component\Console\Application->run() /var/www/html/ezp/ezpublish/console:27
      PHP   3. eZ\Bundle\EzPublishCoreBundle\Console\Application->doRun() /var/www/html/ezp/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:121
      PHP   4. Symfony\Bundle\FrameworkBundle\Console\Application->doRun() /var/www/html/ezp/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishCoreBundle/Console/Application.php:41
      PHP   5. Symfony\Component\Console\Application->doRun() /var/www/html/ezp/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:96
      PHP   6. Symfony\Component\Console\Application->doRunCommand() /var/www/html/ezp/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:191
      PHP   7. Symfony\Component\Console\Command\Command->run() /var/www/html/ezp/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:905
      PHP   8. Issue\TestBundle\Command\CreateUsersCommand->execute() /var/www/html/ezp/vendor/symfony/symfony/src/Symfony/Component/Console/Command/Command.php:244
      PHP   9. eZ\Publish\Core\SignalSlot\UserService->createUser() /var/www/html/ezp/src/Issue/TestBundle/Command/CreateUsersCommand.php:78
      PHP  10. eZ\Publish\Core\Repository\UserService->createUser() /var/www/html/ezp/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/SignalSlot/UserService.php:212
      PHP  11. eZ\Publish\Core\Repository\ContentService->createContent() /var/www/html/ezp/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Repository/UserService.php:483
      PHP  12. eZ\Publish\Core\FieldType\FieldType->toPersistenceValue() /var/www/html/ezp/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Repository/ContentService.php:599
      PHP  13. eZ\Publish\Core\FieldType\TextLine\Type->getSortInfo() /var/www/html/ezp/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/FieldType/FieldType.php:300
      PHP  14. eZ\Publish\Core\Persistence\TransformationProcessor->transformByGroup() /var/www/html/ezp/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/FieldType/TextLine/Type.php:246
      PHP  15. eZ\Publish\Core\Persistence\TransformationProcessor\PreprocessedBased->getRules() /var/www/html/ezp/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Persistence/TransformationProcessor.php:119
      

      If you look closely there is a duplication on the /var/www/ezp/ezpublish/

      '/var/www/html/ezp/ezpublish//var/www/html/ezp/ezpublish/../vendor/ezsystems/.......
      

      Possible regression here https://jira.ez.no/browse/EZP-21751
      https://github.com/ezsystems/ezpublish-kernel/commit/996e7d72258b36b58171d90f895ecb4b53c1b778

      Line

      $rules += require $this->installDir . "/" . $file;
      

      will do the duplication (https://github.com/ezsystems/ezpublish-kernel/blob/master/eZ/Publish/Core/Persistence/TransformationProcessor/PreprocessedBased.php#L52)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              marcos.loureiro-obsolete@ez.no Marcos Loureiro (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: