Title: PHP 7 Compatibility
Last modified: September 1, 2016

---

# PHP 7 Compatibility

 *  [joshrodgers](https://wordpress.org/support/users/joshrodgers/)
 * (@joshrodgers)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/php-7-compatibility-68/)
 * Hey there,
 * So, this plugin hasn’t been updated in a couple of years, but I have it working
   on two of my sites…that is until yesterday. Yesterday I updated my server to 
   PHP 7 and noticed that I had two sites go down. As I was looking through the 
   error logs, the error logs only mentioned `wordpress-hit-counter`:
 * `[22-Jul-2016 15:47:27 UTC] PHP Fatal error: Uncaught Error: Call to undefined
   function split() in /home/joshrodg/public_html/halloffame/wp-content/plugins/
   wordpress-hit-counter/image.php:66`
 * I took a look and found this post: [https://wordpress.org/support/topic/php7-incompatibility-uncaught-error-undefined-function-split?replies=2](https://wordpress.org/support/topic/php7-incompatibility-uncaught-error-undefined-function-split?replies=2)
 * `wordpress-hit-counter` has two main files: `hitcounter_menu.php` and `image.
   php`…I just did a find and replace…finding split and replacing with explode. 
   After making the change, everything returned to normal and my sites came back
   up!
 * I don’t normally like editing plugin files directly, but because the code hasn’t
   been updated in two years, I’m pretty sure it’s no longer being actively maintained
   by it’s author…and…there are literally only two files that need to be adjusted.
 * I hope this helps someone out there!
 * Thanks,
    Josh
 * [https://wordpress.org/plugins/wordpress-hit-counter/](https://wordpress.org/plugins/wordpress-hit-counter/)

The topic ‘PHP 7 Compatibility’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wordpress-hit-counter.svg)
 * [WordPress Hit Counter](https://wordpress.org/plugins/wordpress-hit-counter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-hit-counter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-hit-counter/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-hit-counter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-hit-counter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-hit-counter/reviews/)

## Tags

 * [compatibility](https://wordpress.org/support/topic-tag/compatibility/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * 0 replies
 * 1 participant
 * Last reply from: [joshrodgers](https://wordpress.org/support/users/joshrodgers/)
 * Last activity: [9 years, 10 months ago](https://wordpress.org/support/topic/php-7-compatibility-68/)
 * Status: not a support question