Feng Forum

Support => Installation problems => : SUTANEJO July 21, 2014, 05:22:55 PM

: error Feng Office 2.6.2.2
: SUTANEJO July 21, 2014, 05:22:55 PM
I just did a new install on a computer with cpanel and centos

Feng Office 2.6.2.2

I installed it on several occasions earlier versions and they worked.

But with this version. After a seemingly normal installation I get empty page and the page log contains:

Achievement login with my admin user, but leaves the empty page


In advance thank you, we are a non-profit organization.


Session "default" started at 2014-07-21T20:18:07+0000
#1 ERROR: Error: Undefined index: dimensions in '/home/formarte/public_html/gestion2014/application/layouts/website.php' on line 509 (error code: 8)
#2 ERROR: Error: Invalid argument supplied for foreach() in '/home/formarte/public_html/gestion2014/application/layouts/website.php' on line 509 (error code: 2)
Time since start: 0.35213923454285 seconds
-------------------------------------------------------------------------------

Session "default" started at 2014-07-21T20:18:13+0000
#1 ERROR: Error: Undefined index: dimensions in '/home/formarte/public_html/gestion2014/application/layouts/website.php' on line 509 (error code: 8)
#2 ERROR: Error: Invalid argument supplied for foreach() in '/home/formarte/public_html/gestion2014/application/layouts/website.php' on line 509 (error code: 2)
Time since start: 0.10121893882751 seconds
-------------------------------------------------------------------------------




sorry for the English is google translator


reviewing the file mentioned in the log meeting

la linea 509     foreach ( $dimensions['dimensions'] AS $dimension ):




og.dimensionPanels = [
   <?php
   $dimensionController = new DimensionController();
   $first = true;
   $dimensions = $dimensionController->get_context();
   foreach ( $dimensions['dimensions'] AS $dimension ):
       if ( $dimension->getOptions(1) && isset($dimension->getOptions(1)->hidden) && $dimension->getOptions(1)->hidden ) {
          continue ;
       }
          
      /* @var $dimension Dimension */
      $title = ( $dimension->getOptions() && isset($dimension->getOptions(1)->useLangs) && ($dimension->getOptions(1)->useLangs) ) ? lang($dimension->getCode()) : $dimension->getName();
      if (!$first) echo ",";
      $first = false;
      
      ?>                     
      {   
         reloadDimensions: <?php echo json_encode( DimensionMemberAssociations::instance()->getDimensionsToReload($dimension->getId()) ) ; ?>,
         xtype: 'member-tree',
         id: 'dimension-panel-<?php echo $dimension->getId() ; ?>',
         dimensionId: <?php echo $dimension->getId() ; ?>,
         dimensionCode: '<?php echo $dimension->getCode() ; ?>',
         dimensionOptions: <?php echo ( $dimension->getOptions() ) ?  $dimension->getOptions() : '""' ; ?>,
         isDefault: '<?php echo (int) $dimension->isDefault() ; ?>',
         title: "<?php echo $title ?>",
         multipleSelection: <?php echo (int)$dimension->getAllowsMultipleSelection() ?>,
         isRoot: <?php echo (int) $dimension->getIsRoot(); ?>,
         requiredObjectTypes: <?php echo json_encode($dimension->getRequiredObjectTypes()) ?>,
         hidden: <?php echo (int) ! $dimension->getIsRoot(); ?>,
         isManageable: <?php echo (int) $dimension->getIsManageable() ?>,
         quickAdd: <?php echo ( $dimension->getOptions(1) && isset($dimension->getOptions(1)->quickAdd) && $dimension->getOptions(1)->quickAdd ) ? 'true' : 'false'  ?>,
               
         minHeight: 10
         //animate: false,
         //animCollapse: false
         
      }   
   <?php endforeach; ?>
];


: Re: error Feng Office 2.6.2.2
: franponce87 October 28, 2014, 03:46:51 PM
Hi Sutanejo,

That is fairly odd. Could be due to the server settings.
Either way, have you been able to install it successfully afterwards? Have you tried with the latest version available?

Best,
Francisco