• Resolved sigwinstonwolf

    (@sigwinstonwolf)


    From the WordPress backend, when I click on “All Products” I get this error:

    This error that i received by mail:

    Error details:

    An E_ERROR error occured on line 141 of the file /home/mywebsitename/domains/mywebsite.com/public_html/wp-content/plugins/woocommerce/includes/shipping/flat-rate/class-wc-shipping-flat-rate.php.

    Error message: Uncaught TypeError: Unsupported operand types: string * float in /home/mywebsitename/domains/mywebsite.com/public_html/wp-content/plugins/woocommerce/includes/shipping/flat-rate/class-wc-shipping-flat-rate.php:141

    Stack trace:

    0 /home/mywebsitename/domains/mywebsite.com/public_html/wp-includes/shortcodes.php(433): WC_Shipping_Flat_Rate->fee()
    
    1 [internal function]: do_shortcode_tag()
    
    2 /home/mywebsitename/domains/mywebsite.com/public_html/wp-includes/shortcodes.php(273): preg_replace_callback()
    
    3 /home/mywebsitename/domains/mywebsite.com/public_html/wp-content/plugins/woocommerce/includes/shipping/flat-rate/class-wc-shipping-flat-rate.php(92): do_shortcode()
    
    4 [internal function]: WC_Shipping_Flat_Rate->evaluate_cost()
    
    5 /home/mywebsitename/domains/mywebsite.com/public_html/wp-content/plugins/wpsso/lib/integ/ecom/woocommerce.php(1885): ReflectionMethod->invoke()
    
    6 /home/mywebsitename/domains/mywebsite.com/public_html/wp-content/plugins/wpsso/lib/integ/ecom/woocommerce.php(1646): WpssoIntegEcomWooCommerce->get_zone_method_shipping_offer()
    
    7 /home/mywebsitename/domains/mywebsite.com/public_html/wp-content/plugins/wpsso/lib/integ/ecom/woocommerce.php(1464): WpssoIntegEcomWooCommerce->add_mt_shipping_offers()
    
    8 /home/mywebsitename/domains/mywebsite.com/public_html/wp-content/plugins/wpsso/lib/integ/ecom/woocommerce.php(828): WpssoIntegEcomWooCommerce->add_mt_product()
    
    9 /home/mywebsitename/domains/mywebsite.com/public_html/wp-includes/class-wp-hook.php(324): WpssoIntegEcomWooCommerce->filter_og_seed()
    
    10 /home/mywebsitename/domains/mywebsite.com/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters()
    
    11 /home/mywebsitename/domains/mywebsite.com/public_html/wp-content/plugins/wpsso/lib/opengraph.php(349): apply_filters()
    
    12 /home/mywebsitename/domains/mywebsite.com/public_html/wp-content/plugins/wpsso/lib/head.php(438): WpssoOpenGraph->get_array()
    
    13 /home/mywebsitename/domains/mywebsite.com/public_html/wp-content/plugins/wpsso/lib/abstract/wp-meta.php(1487): WpssoHead->get_head_array()
    
    14 /home/mywebsitename/domains/mywebsite.com/public_html/wp-content/plugins/wpsso/lib/abstract/wp-meta.php(2576): WpssoAbstractWpMeta->get_head_info()
    
    15 /home/mywebsitename/domains/mywebsite.com/public_html/wp-includes/class-wp-hook.php(326): WpssoAbstractWpMeta->check_sortable_meta()
    
    16 /home/mywebsitename/domains/mywebsite.com/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters()
    
    17 /home/mywebsitename/domains/mywebsite.com/public_html/wp-includes/meta.php(635): apply_filters()
    
    18 /home/mywebsitename/domains/mywebsite.com/public_html/wp-includes/meta.php(574): get_metadata_raw()
    
    19 /home/mywebsitename/domains/mywebsite.com/public_html/wp-content/plugins/wpsso/lib/post.php(2763): get_metadata()
    
    20 /home/mywebsitename/domains/mywebsite.com/public_html/wp-content/plugins/wpsso/lib/abstract/wp-meta.php(2513): WpssoPost::get_meta()
    
    21 /home/mywebsitename/domains/mywebsite.com/public_html/wp-content/plugins/wpsso/lib/abstract/wp-meta.php(2450): WpssoAbstractWpMeta->get_column_wp_cache()
    
    22 /home/mywebsitename/domains/mywebsite.com/public_html/wp-content/plugins/wpsso/lib/post.php(925): WpssoAbstractWpMeta->get_column_content()
    
    23 /home/mywebsitename/domains/mywebsite.com/public_html/wp-includes/class-wp-hook.php(324): WpssoPost->show_column_content()
    
    24 /home/mywebsitename/domains/mywebsite.com/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() 25 /home/mywebsitename/domains/mywebsite.com/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
    
    26 /home/mywebsitename/domains/mywebsite.com/public_html/wp-admin/includes/class-wp-posts-list-table.php(1380): do_action()
    
    27 /home/mywebsitename/domains/mywebsite.com/public_html/wp-admin/includes/class-wp-list-table.php(1796): WP_Posts_List_Table->column_default()
    
    28 /home/mywebsitename/domains/mywebsite.com/public_html/wp-admin/includes/class-wp-posts-list-table.php(1432): WP_List_Table->single_row_columns()
    
    29 /home/mywebsitename/domains/mywebsite.com/public_html/wp-admin/includes/class-wp-posts-list-table.php(834): WP_Posts_List_Table->single_row()
    
    30 /home/mywebsitename/domains/mywebsite.com/public_html/wp-admin/includes/class-wp-posts-list-table.php(810): WP_Posts_List_Table->_display_rows()
    
    31 /home/mywebsitename/domains/mywebsite.com/public_html/wp-admin/includes/class-wp-list-table.php(1706): WP_Posts_List_Table->display_rows()
    
    32 /home/mywebsitename/domains/mywebsite.com/public_html/wp-admin/includes/class-wp-list-table.php(1633): WP_List_Table->display_rows_or_placeholder()
    
    33 /home/mywebsitename/domains/mywebsite.com/public_html/wp-admin/edit.php(503): WP_List_Table->display()
    

    Can you help me please?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter sigwinstonwolf

    (@sigwinstonwolf)

    I have a “Rest of World” shipping zone with these parameters:

    Name: international shipping
    Taxes: exempt
    Cost: [fee percent=”30″ min_fee=”20″ max_fee=””]

    By deleting this shipping zone, the php fatal error disappears.

    Hey there, @sigwinstonwolf! Thanks for contacting us. I’m happy to help you.

    I added the setting you shared on my website and I was not able to replicate the issue.

    After you deleted the shipping zone you added a new one with the same settings and the issue came back?

    This might be a conflict issue, but before testing this, I’d like to understand your site properly. Please share with us the necessary information below for us to investigate the issue further:

    System Status Report which you can find via WooCommerce > Status > Get system report > Copy for support.
    Fatal error logs (if any) under WooCommerce > Status > Logs. Then you can use the selector to search for Fatal Errors.
    You could copy and paste your reply here or paste it via https://gist.github.com/ and send the link here.

    Can you please share some screenshots to help us investigate this further? I recommend using https://snipboard.io. You can share the direct link to the image as a response to this topic.

    We need screenshots of:

    • WooCommerce > Settings > Shipping
    • WooCommerce > Settings > Shipping > Click on Edit on a Shipping Zone
    • WooCommerce > Settings > Shipping > Click on Edit on a Shipping Zone > Click on edit on each shipping method so we can check the specific settings

    Looking forward to your reply.

    Have a wonderful day!

    Hi ?? We haven’t heard back from you in a while, so I’m going to mark this as resolved – we’ll be here if and/or when you are ready to continue.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Wc Shipping Flat Rate Function Crash’ is closed to new replies.