Title: Calling non static function
Last modified: January 31, 2023

---

# Calling non static function

 *  [madmax4ever](https://wordpress.org/support/users/madmax4ever/)
 * (@madmax4ever)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/calling-non-static-function/)
 * Hello,
 * I was trying your plugin and, just wanting to save my settings (checking all 
   image sizes), I got this error:
 *     ```wp-block-code
       PHP Fatal error: Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, non-static method FWS\ROD\Dashboard::OnActionSaveSettings() cannot be called statically in /my_wp_path/wp-includes/class-wp-hook.php:308
       ```
   
 * As a matter of fact, at line 43 of [/fws-resize-on-demand/src/Dashboard.php](https://plugins.trac.wordpress.org/browser/fws-resize-on-demand/trunk/src/Dashboard.php#L43)
   a call is made using static, but at [line 169](https://plugins.trac.wordpress.org/browser/fws-resize-on-demand/trunk/src/Dashboard.php#L169),
   function is not static…
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcalling-non-static-function%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

The topic ‘Calling non static function’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/fws-resize-on-demand.svg)
 * [FWS On-Demand-Resizer](https://wordpress.org/plugins/fws-resize-on-demand/)
 * [Support Threads](https://wordpress.org/support/plugin/fws-resize-on-demand/)
 * [Active Topics](https://wordpress.org/support/plugin/fws-resize-on-demand/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/fws-resize-on-demand/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/fws-resize-on-demand/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [madmax4ever](https://wordpress.org/support/users/madmax4ever/)
 * Last activity: [3 years, 3 months ago](https://wordpress.org/support/topic/calling-non-static-function/)
 * Status: not resolved