Problem/Motivation

I am getting a warning and undefined notices due $plugin value of null on Line: 128 of views_isotope.module views_isotope_get_config_json function.

Warning: Invalid argument supplied for foreach() in views_isotope_get_config_json() (line 150 of /var/www/html/sites/all/modules/contrib/views_isotope/views_isotope.module).
Notice: Trying to get property of non-object in views_isotope_addjs() (line 277 of /var/www/html/sites/all/modules/contrib/views_isotope/views_isotope.module).
Notice: Trying to get property of non-object in views_isotope_addjs() (line 278 of /var/www/html/sites/all/modules/contrib/views_isotope/views_isotope.module).
Warning: Invalid argument supplied for foreach() in views_isotope_addjs() (line 278 of /var/www/html/sites/all/modules/contrib/views_isotope/views_isotope.module).

Proposed resolution

Find out :

  1. What circumstances does plugin return null, is this ever a valid case for this?
  2. If it should proceed to execute drupal_json_encode($attributes) even if no plugin is used and if not, bail early with error if appropriate

Remaining tasks

As above

User interface changes

N/A

API changes

N/A

Data model changes

N/A

Comments

mccrodp created an issue. See original summary.

mccrodp’s picture

Issue summary: View changes

Adding warnings & notices.

mccrodp’s picture

Title: ctools_export_crud_load can return null for $plugin in views_isotope_get_config_json » Warnings and Notices as ctools_export_crud_load can return null for $plugin in views_isotope_get_config_json

Update issue title.