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

Status:active» postponed (maintainer needs more info)

Could you give us more info? Which path etc?

#2

Status:postponed (maintainer needs more info)» active

Hi,
Seems to be when I go from
admin/config/search/apachesolr
to
/admin/config/search/apachesolr/search-pages
(with readonly mode?)
Stephen :)

#3

Status:active» needs review

Can you see if this fixes it?

AttachmentSizeStatusTest resultOperations
1403810-3.patch605 bytesIdlePASSED: [[SimpleTest]]: [MySQL] 397 pass(es).View details

#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

Version:7.x-1.0-beta15» 6.x-3.x-dev
Status:needs review» patch (to be ported)

Committed to 7.x

#8

Status:patch (to be ported)» fixed

Committed for 6.x-3.x

#9

Status:fixed» closed (fixed)
nobody click here