• After upgrading to PHP 7.x you will receive an error. The simple fix is to modify /wp-content/plugins/hit-counter-max/image.php line 67: Change split to explode

    Line 67 old: $exclude_list = split(“\n”,get_option(‘wphcu_exclude_ips
    Line 67 new: $exclude_list = explode(“\n”,get_option(‘wphcu_exclude_ips

    I have verified this fix is now working on a clients site using PHP 7.3

    P.S. you can add more digits by changing line 86
    Line 86 old: for ($i = 0; $i < (4 – strlen($hits)); $i++) {
    Line 86 new: for ($i = 0; $i < (6 – strlen($hits)); $i++) {

Viewing 1 replies (of 1 total)
  • Benjamin,

    Excellent suggestions. Except I’m still getting the following at the top of my webpage after the latest upgrade to WordPress:

    Deprecated: Function create_function() is deprecated in /var/www/wp-content/plugins/hit-counter-max/image.php on line 186

    Do you know a fix for this?

Viewing 1 replies (of 1 total)
  • The topic ‘Manual fix for PHP 7.X’ is closed to new replies.