[Ultimate Branding] PHP error reported in Ultimat Branding plugin

The following error is being reported in Ultimate Branding
Please advised
Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/vhosts/platinum-discos.co.uk/httpdocs/wp-content/plugins/ultimate-branding/ultimate-branding-files/classes/class.ub.helper.php on line 677

  • Ash
    • WordPress Hacker

    Hello joe

    I can't replicate the error on my site though, but looking at code it seems that the error can appear. So, I am marking this as a bug and reporting to the developer, hopefully very soon the issue will be fixed and an update will be released.

    For now, as a workaround, would you please go to /wp-content/plugins/ultimate-branding/ultimate-branding-files/classes/class.ub.helper.php on line 676 and replace

    $v = $data['image'];


    $v = ( array ) $data['image'];

    Let us know if that works for you. Have a nice day!


Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.