so basically i get this errors when i install panels frame:
Notice: Undefined index: sites/all/modules/contrib/panels/js/panels-base.js in panels_frame_js_alter() (line 116 of ..\sites\all\modules\contrib\panels_frame\panels_frame.module).
Notice: Undefined index: weight in panels_frame_js_alter() (line 116 of ..\sites\all\modules\contrib\panels_frame\panels_frame.module).
Notice: Undefined index: scope in drupal_get_js() (line 4309 of ..\includes\common.inc).
Notice: Undefined index: sites/all/modules/contrib/panels/js/panels-base.js in panels_frame_js_alter() (line 116 of ..\sites\all\modules\contrib\panels_frame\panels_frame.module).
Notice: Undefined index: weight in panels_frame_js_alter() (line 116 of ..\sites\all\modules\contrib\panels_frame\panels_frame.module).
Notice: Undefined index: scope in drupal_get_js() (line 4309 of ..\includes\common.inc).
Panels version : version = "7.x-3.5"
CTools version : version = "7.x-1.7"
Panels Frame : version = "7.x-1.0-alpha4"
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | panels_frame_undefined_index-2497327-6.patch | 461 bytes | sergiuteaca |
| #3 | panels_frame-conflicting_js_file-2497327-2.patch | 770 bytes | pushamd |
| #1 | panels_frame-undefined_index-2497327-1.patch | 630 bytes | pushamd |
Comments
Comment #1
pushamd commentedThe solution that i found for the issue :
Comment #2
helior commentedThanks for your patch PushaMD – while this may resolve the PHP warnings, it may also inadvertently override more properties than we'd want to. Perhaps an alternative would be to first check if
$javascripts[$file]even exists before attempting to add a weight. I believe something like that would be less intrusive. Could you update your patch to reflect this minimal impact?Comment #3
pushamd commentedHere is the correted patch, with the desired modifications.
Comment #4
helior commentedComment #6
sergiuteaca commentedHere is a simplified patch
Comment #7
fox_01 commented#6 works for me
Comment #8
helior commented@sergiuteaca agreed; I had merged essentially the same thing when the issue was closed 3 months ago https://github.com/helior/panels_frame/commit/635a11f55ef3af4c83dae267ab... Thank you for your patch, though!!
Comment #9
helior commentedComment #10
nwom commentedSorry to re-open this again, but 7.x-1.x-dev and 7.x-1.0-alpha4 both do not include the commit above. Was the commit only applied to git?
Comment #12
helior commentedSorry NWOM, but it was only pushed to Github and not Drupal's git repository. It should now appear in 7.x-1.x-dev.