Announcement

Symphony's issue tracker has been moved to Github.

Issues are displayed here for reference only and cannot be created or edited.

Browse

Closed#208: Error when Selecting Datasources

Just got this:

Invalid argument supplied for foreach()
/{stuff}/symphony/content/content.blueprintsdatasources.php line 572

567             if(is_array($section_data['fields']) && !empty($section_data['fields'])){
568                 foreach($section_data['fields'] as $input){
569                     $elements = $input->fetchIncludableElements();
570                     
571                     //if(is_array($elements)) {
572                         foreach($elements as $name){
573                             $selected = false;
574
575                             if($fields['source'] == $section_data['section']->get('id') && @in_array($name, $fields['xml_elements'])){
576                                 $selected = true;

Fix is quite simple, uncomment my if(is_array($elements)) before the foreach

This issue is closed.

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