*  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).
CommentFileSizeAuthor
#3 1403810-3.patch605 bytesnick_vh

Comments

nick_vh’s picture

Status: Active » Postponed (maintainer needs more info)

Could you give us more info? Which path etc?

stephenrobinson’s picture

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 :)

nick_vh’s picture

Status: Active » Needs review
StatusFileSize
new605 bytes

Can you see if this fixes it?

stephenrobinson’s picture

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)
                )
stephenrobinson’s picture

Changing this line to a drupal_set_message fixes the issue

nick_vh’s picture

You should probably clear cache and refresh the page twice

nick_vh’s picture

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

Committed to 7.x

nick_vh’s picture

Status: Patch (to be ported) » Fixed

Committed for 6.x-3.x

nick_vh’s picture

Status: Fixed » Closed (fixed)