• Hello,

    Hope all is well,

    I keep receiving an email from WordPress that says there’s something wrong with the plugin:

    “Since WordPress 5.2 there is a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email […]

    Error Details
    =============
    An error of type E_ERROR was caused in line 1037 of the file /var/www/wp-content/plugins/aramex-shipping-woocommerce/templates/adminhtml/shipment.php. Error message: Uncaught Error: Call to a member function get_weight() on boolean in /var/www/wp-content/plugins/aramex-shipping-woocommerce/templates/adminhtml/shipment.php:1037
    Stack trace:
    #0 /var/www/wp-includes/class-wp-hook.php(286): aramex_display_order_data_in_admin(Object(WC_Order))
    #1 /var/www/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(”, Array)
    #2 /var/www/wp-includes/plugin.php(465): WP_Hook->do_action(Array)
    #3 /var/www/wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-data.php(511): do_action(‘woocommerce_adm…’, Object(WC_Order))
    #4 /var/www/wp-admin/includes/template.php(1304): WC_Meta_Box_Order_Data::output(Object(WP_Post), Array)
    #5 /var/www/wp-admin/edit-form-advanced.php(642): do_meta_boxes(Object(WP_Screen), ‘normal’, Object(WP_Post))
    #6 /var/www/wp-admin/post.php(197): include(‘/var/www/wp-adm…’)
    #7 {main}
    thrown

    Please advise,
    Thanks.

Viewing 1 replies (of 1 total)
  • Plugin Author aramex

    (@aramex)

    Hello Mandy,
    It looks like as if you are going to make Aramex shipment with zero weight. Products in your orders must have a weight as because it is a base for Aramex rate calculation.
    I will add a fix to show message at this case.
    Best regards,

Viewing 1 replies (of 1 total)
  • The topic ‘An error of type E_ERROR was caused in line 1037 of the file /var/www/wp-content’ is closed to new replies.