3 users online. Create an account or sign in to join them.Users

Author:
nickdunn
Version:
1.4.5
Released:
8 May 2011
Category:
Workflow

Closed#1: Symphony error if empty sections exist

In Symphony 2.0.7, a Symphony Warning will be displayed (on the diagram page) if any section has no fields:

Invalid argument supplied for foreach()
    /var/www/www.stage.meistro.de/extensions/entity_diagram/content/content.diagram.php line 58

    53              // get list of fields
    54              $fields = $section->fetchFields();
    55              
    56              $field_list = new XMLElement("ul");
    57              
    58              foreach($fields as $field) {
    59                  
    60                  // get array of properties for this field (ID, type, name etc.)
    61                  $field_properties = $field->get();
    62                  

You have sections without any fields in? ;-)

I’m getting something similar based on no sections yet…

Invalid argument supplied for foreach()
    /home/o112290/public_html/develop/extensions/entity_diagram/extension.driver.php line 182

    177         
    178         $sm = new SectionManager($this->_Parent);
    179         $sections = $sm->fetch(NULL, 'ASC', 'name');
    180         
    181         $selected = true;
    182         foreach($sections as $section) {
    183             $options[] = array($section->get('id'), $selected, $section->get('name'));
    184         }
    185         
    186         $label = Widget::Label(

Fresh install, no sections created yet, I’ve just turned on all the extensions I plan to use and got this…

I’m getting something similar based on no sections yet…

Invalid argument supplied for foreach()
    /home/o112290/public_html/develop/extensions/entity_diagram/extension.driver.php line 182

    177         
    178         $sm = new SectionManager($this->_Parent);
    179         $sections = $sm->fetch(NULL, 'ASC', 'name');
    180         
    181         $selected = true;
    182         foreach($sections as $section) {
    183             $options[] = array($section->get('id'), $selected, $section->get('name'));
    184         }
    185         
    186         $label = Widget::Label(

Fresh install, no sections created yet, I’ve just turned on all the extensions I plan to use and got this…

Whoops! Sorry for the double post!

My error only happens when trying to go to the Preferences Panel…

Fixed in 1.4.3.

This issue is closed.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.2 or above
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.0 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details