Error message in log: Warning: Invalid argument supplied for foreach() in Drupal\charts\Plugin\views\style\ChartsPluginStyleChart->defineOptions() from line 107 of version: '8.x-3.0-beta3'.

CommentFileSizeAuthor
#2 charts-invalid-argument-3071481-2.patch842 bytesjayelless

Comments

jlscott created an issue. See original summary.

jayelless’s picture

StatusFileSize
new842 bytes

The problem is that sometimes the $defaults value is NULL. Patch to detect this and skip the foreach loop attached.

rajab natshah’s picture

Thanks for the patch :)
+1

  • andileco committed 2af77d6 on 8.x-3.x authored by jlscott
    Issue #3071481 by jlscott: Warning: Invalid argument supplied for...
andileco’s picture

Status: Active » Fixed

Thanks for the patch! Committed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.