Title: Deprecated errors
Last modified: February 9, 2023

---

# Deprecated errors

 *  Resolved [horgster](https://wordpress.org/support/users/horgster/)
 * (@horgster)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/deprecated-errors-4/)
 * Hi!
   When running my wordpress site in Debug mode, I get these deprecated errors.
   Can you please fix them?
 * **Deprecated**: Return type of GeoIp2\Model\AbstractModel::jsonSerialize() should
   either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\
   ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
   in **www/wp-content/plugins/wp-statistics/includes/vendor/geoip2/geoip2/src/Model/
   AbstractModel.php** on line **63**
 * **Deprecated**: Return type of GeoIp2\Record\AbstractRecord::jsonSerialize() 
   should either be compatible with JsonSerializable::jsonSerialize(): mixed, or
   the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress
   the notice in **www/wp-content/plugins/wp-statistics/includes/vendor/geoip2/geoip2/
   src/Record/AbstractRecord.php** on line **57**
 * Running PHP 8.1
   Thanks!Best RegardsHorgster

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

 *  [setsuwa](https://wordpress.org/support/users/setsuwa/)
 * (@setsuwa)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/deprecated-errors-4/#post-16455131)
 * Hi All!
   I also got message that I can only enter in debug mode.Is there any way
   to install back the previeous version of the pluigin?Thanks for help!Emese
 *  Thread Starter [horgster](https://wordpress.org/support/users/horgster/)
 * (@horgster)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/deprecated-errors-4/#post-16462082)
 * Hi [@mostafas1990](https://wordpress.org/support/users/mostafas1990/)
   Could you
   have a look at this simple issue to be fixed?Thanks
 *  Plugin Author [Mostafa Soufi](https://wordpress.org/support/users/mostafas1990/)
 * (@mostafas1990)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/deprecated-errors-4/#post-16462710)
 * Hi,
 * Thank you for reporting the issue, I’ve just fixed it in the development version
   which will be released in the next version.
 * [https://github.com/wp-statistics/wp-statistics/commit/dafbf2b72e33f1451568ecd24ad1e1fabeefc6cd](https://github.com/wp-statistics/wp-statistics/commit/dafbf2b72e33f1451568ecd24ad1e1fabeefc6cd)
 * Best

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

The topic ‘Deprecated errors’ 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/)

 * 4 replies
 * 3 participants
 * Last reply from: [Mostafa Soufi](https://wordpress.org/support/users/mostafas1990/)
 * Last activity: [3 years, 3 months ago](https://wordpress.org/support/topic/deprecated-errors-4/#post-16462710)
 * Status: resolved