Author:
buzzomatic
Version:
1.1.0
Released:
21 November 2011
Category:
Other, and Workflow

New#5: Error when section contains only one field

When having a section with only one filed loading the importer page fails:

Invalid argument supplied for foreach()
/www/htdocs/projekte/nils/infostelle/extensions/xmlimporter/content/content.importers.php line 449

444             foreach ($sections as $section) {
445                 $section_fields = new XMLElement('ol');
446                 $section_fields->setAttribute('class', 'section-fields');
447                 $section_fields->setAttribute('id', 'section-' . $section->get('id'));
448                 
449                 foreach ($section->fetchFields() as $index => $field) {
450                     $field_id = $field->get('id');
451                     $field_name = "fields[fields][{$index}]";
452                     $field_data = null;
453                 

Does your copy have this commit? You may consider pulling directly from master to get it.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details