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.
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 :
- What circumstances does plugin return null, is this ever a valid case for this?
- 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
Comment #2
mccrodp CreditAttribution: mccrodp as a volunteer and at X-Team commentedAdding warnings & notices.
Comment #3
mccrodp CreditAttribution: mccrodp as a volunteer and at X-Team commentedUpdate issue title.