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

Module content does not return moduleResult array

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 3.10.0beta1
    • 3.10.0alpha1
    • None
    • Operating System: N/A
      PHP Version: N/A
      Database and version: N/A
      Browser (and version): N/A

    Description

      Content View Cache does not return an array as expected in index.php

      From: index.php (Around line, 989)

      if ( !is_array( $moduleResult ) )
      {
      eZDebug::writeError( 'Module did not return proper result: ' . $module->attribute( 'name' ), 'index.php' );
      $moduleResult = array();
      $moduleResult['content'] = false;
      }

      From: kernel/content/view.php (Around line, 210)

      else

      { $cacheFileArray = array( 'cache_dir' => false, 'cache_path' => false ); $args = compact( $localVars ); $data = eZNodeviewfunctions::contentViewGenerate( false, $args ); // the false parameter will disable generation of the 'binarydata' entry return $data['content']; // Return the $Result array // return $data; // Should instead return the $Result array instead of the above line. }

      }

      // Looking for some view-cache code?
      // Try the eZNodeviewfunctions class for enlightenment.
      ?>

      • Related Diff between the latest addition to the file kernel/content/view.php,
        http://pubsvn.ez.no/viewcvs/trunk/kernel/content/view.php?root=nextgen&rev=19175&sortby=date&r2=19175&r1=18411
        Steps to reproduce

        1. Create a folder
        2. Create a restricted section
        3. Assign restricted section to folder
        4. Add exclusion of restricted section to anonymous role content read policy
        5. Clear all cache
        7 Enable all debug output and disable all cache (specifically ViewCache)
        6. Load url of folder in public site as anonymous user
        7. Notice the login form is not included in $module_result.content output in pagelayout.tpl and the following debug output errors ...

      Error: error/view.php Aug 09 2007 01:03:15

      Error ocurred using URI: /About/Messages/Folder

      Warning: Insufficient permissions Aug 09 2007 01:03:15

      Function required:
      Module : content
      Function : read
      ClassID : 1
      MainNodeID : 276
      Policies that didn't match:
      PolicyID : p_369
      Limitation : Section
      Required : 1, 2, 3, 4, 5, 6,
      PolicyID : p_374
      Limitation : Class
      Required : 29, 30, 31, 32, 33, 40,

      Timing: Aug 09 2007 01:11:57

      Module end 'content'

      Error: index.php Aug 09 2007 01:11:57

      Module did not return proper result: content

      Timing: Aug 09 2007 01:11:57

      End

      Attachments

        Activity

          People

            a29ca475-2ac3-469b-95ea-e37ca79eae29@accounts.ibexa.co Sergiy Pushchin
            bc bc
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: