• Resolved Xpressbud

    (@xpressbudca)


    This issue just started happening a few days ago, but it was working prior to that. Whenever we try to click the ‘add tracking’ button in the WooCommerce>Orders page, nothing happens on the front end. In the dev console we get (please note that we changed the website name to ourwebsite.com below):

    'POST https://ourwebsite.com/wp-admin/admin-ajax.php?_fs_blog_admin=true 500'

    located in the ‘wp-includes/js/jquery/jquery.js?ver=1.12.4’ file.

    Our hosting platform investigated and sent back this log file:

    [24-Jun-2020 23:12:02 UTC] PHP Fatal error:  Uncaught ArgumentCountError: Too few arguments to function wpdb::prepare(), 1 passed in /home/xlejyjhx/public_html/wp-content/plugins/woo-advanced-shipment-tracking/includes/class-wc-advanced-shipment-tracking-settings.php on line 441 and exactly 2 expected in /home/xlejyjhx/public_html/wp-includes/wp-db.php:1295
    Stack trace:
    #0 /home/xlejyjhx/public_html/wp-content/plugins/woo-advanced-shipment-tracking/includes/class-wc-advanced-shipment-tracking-settings.php(441): wpdb->prepare('SELECT shipping...')
    #1 /home/xlejyjhx/public_html/wp-includes/class-wp-hook.php(286): WC_Advanced_Shipment_Tracking_Settings->ast_open_inline_tracking_form_fun('')
    #2 /home/xlejyjhx/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array)
    #3 /home/xlejyjhx/public_html/wp-includes/plugin.php(465): WP_Hook->do_action(Array)
    #4 /home/xlejyjhx/public_html/wp-admin/admin-ajax.php(167): do_action('wp_ajax_ast_ope...')
    #5 {main}
      thrown in /home/xlejyjhx/public_html/wp-includes/wp-db.php on line 1295

    I decided to see if we can fix the issue before removing and adding the plugin as we have a lot of tracking info on it already for our customers.

    • This topic was modified 3 years, 9 months ago by Xpressbud.
    • This topic was modified 3 years, 9 months ago by Xpressbud.
    • This topic was modified 3 years, 9 months ago by Jan Dembowski. Reason: Formatting
Viewing 1 replies (of 1 total)
  • Plugin Author Zorem

    (@zorem)

    Hi @xpressbudca,

    We just released the latest version of the plugin and fixed this error. Please update the latest version of the AST and let me know if it’s fixed or not.

    Thanks,

Viewing 1 replies (of 1 total)
  • The topic ‘Error code 500 in console when clicking the ‘Add tracking’ button’ is closed to new replies.