Reviewed & tested by the community
Project:
Default config
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Jan 2013 at 02:49 UTC
Updated:
3 Oct 2019 at 03:42 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
liza commentedi also started getting this error message and have no idea why
Comment #2
populist commentedThis may no longer be an issue with the latest version of CTools, but do you have a replication case (i.e. what do you do to get the error?)
Comment #3
sproets commentedJust surfing to admin/modules page gives me the error...
Comment #4
tchopshop commentedI have ctools 7.x-1.3 and it happens when I go to update.php
Comment #5
temkin commentedI have the same issue with ctools 7.x-1.3. Happens to me when I go to update.php.
Let me know if you need more info from me.
Comment #6
timbrandin commentedWe only get this Notice when installing through the UI.
Can't really figure out why drush get's by without showing the notice.. // T
Comment #7
timbrandin commentedHere's a solution that suppresses the notice if the index isn't set. Please correct it if you don't prefer php suppressions in favor of if-isset statements.
Comment #8
dale42Using this configuration:
I can reproduce the problem as follows:
Features Extra Block can be confirmed as the cause by placing the following line of code in the foreach loop at line 411:
if (!array_key_exists('default_filename', $info)) drupal_set_message('<pre>'. print_r($info, 1) .'</pre>');For me this produced:
I'm not sure if the problem is that Default Config expects default_filename to be defined and shouldn't, or if FE Block should be providing a default_filename and isn't.
Comment #9
mixxmac commentedThanks for the info.
I just tried debugging the foreach loop using the same way as @dale42, and it's the currency module that shows up in my case.
Disabling the currency module, or using @timbrandin's code stops the error message from showing up.
I'm using 7.22 (Open Atrium) and get the errors on the admin/modules page...
Comment #10
seanrI'm getting this with FlexSlider Picture (included with the Picture module). Where does the data in the offending array even come from? The FlexSlider Picture module doesn't even use features, so why would it be getting referenced here? The patch in #7 would work, but I'd refer to understand and fix the root cause if possible instead.
Comment #11
bobodrone commentedHere is a another patch that just disregards modules that do not have defined a default_filename.
// bobodrone
Comment #12
barry_fisher commentedThis patch would be my preferred choice of suppression- using !empty() in ternary conditional statement inline with the array key => value.
This for me, was relating to FE Block (part of features_extra). I'm not sure of the ramifications elsewhere but this helped suppress the PHP notice in my case.
Comment #13
barry_fisher commentedI actually had this crop up again on another project and forgot all about it- even though it was a few weeks ago. I'm sure my mind is like a sieve sometimes!
Anyway, I now realise that the patch I previously attached was not relative to the defaultconfig module so I'm reattaching with this corrected.
Can anyone else duplicate this issue and verify this patch works, in the hope it can be committed? You should be able to duplicate this notice error quite easily by running a standard panopoly install and then install the features_extra module- in particular fe_block. Then navigate to the features create/recreate pages.
Comment #14
loopduplicate commentedReallifedesign, thanks :)
Tested and reviewed, looks good!
Cheers, Jeff
Comment #15
revagomes commentedThanks @Reallifedesign!
Worked well for the FE Block issue pointed by @dale42 at #8.
Comment #16
alexbarrett commentedI've encountered this issue while using FE Block as well. The issue is that _ctools_features_get_info() only sets the 'default_filename' item if $schema['export']['api'] is set in hook_schema() (not part of Drupal Core but used by CTools Export API. If you look at fe_block_schema() in fe_block.install you can see that there is no 'api' declaration under 'export'.
The only reference I can find to this is proposed patch to FE Block 3 years ago #1287514: Feature extra block boxes is incompatible with Features > 1.0-beta3 that was never committed.
I'm not familiar enough with the CTools Export API to know if the patch to FE Block is required, or if the bug lies in Default config or FE Block. Anyone have any ideas?
Comment #17
kclarkson commentedThanks @Reallifedesign!
Just git cloned the repository applied the patch and error has gone away.
RTBC
Comment #18
PI_Ron commentedThis notice popped it's head up for me as soon as I enabled fe_block.
Applied the patch to defaultconfig-7.x-1.0-alpha9 fixed the notice.
Thanks :-)
Comment #19
barry_fisher commentedRe-rolling against 7.x-1.0-alpha11
Comment #20
chrisgross commentedPatch #19 does not apply against alpha11. Looks like a whitespace issue. Here's an updated patch.
Comment #21
puregin commentedThe patch at #20 fixes the issue for me. Thanks!
Comment #22
joseph.olstadsubscribing, we needed this too.
PATCH 20 does the job! Thanks!
Comment #23
rahul_sankrit commentedI were facing the same issue :
Fixes for me :
Thanks to patch
https://www.drupal.org/node/1900574#comment-10741516 fixes the issue for me.
Thanks
Comment #24
wylbur commentedAnother successful patch for us using #20.
Comment #25
danielvezaNo commits to this module for years. But might as well add another RTBC. Worked for us.