• Resolved lukekanelov

    (@lukekanelov)


    I see the following message over my blog posts when I update the theme.

    Warning: sprintf(): Too few arguments in …/public_html/wp-content/themes/storefront/inc/storefront-template-functions.php on line 440

    This happens only in my Bulgarian site.

    In addition to the warning, the whole blog gets weird, the images are not the size they should be, the full width elements are not full width after I update.

    How can this be fixed?

    I am currently using version 2.3.5. with no problems, but I want to update to the newest version.

    Thank you

Viewing 3 replies - 1 through 3 (of 3 total)
  • Sean Cull

    (@seanreloaded)

    Automattic Happiness Engineer

    Hi there,

    Could you please 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.

    Thread Starter lukekanelov

    (@lukekanelov)

    
    ### WordPress Environment ###
    
    Home URL: https://artidea.bg
    Site URL: https://artidea.bg
    WC Version: 3.5.3
    Log Directory Writable: ?
    WP Version: 5.0.3
    WP Multisite: –
    WP Memory Limit: 256 MB
    WP Debug Mode: –
    WP Cron: ?
    Language: bg_BG
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: 7.2.2
    PHP Post Max Size: 20 MB
    PHP Time Limit: 30
    PHP Max Input Vars: 5000
    cURL Version: 7.38.0
    OpenSSL/1.0.1e
    
    SUHOSIN Installed: –
    MySQL Version: 5.5.5-10.1.37-MariaDB
    Max Upload Size: 20 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?
    
    ### Database ###
    
    WC Database Version: 3.5.3
    WC Database Prefix: AI_
    Общ размер на базата данни: 81.44MB
    Размер на базата данни: 52.72MB
    Размер на индекса на базата данни: 28.72MB
    AI_woocommerce_sessions: Данни: 4.92MB + Индекс: 0.15MB
    AI_woocommerce_api_keys: Данни: 0.00MB + Индекс: 0.01MB
    AI_woocommerce_attribute_taxonomies: Данни: 0.00MB + Индекс: 0.00MB
    AI_woocommerce_downloadable_product_permissions: Данни: 0.00MB + Индекс: 0.00MB
    AI_woocommerce_order_items: Данни: 0.18MB + Индекс: 0.07MB
    AI_woocommerce_order_itemmeta: Данни: 0.66MB + Индекс: 0.49MB
    AI_woocommerce_tax_rates: Данни: 0.00MB + Индекс: 0.00MB
    AI_woocommerce_tax_rate_locations: Данни: 0.00MB + Индекс: 0.00MB
    AI_woocommerce_shipping_zones: Данни: 0.00MB + Индекс: 0.00MB
    AI_woocommerce_shipping_zone_locations: Данни: 0.00MB + Индекс: 0.00MB
    AI_woocommerce_shipping_zone_methods: Данни: 0.00MB + Индекс: 0.00MB
    AI_woocommerce_payment_tokens: Данни: 0.00MB + Индекс: 0.00MB
    AI_woocommerce_payment_tokenmeta: Данни: 0.00MB + Индекс: 0.00MB
    AI_woocommerce_log: Данни: 0.00MB + Индекс: 0.00MB
    AI_commentmeta: Данни: 0.00MB + Индекс: 0.01MB
    AI_comments: Данни: 0.36MB + Индекс: 0.11MB
    AI_contact_form_7: Данни: 0.01MB + Индекс: 0.00MB
    AI_econt_city: Данни: 0.48MB + Индекс: 0.61MB
    AI_econt_city_office: Данни: 4.52MB + Индекс: 4.03MB
    AI_econt_country: Данни: 0.02MB + Индекс: 0.02MB
    AI_econt_customer: Данни: 0.02MB + Индекс: 0.05MB
    AI_econt_loading: Данни: 0.33MB + Индекс: 0.02MB
    AI_econt_loading_tracking: Данни: 0.17MB + Индекс: 0.02MB
    AI_econt_office: Данни: 0.27MB + Индекс: 0.03MB
    AI_econt_order: Данни: 0.02MB + Индекс: 0.02MB
    AI_econt_quarter: Данни: 0.23MB + Индекс: 0.27MB
    AI_econt_region: Данни: 0.27MB + Индекс: 0.27MB
    AI_econt_street: Данни: 8.52MB + Индекс: 8.55MB
    AI_econt_zone: Данни: 0.02MB + Индекс: 0.00MB
    AI_failed_jobs: Данни: 0.00MB + Индекс: 0.00MB
    AI_fresh_slider: Данни: 0.00MB + Индекс: 0.00MB
    AI_gen_options: Данни: 0.11MB + Индекс: 0.11MB
    AI_links: Данни: 0.01MB + Индекс: 0.00MB
    AI_mailchimp_carts: Данни: 0.06MB + Индекс: 0.00MB
    AI_options: Данни: 4.78MB + Индекс: 0.65MB
    AI_postmeta: Данни: 17.17MB + Индекс: 10.27MB
    AI_posts: Данни: 7.30MB + Индекс: 1.22MB
    AI_queue: Данни: 0.08MB + Индекс: 0.00MB
    AI_rg_form: Данни: 0.00MB + Индекс: 0.00MB
    AI_rg_form_meta: Данни: 0.03MB + Индекс: 0.00MB
    AI_rg_form_view: Данни: 0.00MB + Индекс: 0.00MB
    AI_rg_lead: Данни: 0.03MB + Индекс: 0.01MB
    AI_rg_lead_detail: Данни: 0.08MB + Индекс: 0.03MB
    AI_rg_lead_detail_long: Данни: 0.16MB + Индекс: 0.00MB
    AI_rg_lead_meta: Данни: 0.00MB + Индекс: 0.00MB
    AI_rg_lead_notes: Данни: 0.00MB + Индекс: 0.00MB
    AI_termmeta: Данни: 0.07MB + Индекс: 0.05MB
    AI_terms: Данни: 0.22MB + Индекс: 0.35MB
    AI_term_relationships: Данни: 0.43MB + Индекс: 0.92MB
    AI_term_taxonomy: Данни: 0.13MB + Индекс: 0.07MB
    AI_usermeta: Данни: 0.14MB + Индекс: 0.09MB
    AI_users: Данни: 0.01MB + Индекс: 0.01MB
    AI_wcpdf_invoice_number: Данни: 0.00MB + Индекс: 0.00MB
    AI_wc_download_log: Данни: 0.00MB + Индекс: 0.00MB
    AI_wc_webhooks: Данни: 0.00MB + Индекс: 0.00MB
    AI_yoast_seo_links: Данни: 0.80MB + Индекс: 0.09MB
    AI_yoast_seo_meta: Данни: 0.11MB + Индекс: 0.12MB
    
    ### Post Type Counts ###
    
    attachment: 2191
    customize_changeset: 2
    feedback: 1
    nav_menu_item: 99
    oembed_cache: 1
    page: 20
    post: 31
    product: 933
    product_variation: 5000
    revision: 421
    shop_coupon: 9
    shop_order: 674
    shop_order_refund: 1
    wp_block: 4
    wpcf7_contact_form: 1
    
    ### Security ###
    
    Secure connection (HTTPS): ?
    Hide errors from visitors: ?
    
    ### Active Plugins (15) ###
    
    Akismet Anti-Spam: от Automattic – 4.1
    Contact Form 7: от Такаюки Миюши – 5.1.1
    Facebook for WooCommerce: от Facebook – 1.9.8 – Не е тествано с активната версия на WooCommerce
    Google XML Sitemaps: от Arne Brachhold – 4.1.0
    Jetpack от WordPress.com: от Automattic – 6.9
    Mailchimp for WooCommerce: от Mailchimp – 2.1.11 – Не е тествано с активната версия на WooCommerce
    Storefront Blog Customiser: от WooCommerce – 1.2.5
    Storefront Mega Menus: от WooCommerce – 1.6.2 – Не е тествано с активната версия на WooCommerce
    Storefront Powerpack: от WooCommerce – 1.4.12 – 1.4.13 е наличен
    WooCommerce Blocks: от Automattic – 1.2.0
    Еконт Експрес - WooCommerce: от Мартин Василев – 1.1.4 – Не е тествано с активната версия на WooCommerce
    WooCommerce Google Analytics Integration: от WooCommerce – 1.4.7
    WooCommerce PDF Invoices & Packing Slips: от Ewout Fernhout – 2.2.5
    WooCommerce: от Automattic – 3.5.3
    Yoast SEO: от Team Yoast – 9.4
    
    ### Settings ###
    
    API Enabled: ?
    Force SSL: ?
    Currency: BGN (лв.)
    Currency Position: right
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 2
    Taxonomies: Product Types: external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)
    
    Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
    exclude-from-search (exclude-from-search)
    featured (featured)
    outofstock (outofstock)
    rated-1 (rated-1)
    rated-2 (rated-2)
    rated-3 (rated-3)
    rated-4 (rated-4)
    rated-5 (rated-5)
    
    ### WC Pages ###
    
    Основна страница на магазина: #9360 - /porachka/
    Количка: #9361 - /kolichka/
    Поръчка: #9362 - /porachka-2/
    Моят профил: #9363 - /moyat-profil/
    Общи условия: #16349 - /%d0%be%d0%b1%d1%89%d0%b8-%d1%83%d1%81%d0%bb%d0%be%d0%b2%d0%b8%d1%8f/
    
    ### Theme ###
    
    Name: Storefront
    Version: 2.3.5 – 2.4.2 е наличен
    Author URL: https://woocommerce.com/
    Child Theme: ? – Ако правите промени в WooCommerce или в родителска тема
    възможно е да имате проблеми с обновленията. Препоръчва се използването на дъщерна тема. Прочетете как се прави дъщерна тема.
    
    WooCommerce Support: ?
    
    ### Templates ###
    
    Overrides: –
    
    AJ a11n

    (@amandasjackson)

    Hi there,

    I see the following message over my blog posts when I update the theme.

    Warning: sprintf(): Too few arguments in …/public_html/wp-content/themes/storefront/inc/storefront-template-functions.php on line 440

    The warning you are seeing may be being caused by text missing in a translation file, or it may be being caused by your PHP version being strict with how the code is being used within Storefront. There is a change in this section in the next release that may fix this, but you may also want to check your translation file to make sure it is correctly translating “Posted on” as shown here:

    https://github.com/woocommerce/storefront/blob/version/2.4.2/inc/storefront-template-functions.php#L440

    For now, if you would like to hide the warning from appearing on your pages, you can turn on WordPress debugging and logging and the warnings will no longer display, they will go to a log.
    https://codex.www.ads-software.com/Debugging_in_WordPress#Example_wp-config.php_for_Debugging

    • This reply was modified 5 years, 10 months ago by AJ a11n.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘”Warning: sprintf(): Too few arguments” over blog posts’ is closed to new replies.