Warning: sprintf(): Too few arguments - by yankovnet

This topic has 9 replies, 2 voices, and was last updated 6 years, 6 months ago ago by Rose Tyler

  • Avatar: yankovnet
    yankovnet
    Participant
    September 24, 2017 at 17:26

    hi

    Error –

    Warning: sprintf(): Too few arguments in /wp-content/themes/royal/woocommerce/single-product/product-image.php on line 86

    I edit line 86, with last versions

    <?php echo apply_filters( ‘woocommerce_single_product_image_html’, sprintf( ‘%s‘, $image_link, $image_link, $image_srcset, $image_src[0], $image_title, $image ), $post->ID ); ?>

    and it works fine.

    Is this ok?

    8 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    September 25, 2017 at 08:08

    Hello,

    Do you use a child theme? https://codex.wordpress.org/Child_Themes
    We do not have this warning on our test installation, so please try to delete “woocommerce” folder, which is located in wp-content/themes/royal/ and upload woocommerce folder from the latest theme archive that you may download on ThemeForest.

    Regards

    Avatar: yankovnet
    yankovnet
    Participant
    September 25, 2017 at 18:54

    I use a child theme with no change from here – https://www.8theme.com/download-plugins/?file=43619

    I try to upload only woocommerce folder from lates theme files same error.

    site works with modify product-image.php

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    September 26, 2017 at 08:31

    Hello,

    Please provide wp-admin and FTP access in Private Content.

    Regards

    Avatar: yankovnet
    yankovnet
    Participant
    October 2, 2017 at 21:58

    here are wp-admin and FTP access

    Please, contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    October 3, 2017 at 08:30

    Hello,

    Thank you. How can I see this warning? I’ve enabled debug mode, but do not see the problem.

    Regards

    Avatar: yankovnet
    yankovnet
    Participant
    October 3, 2017 at 08:47

    When you replace /themes/royal/woocommerce/single-product/product-image.php with original one .. you will see the error.

    Now I use modify version the product-image.php

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    October 3, 2017 at 10:59

    Oh I see, I will pass this topic to our developers, you will be informed once they check your problem.

    Regards

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    October 4, 2017 at 13:45

    Hello, @yankovnet,

    Thank you for the notice. It will be fixed in next theme update.

    Regards

  • Viewing 9 results - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.