This topic has 9 replies, 2 voices, and was last updated 7 years, 1 months ago ago by Rose Tyler
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?
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
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
Hello,
Please provide wp-admin and FTP access in Private Content.
Regards
here are wp-admin and FTP access
Hello,
Thank you. How can I see this warning? I’ve enabled debug mode, but do not see the problem.
Regards
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
Oh I see, I will pass this topic to our developers, you will be informed once they check your problem.
Regards
Hello, @yankovnet,
Thank you for the notice. It will be fixed in next theme update.
Regards
You must be logged in to reply to this topic.Log in/Sign up