Hi, thanks for your bug post.
I will fix php 7 errors in the future. PHP 7 however is currently not released in any stable branch of any distro, so its use in the production environment is not yet recommended.
Thread Starter
KTS915
(@kts915)
Thank you.
My host has PHP7 available and WP core has been updated to run on it, so I’m currently trying it out on my localhost test site. You’re right it’s not available with any distro yet (though I believe it will be included in the next editions of Ubuntu and Linux Mint), but I have installed the PPA from here: https://launchpad.net/~ondrej/+archive/ubuntu/php
The only other thing I needed to do to get PHP7 working was swap out libapache2-mod-php5filter and replace it with libapache2-mod-php7.0
Thanks again!
Thread Starter
KTS915
(@kts915)
The fix turns out to be quite simple. In wp-power-stats/admin/vendor/browser-os/Browser.php line 110 needs to be changed from
public function Browser($userAgent = "")
to
function __construct($userAgent = "")
You might be interested in this:
WordPress and PHP7
Thread Starter
KTS915
(@kts915)
@leemon, I don’t follow. I’m been running live sites on PHP7 for a couple of weeks now without any apparent difficulty.
Sorry, the message was for artifex404, so he could see that WordPress is deprecating PHP4 style constructors:
Deprecating PHP4 style constructors in WordPress 4.3