Uploaded image for project: 'Planet4'
  1. Planet4
  2. PLANET-4683

ErrorException: Warning: Invalid argument supplied for foreach()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Should have Should have
    • 2.18
    • 1
    • Block: Covers
    • Sprint #119

      Sentry Issue: PLANET4-C

      ErrorException: Warning: Invalid argument supplied for foreach()
        File "/wp-content/plugins/planet4-plugin-gutenberg-blocks/classes/blocks/class-covers.php", line 302, in P4GBKS\Blocks\Covers::populate_posts_for_campaigns
          foreach ( $tags as $tag ) {
        File "/wp-content/plugins/planet4-plugin-gutenberg-blocks/classes/blocks/class-covers.php", line 116, in P4GBKS\Blocks\Covers::prepare_data
          $covers = $this->populate_posts_for_campaigns( $fields );
        File "/wp-content/plugins/planet4-plugin-gutenberg-blocks/classes/blocks/class-base-block.php", line 33, in P4GBKS\Blocks\Base_Block::render
          $data = $this->prepare_data( $attributes );
        File "/wp-includes/class-wp-block-type.php", line 109, in WP_Block_Type::render
          return (string) call_user_func( $this->render_callback, $attributes, $content );
        File "/wp-includes/blocks.php", line 487, in render_block
          $block_content = $block_type->render( $block['attrs'], $block_content );
      ...
      (22 additional frame(s) were not displayed)
      

            pvincent Pieter Vincent
            nroussos Nikos Roussos
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: