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

Adding 'Recommendation' attribute to a class raises a fatal error

    Details

      Description

      Hi,
      In Beta1, when adding a "recommendation" attribute to article class, a fatal error is raised.

      In apache log, i have the following error:

      [Wed Apr 09 10:58:29 2014] [error] [client 192.168.2.103] PHP Parse error:  syntax error, unexpected T_LNUMBER, expecting T_VARIABLE or '$' in /var/www/html/ezpublish5/ezpublish_legacy/extension/ezrecommendation/modules/ezrecommendation/ezrecommendationfunctioncollection.php on line 50, referer: http://ezp5.paulo/ezflow_site_admin/class/edit/16/(language)/eng-GB
      [Wed Apr 09 10:58:29 2014] [error] [client 192.168.2.103] PHP Stack trace:, referer: http://ezp5.paulo/ezflow_site_admin/class/edit/16/(language)/eng-GB
      [Wed Apr 09 10:58:29 2014] [error] [client 192.168.2.103] PHP   1. {main}() /var/www/html/ezpublish5/web/index.php:0, referer: http://ezp5.paulo/ezflow_site_admin/class/edit/16/(language)/eng-GB
      [Wed Apr 09 10:58:29 2014] [error] [client 192.168.2.103] PHP   2. eZ\\Bundle\\EzPublishCoreBundle\\HttpCache->handle() /var/www/html/ezpublish5/web/index.php:77, referer: http://ezp5.paulo/ezflow_site_admin/class/edit/16/(language)/eng-GB
      [Wed Apr 09 10:58:29 2014] [error] [client 192.168.2.103] PHP   3. Symfony\\Component\\HttpKernel\\HttpCache\\HttpCache->handle() /var/www/html/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishCoreBundle/HttpCache.php:36, referer: http://ezp5.paulo/ezflow_site_admin/class/edit/16/(language)/eng-GB
      [Wed Apr 09 10:58:29 2014] [error] [client 192.168.2.103] PHP   4. eZ\\Bundle\\EzPublishCoreBundle\\HttpCache->invalidate() /var/www/html/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php:189, referer: http://ezp5.paulo/ezflow_site_admin/class/edit/16/(language)/eng-GB
      [Wed Apr 09 10:58:29 2014] [error] [client 192.168.2.103] PHP   5. Symfony\\Component\\HttpKernel\\HttpCache\\HttpCache->invalidate() /var/www/html/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishCoreBundle/HttpCache.php:57, referer: http://ezp5.paulo/ezflow_site_admin/class/edit/16/(language)/eng-GB
      [Wed Apr 09 10:58:29 2014] [error] [client 192.168.2.103] PHP   6. Symfony\\Component\\HttpKernel\\HttpCache\\HttpCache->pass() /var/www/html/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php:260, referer: http://ezp5.paulo/ezflow_site_admin/class/edit/16/(language)/eng-GB
      [Wed Apr 09 10:58:29 2014] [error] [client 192.168.2.103] PHP   7. Symfony\\Bundle\\FrameworkBundle\\HttpCache\\HttpCache->forward() /var/www/html/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php:243, referer: http://ezp5.paulo/ezflow_site_admin/class/edit/16/(language)/eng-GB
      [Wed Apr 09 10:58:29 2014] [error] [client 192.168.2.103] PHP   8. Symfony\\Component\\HttpKernel\\HttpCache\\HttpCache->forward() /var/www/html/ezpublish5/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/HttpCache/HttpCache.php:60, referer: http://ezp5.paulo/ezflow_site_admin/class/edit/16/(language)/eng-GB
      [Wed Apr 09 10:58:29 2014] [error] [client 192.168.2.103] PHP   9. eZ\\Bundle\\EzPublishCoreBundle\\Kernel->handle() /var/www/html/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php:472, referer: http://ezp5.paulo/ezflow_site_admin/class/edit/16/(language)/eng-GB
      [Wed Apr 09 10:58:29 2014] [error] [client 192.168.2.103] PHP  10. Symfony\\Component\\HttpKernel\\Kernel->handle() /var/www/html/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishCoreBundle/Kernel.php:67, referer: http://ezp5.paulo/ezflow_site_admin/class/edit/16/(language)/eng-GB
      [Wed Apr 09 10:58:29 2014] [error] [client 192.168.2.103] PHP  11. Symfony\\Component\\HttpKernel\\DependencyInjection\\ContainerAwareHttpKernel->handle() /var/www/html/ezpublish5/ezpublish/bootstrap.php.cache:2249, referer: http://ezp5.paulo/ezflow_site_admin/class/edit/16/(language)/eng-GB
      [Wed Apr 09 10:58:29 2014] [error] [client 192.168.2.103] PHP  12. Symfony\\Component\\HttpKernel\\HttpKernel->handle() /var/www/html/ezpublish5/ezpublish/bootstrap.php.cache:2970, referer: http://ezp5.paulo/ezflow_site_admin/class/edit/16/(language)/eng-GB
      [Wed Apr 09 10:58:29 2014] [error] [client 192.168.2.103] PHP  13. Symfony\\Component\\HttpKernel\\HttpKernel->handleRaw() /var/www/html/ezpublish5/ezpublish/bootstrap.php.cache:2841, referer: http://ezp5.paulo/ezflow_site_admin/class/edit/16/(language)/eng-GB
      [Wed Apr 09 10:58:29 2014] [error] [client 192.168.2.103] PHP  14. call_user_func_array() /var/www/html/ezpublish5/ezpublish/bootstrap.php.cache:2867, referer: http://ezp5.paulo/ezflow_site_admin/class/edit/16/(language)/eng-GB
      [Wed Apr 09 10:58:29 2014] [error] [client 192.168.2.103] PHP  15. eZ\\Bundle\\EzPublishLegacyBundle\\Controller\\LegacyKernelController->indexAction() /var/www/html/ezpublish5/ezpublish/bootstrap.php.cache:2867, referer: http://ezp5.paulo/ezflow_site_admin/class/edit/16/(language)/eng-GB
      [Wed Apr 09 10:58:29 2014] [error] [client 192.168.2.103] PHP  16. eZ\\Publish\\Core\\MVC\\Legacy\\Kernel->run() /var/www/html/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishLegacyBundle/Controller/LegacyKernelController.php:88, referer: http://ezp5.paulo/ezflow_site_admin/class/edit/16/(language)/eng-GB
      [Wed Apr 09 10:58:29 2014] [error] [client 192.168.2.103] PHP  17. ezpKernel->run() /var/www/html/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Legacy/Kernel.php:127, referer: http://ezp5.paulo/ezflow_site_admin/class/edit/16/(language)/eng-GB
      [Wed Apr 09 10:58:29 2014] [error] [client 192.168.2.103] PHP  18. ezpKernelWeb->run() /var/www/html/ezpublish5/ezpublish_legacy/kernel/private/classes/ezpkernel.php:53, referer: http://ezp5.paulo/ezflow_site_admin/class/edit/16/(language)/eng-GB
      [Wed Apr 09 10:58:29 2014] [error] [client 192.168.2.103] PHP  19. ezpKernelWeb->dispatchLoop() /var/www/html/ezpublish5/ezpublish_legacy/kernel/private/classes/ezpkernelweb.php:332, referer: http://ezp5.paulo/ezflow_site_admin/class/edit/16/(language)/eng-GB
      [Wed Apr 09 10:58:29 2014] [error] [client 192.168.2.103] PHP  20. eZModule->run() /var/www/html/ezpublish5/ezpublish_legacy/kernel/private/classes/ezpkernelweb.php:803, referer: http://ezp5.paulo/ezflow_site_admin/class/edit/16/(language)/eng-GB
      [Wed Apr 09 10:58:29 2014] [error] [client 192.168.2.103] PHP  21. eZProcess::run() /var/www/html/ezpublish5/ezpublish_legacy/lib/ezutils/classes/ezmodule.php:1794, referer: http://ezp5.paulo/ezflow_site_admin/class/edit/16/(language)/eng-GB
      [Wed Apr 09 10:58:29 2014] [error] [client 192.168.2.103] PHP  22. eZProcess->runFile() /var/www/html/ezpublish5/ezpublish_legacy/lib/ezutils/classes/ezprocess.php:21, referer: http://ezp5.paulo/ezflow_site_admin/class/edit/16/(language)/eng-GB
      [Wed Apr 09 10:58:29 2014] [error] [client 192.168.2.103] PHP  23. include() /var/www/html/ezpublish5/ezpublish_legacy/lib/ezutils/classes/ezprocess.php:46, referer: http://ezp5.paulo/ezflow_site_admin/class/edit/16/(language)/eng-GB
      [Wed Apr 09 10:58:29 2014] [error] [client 192.168.2.103] PHP  24. eZTemplate->fetch() /var/www/html/ezpublish5/ezpublish_legacy/kernel/class/edit.php:817, referer: http://ezp5.paulo/ezflow_site_admin/class/edit/16/(language)/eng-GB
      [Wed Apr 09 10:58:29 2014] [error] [client 192.168.2.103] PHP  25. eZTemplate->executeCompiledTemplate() /var/www/html/ezpublish5/ezpublish_legacy/lib/eztemplate/classes/eztemplate.php:529, referer: http://ezp5.paulo/ezflow_site_admin/class/edit/16/(language)/eng-GB
      [Wed Apr 09 10:58:29 2014] [error] [client 192.168.2.103] PHP  26. eZTemplateFileResource->executeCompiledTemplate() /var/www/html/ezpublish5/ezpublish_legacy/lib/eztemplate/classes/eztemplate.php:987, referer: http://ezp5.paulo/ezflow_site_admin/class/edit/16/(language)/eng-GB
      [Wed Apr 09 10:58:29 2014] [error] [client 192.168.2.103] PHP  27. eZTemplateCompiler::executeCompilation() /var/www/html/ezpublish5/ezpublish_legacy/lib/eztemplate/classes/eztemplatefileresource.php:114, referer: http://ezp5.paulo/ezflow_site_admin/class/edit/16/(language)/eng-GB
      [Wed Apr 09 10:58:29 2014] [error] [client 192.168.2.103] PHP  28. eZTemplateCompiler::executeCompilationHelper() /var/www/html/ezpublish5/ezpublish_legacy/lib/eztemplate/classes/eztemplatecompiler.php:404, referer: http://ezp5.paulo/ezflow_site_admin/class/edit/16/(language)/eng-GB
      [Wed Apr 09 10:58:29 2014] [error] [client 192.168.2.103] PHP  29. include() /var/www/html/ezpublish5/ezpublish_legacy/lib/eztemplate/classes/eztemplatecompiler.php:448, referer: http://ezp5.paulo/ezflow_site_admin/class/edit/16/(language)/eng-GB
      [Wed Apr 09 10:58:29 2014] [error] [client 192.168.2.103] PHP  30. eZTemplate->processFunction() /var/www/html/ezpublish5/ezpublish_legacy/var/ezflow_site/cache/template/compiled/edit-31b86d189331f61df1711d9f3976f9ff.php:3601, referer: http://ezp5.paulo/ezflow_site_admin/class/edit/16/(language)/eng-GB
      [Wed Apr 09 10:58:29 2014] [error] [client 192.168.2.103] PHP  31. eZObjectForwarder->process() /var/www/html/ezpublish5/ezpublish_legacy/lib/eztemplate/classes/eztemplate.php:646, referer: http://ezp5.paulo/ezflow_site_admin/class/edit/16/(language)/eng-GB
      [Wed Apr 09 10:58:29 2014] [error] [client 192.168.2.103] PHP  32. eZTemplate->loadURIRoot() /var/www/html/ezpublish5/ezpublish_legacy/kernel/common/ezobjectforwarder.php:703, referer: http://ezp5.paulo/ezflow_site_admin/class/edit/16/(language)/eng-GB
      [Wed Apr 09 10:58:29 2014] [error] [client 192.168.2.103] PHP  33. eZTemplate->compileTemplate() /var/www/html/ezpublish5/ezpublish_legacy/lib/eztemplate/classes/eztemplate.php:788, referer: http://ezp5.paulo/ezflow_site_admin/class/edit/16/(language)/eng-GB
      [Wed Apr 09 10:58:29 2014] [error] [client 192.168.2.103] PHP  34. eZTemplateFileResource->compileTemplate() /var/www/html/ezpublish5/ezpublish_legacy/lib/eztemplate/classes/eztemplate.php:971, referer: http://ezp5.paulo/ezflow_site_admin/class/edit/16/(language)/eng-GB
      [Wed Apr 09 10:58:29 2014] [error] [client 192.168.2.103] PHP  35. eZTemplateCompiler::compileTemplate() /var/www/html/ezpublish5/ezpublish_legacy/lib/eztemplate/classes/eztemplatefileresource.php:101, referer: http://ezp5.paulo/ezflow_site_admin/class/edit/16/(language)/eng-GB
      [Wed Apr 09 10:58:29 2014] [error] [client 192.168.2.103] PHP  36. eZTemplateCompiler::processNodeTransformation() /var/www/html/ezpublish5/ezpublish_legacy/lib/eztemplate/classes/eztemplatecompiler.php:572, referer: http://ezp5.paulo/ezflow_site_admin/class/edit/16/(language)/eng-GB
      [Wed Apr 09 10:58:29 2014] [error] [client 192.168.2.103] PHP  37. eZTemplateCompiler::processNodeTransformationRoot() /var/www/html/ezpublish5/ezpublish_legacy/lib/eztemplate/classes/eztemplatecompiler.php:972, referer: http://ezp5.paulo/ezflow_site_admin/class/edit/16/(language)/eng-GB
      [Wed Apr 09 10:58:29 2014] [error] [client 192.168.2.103] PHP  38. eZTemplateCompiler::processNodeTransformationChild() /var/www/html/ezpublish5/ezpublish_legacy/lib/eztemplate/classes/eztemplatecompiler.php:1028, referer: http://ezp5.paulo/ezflow_site_admin/class/edit/16/(language)/eng-GB
      [Wed Apr 09 10:58:29 2014] [error] [client 192.168.2.103] PHP  39. eZTemplateCompiler::processElementTransformationChild() /var/www/html/ezpublish5/ezpublish_legacy/lib/eztemplate/classes/eztemplatecompiler.php:1116, referer: http://ezp5.paulo/ezflow_site_admin/class/edit/16/(language)/eng-GB
      [Wed Apr 09 10:58:29 2014] [error] [client 192.168.2.103] PHP  40. eZTemplateExecuteOperator->fetchTransform() /var/www/html/ezpublish5/ezpublish_legacy/lib/eztemplate/classes/eztemplatecompiler.php:1299, referer: http://ezp5.paulo/ezflow_site_admin/class/edit/16/(language)/eng-GB
      [Wed Apr 09 10:58:29 2014] [error] [client 192.168.2.103] PHP  41. eZModuleFunctionInfo->preExecute() /var/www/html/ezpublish5/ezpublish_legacy/lib/eztemplate/classes/eztemplateexecuteoperator.php:147, referer: http://ezp5.paulo/ezflow_site_admin/class/edit/16/(language)/eng-GB
      [Wed Apr 09 10:58:29 2014] [error] [client 192.168.2.103] PHP  42. class_exists() /var/www/html/ezpublish5/ezpublish_legacy/lib/ezutils/classes/ezmodulefunctioninfo.php:129, referer: http://ezp5.paulo/ezflow_site_admin/class/edit/16/(language)/eng-GB
      [Wed Apr 09 10:58:29 2014] [error] [client 192.168.2.103] PHP  43. ezpAutoloader::autoload() /var/www/html/ezpublish5/ezpublish_legacy/lib/ezutils/classes/ezmodulefunctioninfo.php:0, referer: http://ezp5.paulo/ezflow_site_admin/class/edit/16/(language)/eng-GB
      

      Steps to reproduce:
      – Install ezpublish beta1 (I used ezflow without demo content package)(make sure to have ezphttprequest extesion and PECL installed)
      – Install ezrecommendation following the instructions
      – Edit the "Article" class
      – Add "Recommendation" attribute

      It's when we add the attribute that the error happens

        Activity

        Show
        Bertrand Dunogier added a comment - Fixed in https://github.com/ezsystems/ezrecommendation/commit/4a187cb4c7d21a2176b0e6c578c9e0bc38f459e2 .
        Hide
        Joao Pingo (Inactive) added a comment -

        QA Approved

        Show
        Joao Pingo (Inactive) added a comment - QA Approved

          People

          • Assignee:
            Unassigned
            Reporter:
            Paulo Nunes (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0 minutes
              0m
              Logged:
              Time Spent - 1 hour, 15 minutes
              1h 15m