Have been recieving the following:

Notice: Undefined index: #attached in panelizer_panels_build_alter() (line 101 of modules/contrib/panelizer/panelizer.module).

It seems that this notice has started because of the changes in 2688951. I believe that the issue has some roots in the fact I am using workbench moderation so am not 100% sure which module is causing this issue. However I was wondering if there was any reason why a test to see it the '#attached' key exists before accessing the 'library' key.

thoughs?

Aaron

Comments

Gravypower created an issue. See original summary.

Gravypower’s picture

StatusFileSize
new925 bytes

Please see patch with changes suggested in 2688951

Gravypower’s picture

StatusFileSize
new1011 bytes

Had some issues applying original patch so have regenerated it.

Gravypower’s picture

StatusFileSize
new1009 bytes

I will get used to generating patches at some point, trying again. Removed extra {

dsnopek’s picture

Status: Active » Fixed

Looks good thanks! I tested it and everything appeared to work fine.

I made a couple code formatting changes on commit - but it's committed! :-)

Status: Fixed » Closed (fixed)

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

dabbor’s picture

StatusFileSize
new940 bytes
dabbor’s picture

The patch "check-for-build-array-keys-2760051_2.patch" is intended for 8.x-3.0-alpha2 and not the dev version.

In case the composer.json have dependencies that require stable 8.x-3.0-alpha2 version the dev may not be used and patch for 8.x-3.0-alpha2 is required.

dimaboychev’s picture

@dabbor your patch is not for 8.x-3.0-alpha2

patching file panelizer.module
Hunk #1 FAILED at 44.
1 out of 1 hunk FAILED -- saving rejects to file panelizer.module.rej:

The patch that works for 8.x-3.0-alpha2 is #4 check-for-build-array-keys-2760051.patch