Title: PHP8 Compatibility
Last modified: December 11, 2020

---

# PHP8 Compatibility

 *  [bebablub](https://wordpress.org/support/users/bebablub/)
 * (@bebablub)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/php8-compatibility-4/)
 * Hello,
 * thank your for your great plugin. I’m doing first tests with WordPress 5.6, WP
   Statistics 13.04 on a PHP8 system. I know you are recommended to use PHP 7.3.
   On first tests there seemed no errors despite one crash which was reported by
   WordPress via mail:
 *     ```
       Fehler-Details
       ==============
       Ein Fehler vom Typ E_ERROR wurde in der Zeile 254 der Datei /var/www/wordpress/wp-content/plugins/wp-statistics/includes/vendor/whichbrowser/parser/src/Model/Version.php verursacht. Fehlermeldung: Uncaught TypeError: implode(): Argument #2 ($array) must be of type ?array, string given in /var/www/wordpress/wp-content/plugins/wp-statistics/includes/vendor/whichbrowser/parser/src/Model/Version.php:254
       Stack trace:
       #0 /var/www/wordpress/wp-content/plugins/wp-statistics/includes/vendor/whichbrowser/parser/src/Model/Version.php(254): implode()
       #1 /var/www/wordpress/wp-content/plugins/wp-statistics/includes/vendor/whichbrowser/parser/src/Model/Primitive/NameVersion.php(95): WhichBrowser\Model\Version->toString()
       #2 /var/www/wordpress/wp-content/plugins/wp-statistics/includes/vendor/whichbrowser/parser/src/Analyser/Derive.php(88): WhichBrowser\Model\Primitive\NameVersion->getVersion()
       #3 /var/www/wordpress/wp-content/plugins/wp-statistics/includes/vendor/whichbrowser/parser/src/Analyser/Derive.php(32): WhichBrowser\Analyser->deriveOperaRenderingEngine()
       #4 /var/www/wordpress/wp-content/plugins/wp-statistics/includes/vendor/whichbrowser/parser/src/Analyser.php(43): WhichBrowser\Analyser->deriveInformation()
       #5 /var/www/wordpress/wp-content/plugins/wp-statistics/includes/vendor/whichbrowser/parser/src/Parser.php(56): WhichBrowser\Analyser->analyse()
       #6 /var/www/wordpress/wp-content/plugins/wp-statistics/includes/vendor/whichbrowser/parser/src/Parser.php(23): WhichBrowser\Parser->analyse()
       #7 /var/www/wordpress/wp-content/plugins/wp-statistics/includes/class-wp-statistics-user-agent.php(29): WhichBrowser\Parser->__construct()
       #8 /var/www/wordpress/wp-content/plugins/wp-statistics/includes/class-wp-statistics.php(318): WP_STATISTICS\UserAgent::getUserAgent()
       #9 /var/www/wordpress/wp-content/plugins/wp-statistics/includes/class-wp-statistics.php(117): WP_Statistics->instantiate()
       #10 /var/www/wordpress/wp-includes/class-wp-hook.php(287): WP_Statistics->plugin_setup()
       #11 /var/www/wordpress/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters()
       #12 /var/www/wordpress/wp-includes/plugin.php(484): WP_Hook->do_action()
       #13 /var/www/wordpress/wp-settings.php(420): do_action()
       #14 /var/www/wordpress/wp-config.php(115): require_once('...')
       #15 /var/www/wordpress/wp-load.php(37): require_once('...')
       #16 /var/www/wordpress/wp-login.php(12): require('...')
       #17 {main}
         thrown
       ```
   
 * So i’m asking is there PHP8 compatibility planned?
 * Thank you very much!
 * Best regards
    Benjamin

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [VeronaLabs](https://wordpress.org/support/users/veronalabs/)
 * (@veronalabs)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/php8-compatibility-4/#post-13782169)
 * Hi Benjamin,
 * Thank you for reporting that to us.
 * We are making some changes and we release a new version by next week.
 * Have a nice weekend.
 * Best,
 *  [siegbert](https://wordpress.org/support/users/siegbert/)
 * (@siegbert)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/php8-compatibility-4/#post-13904604)
 * Hi,
 * since today I also use php 8 and WP 5.6. since then I get this error message 
   irregularly sent by mail. Here only the text with the error message:
 * **********************
    Ein Fehler vom Typ E_ERROR wurde in der Zeile 254 der
   Datei /home/www/bagnols.info/wp-content/plugins/wp-statistics/includes/vendor/
   whichbrowser/parser/src/Model/Version.php verursacht. Fehlermeldung: Uncaught
   TypeError: implode(): Argument #2 ($array) must be of type ?array, string given
   in /home/www/bagnols.info/wp-content/plugins/wp-statistics/includes/vendor/whichbrowser/
   parser/src/Model/Version.php:254 Stack trace: #0 /home/www/bagnols.info/wp-content/
   plugins/wp-statistics/includes/vendor/whichbrowser/parser/src/Model/Version.php(
   254): implode(Array, ‘.’) #1 /home/www/bagnols.info/wp-content/plugins/wp-statistics/
   includes/vendor/whichbrowser/parser/src/Model/Primitive/NameVersion.php(95): 
   WhichBrowser\Model\Version->toString() #2 /home/www/bagnols.info/wp-content/plugins/
   wp-statistics/includes/vendor/whichbrowser/parser/src/Analyser/Derive.php(88):
   WhichBrowser\Model\Primitive\NameVersion->getVersion() #3 /home/www/bagnols.info/
   wp-content/plugins/wp-statistics/includes/vendor/whichbrowser/parser/src/Analyser/
   Derive.php(32): WhichBrowser\Analyser->deriveOperaRenderingEngine() #4 /home/
   www/bagnols.info/wp-content/plugins/wp-statistics/includes/vendor/whichbrowser/
   parser/src/Analyser.php(43): WhichBrowser\Analyser->deriveInformation() #5 /home/
   www/bagnols.info/wp-content/plugins/wp-statistics/includes/vendor/whichbrowser/
   parser/src/Parser.php(56): WhichBrowser\Analyser->analyse() #6 /home/www/bagnols.
   info/wp-content/plugins/wp-statistics/includes/vendor/whichbrowser/parser/src/
   Parser.php(23): WhichBrowser\Parser->analyse(‘Mozilla/5.0 (Wi…’, Array) #7 /home/
   www/bagnols.info/wp-content/plugins/wp-statistics/includes/class-wp-statistics-
   user-agent.php(29): WhichBrowser\Parser->__construct(‘Mozilla/5.0 (Wi…’) #8 /
   home/www/bagnols.info/wp-content/plugins/wp-statistics/includes/class-wp-statistics.
   php(318): WP_STATISTICS\UserAgent::getUserAgent() #9 /home/www/bagnols.info/wp-
   content/plugins/wp-statistics/includes/class-wp-statistics.php(117): WP_Statistics-
   >instantiate() #10 /home/www/bagnols.info/wp-includes/class-wp-hook.php(287):
   WP_Statistics->plugin_setup(”) #11 /home/www/bagnols.info/wp-includes/class-wp-
   hook.php(311): WP_Hook->apply_filters(NULL, Array) #12 /home/www/bagnols.info/
   wp-includes/plugin.php(484): WP_Hook->do_action(Array) #13 /home/www/bagnols.
   info/wp-settings.php(420): do_action(‘plugins_loaded’) #14 /home/www/bagnols.
   info/wp-config.php(117): require_once(‘/home/www/bagno…’) #15 /home/www/bagnols.
   info/wp-load.php(37): require_once(‘/home/www/bagno…’) #16 /home/www/bagnols.
   info/wp-login.php(12): require(‘/home/www/bagno…’) #17 {main} thrown **********************
 * I use WP-Statistics 13.0.5
 * Is this a problem with the compatibility of WP-Statistics with php 8 and if so,
   how do I get it fixed?
 * Bet regards,
    Siegbert

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘PHP8 Compatibility’ is closed to new replies.

 * ![](https://ps.w.org/wp-statistics/assets/icon.svg?rev=3081064)
 * [WP Statistics – Simple, privacy-friendly Google Analytics alternative](https://wordpress.org/plugins/wp-statistics/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-statistics/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-statistics/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-statistics/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-statistics/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-statistics/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [siegbert](https://wordpress.org/support/users/siegbert/)
 * Last activity: [5 years, 4 months ago](https://wordpress.org/support/topic/php8-compatibility-4/#post-13904604)
 * Status: not resolved