• Resolved bjrnet21

    (@bjrnet21)


    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 to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author jordanleven

    (@jordanleven)

    @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.

    The debugging build can be downloaded from GitHub here. 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 3 years, 2 months ago by jordanleven.
    Plugin Author jordanleven

    (@jordanleven)

    @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.