I am experiencing the following error message before the header of my site and in the icon section of the plugin (Agency Version)
Warning: Invalid argument supplied for foreach() in /websites/br/bravehealthandfitness.com.au/wp-content/plugins/bb-plugin/classes/class-fl-builder-icons.php on line 155.
i got the same error message (…/bb-plugin/classes/class-fl-builder-icons.php on line 155) in my installation.
Using PHP Version 5.3.28 and MySQL Version 5.5.40
Can you give feedback when you´ve fixed it please?
You’re all set. I’ve found and fixed the issue on your site.
Alexander, it sounds like your site is having the same issue. If you send me temporary admin access, I can do the same for you. I don’t think we’ll have an update out with a fix until next week.
Sorry about that. We’ll be releasing an update Sunday with the fix, but in the meantime, you can add the following code after line 152 of classes/class-fl-builder-icons.php.
Add this code…
// Make sure we have an array.
if( ! is_array( $folders ) ) {
return;
}
Between these two lines…
$folders = glob( $upload_info['path'] . '*' );
// Loop through uploaded sets.
foreach ( $folders as $folder ) {