Fatal error
-
Mijn klant krijgt sinds de afgelopen versie onderstaande error als ik de plugin aanstaat en zijn gebruikers proberen af te rekenen:
2022-04-25T09:11:04+00:00 CRITICAL Uncaught TypeError: substr(): Argument #1 ($string) must be of type string, int given in /www/wp-content/plugins/woocommerce-myparcel/vendor/myparcelnl/sdk/src/Support/Str.php:469 Stack trace: #0 /www/wp-content/plugins/woocommerce-myparcel/vendor/myparcelnl/sdk/src/Support/Str.php(469): substr(7943, 0, 11) #1 /www/wp-content/plugins/woocommerce-myparcel/includes/admin/class-wcmp-export.php(804): MyParcelNL\Sdk\src\Support\Str::startsWith(7943, 'table_rate:') #2 /www/wp-content/plugins/woocommerce-myparcel/includes/frontend/class-wcmp-checkout.php(204): WCMP_Export::getPackageTypeFromShippingMethod(7943, NULL) #3 /www/wp-content/plugins/woocommerce-myparcel/includes/frontend/class-wcmp-checkout.php(154): WCMP_Checkout->getDeliveryOptionsConfig() #4 /www/wp-content/plugins/woocommerce-myparcel/includes/frontend/class-wcmp-checkout.php(110): WCMP_Checkout->inject_delivery_options_variables() #5 /www/wp-includes/class-wp-hook.php(307): WCMP_Checkout->enqueue_frontend_scripts('') #6 /www/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array) #7 /www/wp-includes/plugin.php(474): WP_Hook->do_action(Array) #8 /www/wp-includes/script-loader.php(2115): do_action('wp_enqueue_scri...') #9 /www/wp-includes/class-wp-hook.php(307): wp_enqueue_scripts('') #10 /www/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array) #11 /www/wp-includes/plugin.php(474): WP_Hook->do_action(Array) #12 /www/wp-includes/general-template.php(3042): do_action('wp_head') #13 /www/wp-content/themes/enfold/header.php(195): wp_head() #14 /www/wp-includes/template.php(770): require_once('/www/wp-content...') #15 /www/wp-includes/template.php(716): load_template('/www/wp-content...', true, Array) #16 /www/wp-includes/general-template.php(48): locate_template(Array, true, true, Array) #17 /www/wp-content/themes/enfold/page.php(9): get_header() #18 /www/wp-includes/template-loader.php(106): include('/www/wp-content...') #19 /www/wp-blog-header.php(19): require_once('/www/wp-include...') #20 /www/index.php(17): require('/www/wp-blog-he...') #21 {main} thrown in /www/wp-content/plugins/woocommerce-myparcel/vendor/myparcelnl/sdk/src/Support/Str.php op de lijn 469
Enig idee wat we hiermee kunnen doen?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Fatal error’ is closed to new replies.