Undefined variable: responsive in include() (line 23 of /sites/all/themes/bootstrap/templates/views/views-view-table.tpl.php).

This bug has already been fixed in the patch provided here:
Undefined variable: responsive in include() (line 23 of /srv/www/biopama/sites/all/themes/bootstrap/templates/views/views-view-table.tpl.php).

While that ticket was closed, the patch never ended up being committed. Can the patch get committed?

Comments

AgentJay created an issue. See original summary.

markhalliwell’s picture

Status: Active » Closed (cannot reproduce)

I have never seen this error, nor is possible if the theme was properly installed.

Both bootstrap_preprocess_table() and bootstrap_preprocess_views_view_table() invoke _bootstrap_table_add_classes() which adds this variable for the templates.

AgentJay’s picture

Status: Closed (cannot reproduce) » Active

I have bootstrap and no less than 10 sub-themes, only some sub-themes get the error. On further investigation the issue appears to come from using templates. If you create a view template (for a view with table format output) then the error pops up.

If the template is removed it's business as usual, no errors. I need to use templates, the error is harmless, but it's eating up the logs. I'd appreciate it if the patch could be committed.

Cheers.

markhalliwell’s picture

Status: Active » Closed (cannot reproduce)

As stated above, this variable should always be defined. The only reason it wouldn't be is if the base theme isn't actually enabled (thus the preprocess hooks aren't called). See the "warning" section on http://drupal-bootstrap.org/api/bootstrap/docs%21Getting-Started.md/grou....

sano’s picture

What helped me to resolve this issue is to disable the Bootstrap theme (drupal showed it enabled) and then enable it again.