Title: ValueError: Unknown format specifier &#8221; &#8220;
Last modified: July 28, 2021

---

# ValueError: Unknown format specifier ” “

 *  Resolved [Reinaldo](https://wordpress.org/support/users/marketemprende/)
 * (@marketemprende)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/valueerror-unknown-format-specifier/)
 * Fatal error: Uncaught Value and ValueError: Unknown format specifier ” ” in woocommerce-
   table-rate-shipping/includes/class-wc-shipping-table-rate.php on line 225
 * What should change in that line for the “”?
 * Tks

Viewing 7 replies - 1 through 7 (of 7 total)

 *  [Mirko P.](https://wordpress.org/support/users/rainfallnixfig/)
 * (@rainfallnixfig)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/valueerror-unknown-format-specifier/#post-14712197)
 * Hi [@marketemprende](https://wordpress.org/support/users/marketemprende/),
 * Thanks for sending over the Fatal error log.
 * Could you please also share a copy of your site’s System Status?
 * You can find it via WooCommerce > Status. Select “Get system report” and then“
   Copy for support”. Once you’ve done that, paste it here in your response.
 * Thanks.
 *  [MayKato](https://wordpress.org/support/users/maykato/)
 * (@maykato)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/valueerror-unknown-format-specifier/#post-14735082)
 * Hi [@marketemprende](https://wordpress.org/support/users/marketemprende/)
 * We’ve not heard back from you in a while, so I’m marking this thread as resolved.
   Hopefully, you were able to find a solution to your problem! If you have further
   questions, please feel free to open a new topic.
 *  [RoyD](https://wordpress.org/support/users/royd/)
 * (@royd)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/valueerror-unknown-format-specifier/#post-14783500)
 * Hi,
 * I meeting the same error when update from version 3.0.30 to 3.0.31.
 * Een fout van het type E_ERROR werd veroorzaakt op regelnummer 225 van het bestand/
   var/www/nlportofoo-kunma/wordpress/current/wp-content/plugins/woocommerce-table-
   rate-shipping/includes/class-wc-shipping-table-rate.php. Foutmelding: Uncaught
   ValueError: Unknown format specifier ” ” in /var/www/nlportofoo-kunma/wordpress/
   current/wp-content/plugins/woocommerce-table-rate-shipping/includes/class-wc-
   shipping-table-rate.php:225
    Stack trace: #0 /var/www/nlportofoo-kunma/wordpress/
   current/wp-content/plugins/woocommerce-table-rate-shipping/includes/class-wc-
   shipping-table-rate.php(225): sprintf() #1 /var/www/nlportofoo-kunma/wordpress/
   current/wp-content/plugins/woocommerce-table-rate-shipping/includes/class-wc-
   shipping-table-rate.php(37): WC_Shipping_Table_Rate->init_form_fields() #2 /var/
   www/nlportofoo-kunma/wordpress/current/wp-content/plugins/woocommerce/includes/
   class-wc-shipping.php(199): WC_Shipping_Table_Rate->__construct() #3 /var/www/
   nlportofoo-kunma/wordpress/current/wp-content/plugins/woocommerce/includes/class-
   wc-shipping.php(177): WC_Shipping->register_shipping_method() #4 /var/www/nlportofoo-
   kunma/wordpress/current/wp-content/plugins/woocommerce/includes/class-wc-shipping.
   php(221): WC_Shipping->load_shipping_methods() #5 /var/www/nlportofoo-kunma/wordpress/
   current/wp-content/plugins/woocommerce-myparcel/includes/admin/settings/class-
   wcmp-shipping-methods.php(57): WC_Shipping->get_shipping_methods() #6 /var/www/
   nlportofoo-kunma/wordpress/current/wp-content/plugins/woocommerce-myparcel/includes/
   admin/settings/class-wcmp-shipping-methods.php(44): WCMP_Shipping_Methods->gatherShippingMethods()#
   7 /var/www/nlportofoo-kunma/wordpress/current/wp-content/plugins/woocommerce-
   myparcel/includes/admin/settings/class-wcmp-settings-data.php(665): WCMP_Shipping_Methods-
   >__construct() #8 /var/www/nlportofoo-kunma/wordpress/current/wp-content/plugins/
   woocommerce-myparcel/includes/admin/settings/class-wcmp-settings-data.php(221):
   WCMP_Settings_Data->get_section_export_defaults_main() #9 /var/www/nlportofoo-
   kunma/wordpress/current/wp-content/plugins/woocommerce-myparcel/includes/admin/
   settings/class-wcmp-settings-data.php(64): WCMP_Settings_Data->get_sections_export_defaults()#
   10 /var/www/nlportofoo-kunma/wordpress/current/wp-includes/class-wp-hook.php(
   303): WCMP_Settings_Data->create_all_settings() #11 /var/www/nlportofoo-kunma/
   wordpress/current/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters()#
   12 /var/www/nlportofoo-kunma/wordpress/current/wp-includes/plugin.php(470): WP_Hook-
   >do_action() #13 /var/www/nlportofoo-kunma/wordpress/current/wp-admin/admin.php(
   175): do_action() #14 /var/www/nlportofoo-kunma/wordpress/current/wp-admin/update-
   core.php(10): require_once(‘…’) #15 {main} thrown`
 *  Plugin Support [Stuart Duff – a11n](https://wordpress.org/support/users/stuartduff/)
 * (@stuartduff)
 * Automattic Happiness Engineer
 * [4 years, 9 months ago](https://wordpress.org/support/topic/valueerror-unknown-format-specifier/#post-14784092)
 * Hi [@royd](https://wordpress.org/support/users/royd/),
 * This particular forum is for questions which are directly related to the features
   and functionality of the free WooCommerce plugin. It does not, however, offer
   support for questions related to any extensions or themes which can work with
   WooCommerce.
 * Looking at the error message it indicates two plugins within that.
    - woocommerce-table-rate-shipping
    - woocommerce-myparcel
 * The Table Rate Shipping plugin would be [this](https://woocommerce.com/products/table-rate-shipping/)
   plugin from WooCommerce.com. For support related to that plugin, you can contact
   the WooCommerce.com support team. To contact support you will need to be logged
   into the WooCommerce.com customer account used to purchase the Table Rate Shipping
   plugin from WooCommerce.com.
 * [https://woocommerce.com/my-account/create-a-ticket/](https://woocommerce.com/my-account/create-a-ticket/)
 * The plugin titled WooCommerce MyParcel is a free plugin for WordPress and you
   can contact that plugins support team by using this forum below.
 * [https://wordpress.org/support/plugin/woocommerce-myparcel/](https://wordpress.org/support/plugin/woocommerce-myparcel/)
 *  [peter_l_p](https://wordpress.org/support/users/peterlarsenpan/)
 * (@peterlarsenpan)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/valueerror-unknown-format-specifier/#post-14784102)
 * In line 225 of /woocommerce-table-rate-shipping/includes/class-wc-shipping-table-
   rate.php:
 * `'description' => sprintf( __( 'Handling fee. Enter an amount, e.g. %1$s, or 
   a percentage, e.g. 5%%. Leave blank to disable. Applied based on the "Calculation
   Type" chosen below.', 'woocommerce-table-rate-shipping' ), '2' . wc_get_price_decimal_separator().'
   50' )`
 * You cannot use % symbol here in sprintf, it should be ‘%%’
 * `sprintf( __( 'Handling fee. Enter an amount, e.g. %1$s, or a percentage, e.g.
   5%%. Leave blank to disable. Applied based on the "Calculation Type" chosen below.','
   woocommerce-table-rate-shipping' ), '2' . wc_get_price_decimal_separator() . '
   50' );`
 * Otherwise this will caus the mention fatal error, if a plugin / theme does something
   like:
 *     ```
       global $woocommerce;
       $woocommerce->shipping->load_shipping_methods();
       ```
   
 *  [RoyD](https://wordpress.org/support/users/royd/)
 * (@royd)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/valueerror-unknown-format-specifier/#post-14784520)
 * [@peterlarsenpan](https://wordpress.org/support/users/peterlarsenpan/), I changed
   it and no errors anymore. Thank you for you help.
 * Regards,
    Roy
 *  [Mirko P.](https://wordpress.org/support/users/rainfallnixfig/)
 * (@rainfallnixfig)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/valueerror-unknown-format-specifier/#post-14785163)
 * Hi [@royd](https://wordpress.org/support/users/royd/),
 * Glad to hear that you no longer receive that error. Thanks so much to [@peterlarsenpan](https://wordpress.org/support/users/peterlarsenpan/)
   for the help and for pointing out where the code should be adjusted.
 * If you have further questions, please open up a new separate topic since it will
   be easier to follow and search on the forum. Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘ValueError: Unknown format specifier ” “’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

 * 7 replies
 * 6 participants
 * Last reply from: [Mirko P.](https://wordpress.org/support/users/rainfallnixfig/)
 * Last activity: [4 years, 9 months ago](https://wordpress.org/support/topic/valueerror-unknown-format-specifier/#post-14785163)
 * Status: resolved