Just enadble Panels, together with Views and CTools (all latest devs) on a fresh D7b1 and got the following notice when I opened the Structure/Panels page:

Notice: Undefined offset: 0 in contextual_preprocess() (line 100 of [path]\modules\contextual\contextual.module).

It happens every time.

Comments

apmsooner’s picture

Yup, same error here for me also.

deepbluesolutions’s picture

same error here, using the latest dev release of d7 and the latest release of views and panels
Notice: Undefined offset: 0 in contextual_preprocess() (line 100 of [path]/modules/contextual/contextual.module)

mandreato’s picture

Me too (italian localization)

Lubas’s picture

Idem dito.

garry79’s picture

hmm, me as well! is there a way i can fix this or are there any compatible drupal 7x versions?

merlinofchaos’s picture

Project: Panels » Drupal core
Version: 7.x-3.x-dev » 7.x-dev
Component: Code » contextual.module
Status: Active » Needs review
StatusFileSize
new667 bytes

This turns out to be a bug in core.

What's going on here is that the 'panels_dashboard' theme has no arguments, and contextual.module does not seem to believe that's actually possible, and throws a notice trying to access a non-existent argument. Clearly it's very rare.

The attached patch fixes this.

mcncyo’s picture

I tested the patch and it work on my test site.

triDE’s picture

I tested the patch and it work on my test localhost.

deepbluesolutions’s picture

yes, fix supplied in #6, works for me too. thanks Merlinofchaos

merlinofchaos’s picture

Status: Needs review » Reviewed & tested by the community

Two positive reviews, and it's a very simple 1 line patch. Taking a risk and marking this RTBC.

dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to CVS HEAD. Thanks.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.