Problem with icon settings.

Hi there

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/ on line 155.

Do you have any clues as to how I fix this.

Thanks in advance


Hi John,

Can you send temporary login info so I can test this out?


[Content Hidden]

Hi Justin,

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?

Many thanks, Alex

Hey John,

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.


[Content Hidden]

Hey Justin


Thanks very much


You’re welcome, John! Dustin, you’re all set as well.


Thanks Justin.

Is this something I could fix? I’m getting it on several of my websites now.

Hey Dustin,

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 ) ) {

Between these two lines…

$folders = glob( $upload_info['path'] . '*' );
// Loop through uploaded sets.
foreach ( $folders as $folder ) {

Let me know if you have any questions.


Excellent. Thank you guys for being so responsive and on top of it.

Had the same problem. Tried to insert code

but this broke the site. The only thing i got were timeouts.

Hey Zdenek,

We just released an update that contains a fix for this. Can you give that a shot?


Hey Justin,
sorry for the delay and many thanks, think last update fixed the issue. It´s working just fine now.
Great and innovative work by the way :slight_smile:

Hi Alexander,

Thanks! I’m glad to hear it’s working again.