Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
On a fresh install it gives:
warning: Invalid argument supplied for foreach() in /usr/drupal/sites/all/modules/node_gallery_hierarchy/node_gallery_hierarchy.inc on line 28.
warning: Invalid argument supplied for foreach() in /usr/drupal/sites/all/modules/node_gallery_hierarchy/node_gallery_hierarchy.inc on line 44.
warning: uasort() expects parameter 1 to be array, null given in /usr/drupal/sites/all/modules/node_gallery_hierarchy/node_gallery_hierarchy.inc on line 64.
warning: Invalid argument supplied for foreach() in /usr/drupal/sites/all/modules/node_gallery_hierarchy/node_gallery_hierarchy.inc on line 66.
warning: Invalid argument supplied for foreach() in /usr/drupal/sites/all/modules/node_gallery_hierarchy/node_gallery_hierarchy.inc on line 185.
Comments
Comment #1
yngens CreditAttribution: yngens commentedThe error is gone after I uploaded first image, so it is produced only when galleries are empty. Still a bit confusing for new installers.
Comment #2
scroogie CreditAttribution: scroogie commentedThanks for the report. Which version of Node Gallery exactly are you using?
Comment #3
yngens CreditAttribution: yngens commentedI tried to set this with Node Gallery 6.x-3.0-beta2 and Views 6.x-3.x-dev
Comment #4
scroogie CreditAttribution: scroogie commentedThis is fixed in the latest dev version. It was just a case of some special casing when there are no galleries at all, yet.