Posted by SangersDrupalDude on January 13, 2012 at 10:05am
2 followers
| Project: | Apache Solr Search Integration |
| Version: | 6.x-3.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | minor |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
* Warning: Invalid argument supplied for foreach() in theme_table() (line 1854 of /www//htdocs/includes/theme.inc).
* Notice: Undefined variable: cells in theme_table() (line 1866 of /www//htdocs/includes/theme.inc).
Comments
#1
Could you give us more info? Which path etc?
#2
Hi,
Seems to be when I go from
admin/config/search/apachesolr
to
/admin/config/search/apachesolr/search-pages
(with readonly mode?)
Stephen :)
#3
Can you see if this fixes it?
#4
Hi,
Have debugged the offending code on admin/config/search/apachesolr:
function theme_table($variables) {drupal_set_message('variables<pre>'.htmlspecialchars(print_r($variables,1)).'</pre>');
......
The format of "Operating in read-only mode; updates are disabled.", does not look the same as the other rows...
variables
Array
(
[header] => Array
(
[0] => type
[1] => value
)
[rows] => Array
(
[readonly] => Operating in read-only mode; updates are disabled.
[0] => Array
(
[0] => Indexed
[1] => 95 Items
)
[1] => Array
(
[0] => Remaining
[1] => 0 items (100% has been sent to the server)
)
#5
Changing this line to a drupal_set_message fixes the issue
#6
You should probably clear cache and refresh the page twice
#7
Committed to 7.x
#8
Committed for 6.x-3.x
#9