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

Cannot redeclare class eZObjectForwarder in ezflow

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Low
    • Resolution: Fixed
    • Affects Version/s: 5.1
    • Fix Version/s: 5.2-alpha1
    • Component/s: None
    • Labels:
    • Environment:

      eZP 5.1.0 with eZFlow 5.1.0
      PHP 5.3.25 from MacPorts
      MySQL 5.1.68 from MacPorts
      Apache 2.2.24 from MacPorts
      Mac OS X

      Description

      First run after installation was failing with error:

      PHP Fatal error:  Cannot redeclare class eZObjectForwarder in /xxx/yyy/ezp510/ezpublish_legacy/kernel/common/ezobjectforwarder.php on line 18
      

      XDebug output led me to ezpublish_legacy/extension/ezflow/autoloads/eztemplateautoload.php file where commenting line 52 out helped to run eZPublish:

      ...
       48 if ( !function_exists( 'eZPageForwardInit' ) )
       49 {
       50     function eZPageForwardInit()
       51     {
       52         //include_once( 'kernel/common/ezobjectforwarder.php' );
       53         $forward_rules = array(
       54                 'block_edit_gui' => array( 'template_root' => 'block/edit',
       55                                            'input_name' => 'block',
       56                                            'output_name' => 'block',
       57                                            'namespace' => 'ContentAttributeBlockEdit',
       58                                            'attribute_keys' => array( 'type' => array( 'type' ) ),
       59                                            'attribute_access' => array( array( 'edit_template' ) ),
       60                                            'optional_views' => true,
       61                                            'use_views' => 'view' ),
       62                 'block_view_gui' => array( 'template_root' => 'block/view',
      ...
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            jaroslaw.heba@ez.no Jarosław Heba
            Votes:
            0 Vote for this issue
            Watchers:
            1 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 - 10 minutes
                10m