Title: Fatal error: Uncaught TypeError
Last modified: February 6, 2021

---

# Fatal error: Uncaught TypeError

 *  Resolved [bjrnet21](https://wordpress.org/support/users/bjrnet21/)
 * (@bjrnet21)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-typeerror-6/)
 * Just installed your plug-in. Appears to work, however, I get the following:
 * Fatal error: Uncaught TypeError: Argument 1 passed to get_current_version_post()
   must be of the type int, string given, called in /home/customer/www/blackjackreview.
   com/public_html/wp/wp-content/plugins/force-refresh/includes/api/client/inc.get-
   version.php on line 54 and defined in /home/customer/www/blackjackreview.com/
   public_html/wp/wp-content/plugins/force-refresh/includes/api/client/inc.get-version.
   php:25
    Stack Trace 1. get_current_version_post(”)/home/customer/www/blackjackreview.
   com/public_html/wp/wp-content/plugins/force-refresh/includes/api/client/inc.get-
   version.php:54 2. get_version(”)/home/customer/www/blackjackreview.com/public_html/
   wp/wp-includes/class-wp-hook.php:287 3. WP_Hook->apply_filters(”, Array)/home/
   customer/www/blackjackreview.com/public_html/wp/wp-includes/class-wp-hook.php:
   311 4. WP_Hook->do_action(Array)/home/customer/www/blackjackreview.com/public_html/
   wp/wp-includes/plugin.php:484 5. do_action(‘w in /home/customer/www/blackjackreview.
   com/public_html/wp/wp-content/plugins/force-refresh/includes/api/client/inc.get-
   version.php on line 25/home/customer/www/blackjackreview.com/public_html/wp/wp-
   admin/admin-ajax.php:199
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffatal-error-uncaught-typeerror-6%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [jordanleven](https://wordpress.org/support/users/jordanleven/)
 * (@jordanleven)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-typeerror-6/#post-14013569)
 * [@bjrnet21](https://wordpress.org/support/users/bjrnet21/), thanks for reaching
   out about this!
 * I did some digging on my end to see if I could replicate the issue. I was not
   able to replicate it in my environment by, activating the plugin and visiting
   a page that would be checking into the API to see what the current site version
   is (which is where the issue appears to be where the issue is occurring). However,
   I’d still like to debug this with you to get a better idea of what’s happening
   so I can get this sorted out on your site.
 * I went ahead and put together a special debugging release that you can install
   on your site that would replace the existing Force Refresh plugin. Please add
   this plugin to your site and activate it. This updated version removes the strict
   typesetting for the post, which will no longer cause a fatal error on this file.
   You can view all of the changes that were made as part of this special release
   [here](https://github.com/jordanleven/force-refresh/pull/40/files).
 * The debugging build can be downloaded from GitHub [here](https://github.com/jordanleven/force-refresh/releases/download/v2.2.1-FG-39.1/Force_Refresh_v2.2.1-FG-39.1.zip).
   Once you activate this plugin, message me back here so I can take another look
   on your site to determine why a post ID (which is always an integer) is being
   passed in as a string.
 * Questions? Let me know!
 * Jordan
    -  This reply was modified 5 years, 4 months ago by [jordanleven](https://wordpress.org/support/users/jordanleven/).
 *  Plugin Author [jordanleven](https://wordpress.org/support/users/jordanleven/)
 * (@jordanleven)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-typeerror-6/#post-14071707)
 * [@bjrnet21](https://wordpress.org/support/users/bjrnet21/), since I haven’t heard
   back from you, I’m going to close this thread out. If you continue to experience
   issues, feel free to respond here.

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

The topic ‘Fatal error: Uncaught TypeError’ is closed to new replies.

 * ![](https://ps.w.org/force-refresh/assets/icon-256x256.png?rev=2428247)
 * [Force Refresh](https://wordpress.org/plugins/force-refresh/)
 * [Support Threads](https://wordpress.org/support/plugin/force-refresh/)
 * [Active Topics](https://wordpress.org/support/plugin/force-refresh/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/force-refresh/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/force-refresh/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [jordanleven](https://wordpress.org/support/users/jordanleven/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-typeerror-6/#post-14071707)
 * Status: resolved