• Hi Maeve,
    Hope you are well.
    I run a number of sites for my businesses and use Shapely theme incorporating sticky buttons. Over the last few days on the site: http://www.markaldridge.co.uk
    I’ve been getting a number of ‘error messages’ at the base of the home page.
    I investigated this and decided that the best thing to do was to update the plug in. This eradicated the messages from the bottom of the site, but transferred a number of messages to the top of the home page, including this:

    Warning: count(): Parameter must be an array or an object that implements Countable in /var/sites/m/markaldridge.co.uk/public_html/wp-content/plugins/sticky-side-buttons/ssb-main.php on line 217

    More worryingly, after the update I was unable to access the admin login for the site.

    I contacted my host – TSO HOST – who disabled the messages in the background and managed to restore access to administration of the site, but they are concerned that this might be a temporary fix and that the gremlin might resurface. They have recommended that I contact you and ask for your advice so this does not happen again.

    Thanks
    Best wishes
    Mark

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Maeve Lander

    (@enigmaweb)

    Looks like it needs to be updated for PHP 7.2+

    In /wp-content/plugins/sticky-side-buttons/ssb-main.php replace line 217 with:

    if (is_array($buttons['btns']))
    	$btns_count = count($buttons['btns']);
    else
    	$btns_count = 0;

    This should resolve the PHP warning you’re seeing. Please test to confirm, and I can release that as a patch to the plugin for everyone.

    Thanks for your help.

Viewing 1 replies (of 1 total)
  • The topic ‘PLEASE READ MY MESSAGE about: Error messages preventing access to admin pages’ is closed to new replies.