Manual fix for PHP 7.X
-
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_ipsI 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)
Viewing 1 replies (of 1 total)
- The topic ‘Manual fix for PHP 7.X’ is closed to new replies.