• Resolved sigwinstonwolf

    (@sigwinstonwolf)


    Hello, as you can see on this image, on the woocommerce product page, the column “SSO image” crashes after many records (this always happens, regardless of the product, the one in the photo is just an example) with 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 2 replies - 1 through 2 (of 2 total)
  • Plugin Author JS Morisset

    (@jsmoriss)

    You should report the issue to WooCommerce. WPSSO is requesting shipping information from WooCommerce, and it looks like WooCommerce is trying to resolve shortcodes when getting flat rate shipping costs, and getting an unexpected value.

    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()

    Thread Starter sigwinstonwolf

    (@sigwinstonwolf)

    I had 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 disappeared.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘SSO image column Crash’ is closed to new replies.