Title: problem with php 8
Last modified: January 16, 2021

---

# problem with php 8

 *  [eacevedop](https://wordpress.org/support/users/eacevedop/)
 * (@eacevedop)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/problem-with-php-8-2/)
 * hi, i’m working to migrate to php 8 but your plugin sends me
 * [16-Jan-2021 11:25:21 UTC] PHP Fatal error: Uncaught TypeError: call_user_func_array():
   Argument #1 ($function) must be a valid callback, non-static method UserOnline_WpStats::
   page_general_stats() cannot be called statically in /home/xxx/public_html/wp-
   includes/class-wp-hook.php:287
    Stack trace: #0 /home/xxx/public_html/wp-includes/
   plugin.php(212): WP_Hook->apply_filters(‘<h2 id=”General…’, Array) #1 /home/xxx/
   public_html/wp-content/plugins/wp-stats/wp-stats.php(417): apply_filters(‘wp_stats_page_p…’,‘
   <h2 id=”General…’) #2 /home/xxx/public_html/wp-content/plugins/wp-stats/wp-stats.
   php(62): stats_page() #3 /home/xxx/public_html/wp-includes/class-wp-hook.php(
   287): display_stats(”) #4 /home/xxx/public_html/wp-includes/class-wp-hook.php(
   311): WP_Hook->apply_filters(”, Array) #5 /home/xxx/public_html/wp-includes/plugin.
   php(484): WP_Hook->do_action(Array) #6 /home/xxx/public_html/wp-admin/admin.php(
   259): do_action(‘dashboard_page_…’) #7 /home/xxx/public_html/wp-admin/index.php(
   10): require_once(‘/home/xxx/…’) #8 {main} thrown in /home/xxx/public_html/wp-
   includes/class-wp-hook.php on line 287
 * in plugin window
 * Advertencia: Este componente no ha sido probado con tu versión actual de WordPress.
 * I wait your answer
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fproblem-with-php-8-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Thread Starter [eacevedop](https://wordpress.org/support/users/eacevedop/)
 * (@eacevedop)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/problem-with-php-8-2/#post-13916084)
 * same problem with WP-PluginsUsed plugin
 *  Plugin Author [Lester Chan](https://wordpress.org/support/users/gamerz/)
 * (@gamerz)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/problem-with-php-8-2/#post-13919904)
 * Sorry, I don’t have time to setup PHP 8 to test. For the WP-Stats error, it might
   be due to WP-UserOnline, can u try to replace the file [https://github.com/lesterchan/wp-useronline/raw/master/wp-stats.php](https://github.com/lesterchan/wp-useronline/raw/master/wp-stats.php)
   not sure if my fixed work.
 * What error are you getting with WP-PluginsUsed? There is no static method used
   there.

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

The topic ‘problem with php 8’ is closed to new replies.

 * ![](https://ps.w.org/wp-stats/assets/icon.svg?rev=978069)
 * [WP-Stats](https://wordpress.org/plugins/wp-stats/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-stats/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-stats/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-stats/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-stats/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Lester Chan](https://wordpress.org/support/users/gamerz/)
 * Last activity: [5 years, 4 months ago](https://wordpress.org/support/topic/problem-with-php-8-2/#post-13919904)
 * Status: not resolved