Closed (fixed)
Project:
Skinr
Version:
6.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Sep 2009 at 17:36 UTC
Updated:
9 Dec 2009 at 06:40 UTC
invalid argument supplied for foreach() in /var/www/sites/xxxxxx/drupal-6.14/sites/all/modules/skinr/includes/handlers.inc on line 72
I took a quick look and didn't see anything obvious. This is the latest dev version Sept 28
Comments
Comment #1
moonray commentedNeed some more info on this one. Which themes were enabled at the time the error occurred? Were any of them non-Skinr themes? Also, what were you doing when the error occurred?
Comment #2
jacineI'm going to assume this is fixed and close this considering we have not been able to reproduce and no one else has mentioned it. Feed free to reopen with more information if you come across it again.
Comment #3
joeyonline commentedActually is still occuring on the current live release (6.x-1.0).
I'm using the base AdaptiveTheme and when I go to make a change to a block (/admin/build/block) and then save I receive the error "warning: Invalid argument supplied for foreach() in /home/my_site_domain/dev1/sites/all/modules/skinr/includes/handlers.inc on line 72."
Adaptive Theme Info:
version = "6.x-1.5"
core = "6.x"
project = "adaptivetheme"
When the error occurs the save fails and you have to try to save again. Most times it works but I believe I have seen the second attempt save fail as well from time to time.
// Line 72 in handlers.inc :
// And below is a dump of my $form_state array captured just before the foreach:
Hope this helps.
Thanks
Comment #4
jacineThanks for the information. I just spent that last hour trying to reproduce this and I'm not having any luck. Can you answer please provide us with this information?
1 - Which themes were enabled at the time the error occurred?
2 - Were any of them non-Skinr themes?
Comment #5
joeyonline commentedIt was just the base AdaptiveTheme (version 6.x-1.5) that I downloaded last week from the Drupal.org website at (http://drupal.org/project/adaptivetheme).
I did just notice though while visiting the page that a newer version is now out (6.x-1.6). Should I give that a try for this problem?
Oh Also: in addition to the blocks page I mentioned earlier, I just experienced it on the Content Types (/admin/content/types) page as well. Just passing it along.
Thanks
Comment #6
jacineThanks Joey,
Yes, that would be very helpful. Please try the newer version with this patch applied to AT's .info file: http://drupal.org/node/609758.
Comment #7
joeyonline commentedThanks Jacine - I'll let you know how it turns out.
Comment #8
moonray commentedIt seems to me this might be happening due to an incompatibility with a module.
The $form_state that was posted in #3 shows no $form_state['values']['skinr_settings'], which means that something removed it in validation perhaps?
Comment #9
joeyonline commentedThanks Jacine ( &moonray ),
The base Adaptive Theme update(6.x-1.6) along with your patch (Jacine - http://drupal.org/node/609758) seems to have done the trick. I'm seeing the Skinr functionality working and no errors on save now.
I'll keep an eye on it and let you guys know if it pops up again.
Thanks Again,
Joey
Comment #10
moonray commented