• Hi, I’ve just started to get this error when adding the traking number to orders.

    Detalhes do erro
    ================
    Um erro do tipo E_ERROR foi causado na linha 491 do ficheiro /home/tartarugcw/tartaruguita.pt/wp-content/plugins/portugal-ctt-tracking-woocommerce/includes/class-ctt-tracking.php. Mensagem de erro: Uncaught Error: Call to a member function find() on null in /home/tartarugcw/tartaruguita.pt/wp-content/plugins/portugal-ctt-tracking-woocommerce/includes/class-ctt-tracking.php:491
    Stack trace:
    #0 /home/tartarugcw/tartaruguita.pt/wp-content/plugins/portugal-ctt-tracking-woocommerce/includes/class-ctt-tracking.php(220): CTT_Tracking->ctt_tracking_get_info('DA466397230PT')
    #1 /home/tartarugcw/tartaruguita.pt/wp-content/plugins/portugal-ctt-tracking-woocommerce/includes/class-ctt-tracking.php(144): CTT_Tracking->tracking_information_table(15342, 'admin')
    #2 /home/tartarugcw/tartaruguita.pt/wp-admin/includes/template.php(1395): CTT_Tracking->shop_order_add_meta_boxes_html(Object(WP_Post), Array)
    #3 /home/tartarugcw/tartaruguita.pt/wp-admin/edit-form-advanced.php(681): do_meta_boxes(Object(WP_Screen), 'side', Object(WP_Post))
    #4 /home/tartarugcw/tartaruguita.pt/wp-admin/post.php(206): require('/home/tartarugc...')
    #5 {main}
      thrown

    Thansk for the support

    • This topic was modified 3 years, 4 months ago by claudiof.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @claudiof

    We cannot replicate this issue, neither with the tracking number provided on your error log (which has no information available) nor with the one we just got from an order (which has information).

    Even weirder is that around 20 lines before line 491 we use the exact same find() method on the exact same $table object and the error does not fire there.

    Are you using the latest plugin version? (1.2.1 at the moment)

    Thread Starter claudiof

    (@claudiof)

    Hi @webdados,
    yes, We are using the latest version of it (1.2.1).
    I do believe the issue was or is being cause when on the admin panel, we add a new product to and order (already in processing state). For example, if a customer call us to add an extra product, we usually update the same order.
    The error happened after that change and when we added the tracking number to the order.

    Hope that helps to replicate the issue.

    Thanks,
    Cláudio Freire

    We added a new product to an order, then set the tracking code and weren’t able to replicate the issue.

    Is this something that happens several times or only happened one time?

    Thread Starter claudiof

    (@claudiof)

    Hi,
    This hppened several times, were wordpress disabled the plugin 3 times.
    I’ll run a few more tests to try to replicate the issue again.

    Thanks,
    Cláudio Freire

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Uncaught Error: Call to a member function find() on null in…’ is closed to new replies.