There is a notice in the single-product.php woocommerce, The photo is in the description











up vote
1
down vote

favorite












Notice: Theme without comments.php is deprecated since version 3.0 with no alternative available. Please include a comments.php template in your theme. in /--/--/--/--/wp-includes/functions.php on line 3984.



There is a notice in the single-product.php woocommerce file
,I see list of comments but have this notice



also i added comments.php in my theme



this comments.php file in theme



<?php
/*
* If the current post is protected by a password and the visitor has not yet
* entered the password we will return early without loading the comments.
*/
if ( post_password_required() )
return;
?>
<div id="comments" class="comments-area">
<?php if ( have_comments() ) : ?>
<h2 class="comments-title">
<?php
printf( _nx( 'One thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', get_comments_number(), 'comments title', 'ivanhoe' ),
number_format_i18n( get_comments_number() ), '<span>' . get_the_title() . '</span>' );
?>
</h2>
<ol class="commentlist">
<?php
wp_list_comments( array(
'style' => 'ol',
'short_ping' => true,
'avatar_size' => 74,
) );
?>
</ol><!-- .comment-list -->
<?php
// Are there comments to navigate through?
if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) :
?>
<nav class="navigation comment-navigation" role="navigation">
<h1 class="screen-reader-text section-heading"><?php _e( 'Comment navigation', 'ivanhoe' ); ?></h1>
<div class="nav-previous"><?php previous_comments_link( __( '&larr; Older Comments', 'ivanhoe' ) ); ?></div>
<div class="nav-next"><?php next_comments_link( __( 'Newer Comments &rarr;', 'ivanhoe' ) ); ?></div>
</nav><!-- .comment-navigation -->
<?php endif; // Check for comment navigation ?>
<?php if ( ! comments_open() && get_comments_number() ) : ?>
<p class="no-comments"><?php _e( 'Comments are closed.' , 'ivanhoe' ); ?></p>
<?php endif; ?>
<?php endif; // have_comments() ?>
<?php comment_form(); ?>
</div><!-- #comments -->









share|improve this question









New contributor




jackma is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • As the error message says: the theme you are using is missing the comments.php template file. Please ask the theme provider to include this template or create the comments template file on your own.
    – chris.ribal
    2 days ago












  • I am the designer of this theme myself also i add comments.php file in my theme and template but i have this notice in single-product.php woocommerce file but i dont have this notice in single-post.php file
    – jackma
    2 days ago










  • can you post your comments.php file?
    – Vel
    2 days ago










  • and are you using this function comments_template() anywhere any plugins and theme? check in all plugins
    – Vel
    2 days ago












  • woocommerce 3.5.1 and wordpress 4.9.8, yes i used comments_template in single-post.php
    – jackma
    2 days ago















up vote
1
down vote

favorite












Notice: Theme without comments.php is deprecated since version 3.0 with no alternative available. Please include a comments.php template in your theme. in /--/--/--/--/wp-includes/functions.php on line 3984.



There is a notice in the single-product.php woocommerce file
,I see list of comments but have this notice



also i added comments.php in my theme



this comments.php file in theme



<?php
/*
* If the current post is protected by a password and the visitor has not yet
* entered the password we will return early without loading the comments.
*/
if ( post_password_required() )
return;
?>
<div id="comments" class="comments-area">
<?php if ( have_comments() ) : ?>
<h2 class="comments-title">
<?php
printf( _nx( 'One thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', get_comments_number(), 'comments title', 'ivanhoe' ),
number_format_i18n( get_comments_number() ), '<span>' . get_the_title() . '</span>' );
?>
</h2>
<ol class="commentlist">
<?php
wp_list_comments( array(
'style' => 'ol',
'short_ping' => true,
'avatar_size' => 74,
) );
?>
</ol><!-- .comment-list -->
<?php
// Are there comments to navigate through?
if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) :
?>
<nav class="navigation comment-navigation" role="navigation">
<h1 class="screen-reader-text section-heading"><?php _e( 'Comment navigation', 'ivanhoe' ); ?></h1>
<div class="nav-previous"><?php previous_comments_link( __( '&larr; Older Comments', 'ivanhoe' ) ); ?></div>
<div class="nav-next"><?php next_comments_link( __( 'Newer Comments &rarr;', 'ivanhoe' ) ); ?></div>
</nav><!-- .comment-navigation -->
<?php endif; // Check for comment navigation ?>
<?php if ( ! comments_open() && get_comments_number() ) : ?>
<p class="no-comments"><?php _e( 'Comments are closed.' , 'ivanhoe' ); ?></p>
<?php endif; ?>
<?php endif; // have_comments() ?>
<?php comment_form(); ?>
</div><!-- #comments -->









share|improve this question









New contributor




jackma is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • As the error message says: the theme you are using is missing the comments.php template file. Please ask the theme provider to include this template or create the comments template file on your own.
    – chris.ribal
    2 days ago












  • I am the designer of this theme myself also i add comments.php file in my theme and template but i have this notice in single-product.php woocommerce file but i dont have this notice in single-post.php file
    – jackma
    2 days ago










  • can you post your comments.php file?
    – Vel
    2 days ago










  • and are you using this function comments_template() anywhere any plugins and theme? check in all plugins
    – Vel
    2 days ago












  • woocommerce 3.5.1 and wordpress 4.9.8, yes i used comments_template in single-post.php
    – jackma
    2 days ago













up vote
1
down vote

favorite









up vote
1
down vote

favorite











Notice: Theme without comments.php is deprecated since version 3.0 with no alternative available. Please include a comments.php template in your theme. in /--/--/--/--/wp-includes/functions.php on line 3984.



There is a notice in the single-product.php woocommerce file
,I see list of comments but have this notice



also i added comments.php in my theme



this comments.php file in theme



<?php
/*
* If the current post is protected by a password and the visitor has not yet
* entered the password we will return early without loading the comments.
*/
if ( post_password_required() )
return;
?>
<div id="comments" class="comments-area">
<?php if ( have_comments() ) : ?>
<h2 class="comments-title">
<?php
printf( _nx( 'One thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', get_comments_number(), 'comments title', 'ivanhoe' ),
number_format_i18n( get_comments_number() ), '<span>' . get_the_title() . '</span>' );
?>
</h2>
<ol class="commentlist">
<?php
wp_list_comments( array(
'style' => 'ol',
'short_ping' => true,
'avatar_size' => 74,
) );
?>
</ol><!-- .comment-list -->
<?php
// Are there comments to navigate through?
if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) :
?>
<nav class="navigation comment-navigation" role="navigation">
<h1 class="screen-reader-text section-heading"><?php _e( 'Comment navigation', 'ivanhoe' ); ?></h1>
<div class="nav-previous"><?php previous_comments_link( __( '&larr; Older Comments', 'ivanhoe' ) ); ?></div>
<div class="nav-next"><?php next_comments_link( __( 'Newer Comments &rarr;', 'ivanhoe' ) ); ?></div>
</nav><!-- .comment-navigation -->
<?php endif; // Check for comment navigation ?>
<?php if ( ! comments_open() && get_comments_number() ) : ?>
<p class="no-comments"><?php _e( 'Comments are closed.' , 'ivanhoe' ); ?></p>
<?php endif; ?>
<?php endif; // have_comments() ?>
<?php comment_form(); ?>
</div><!-- #comments -->









share|improve this question









New contributor




jackma is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











Notice: Theme without comments.php is deprecated since version 3.0 with no alternative available. Please include a comments.php template in your theme. in /--/--/--/--/wp-includes/functions.php on line 3984.



There is a notice in the single-product.php woocommerce file
,I see list of comments but have this notice



also i added comments.php in my theme



this comments.php file in theme



<?php
/*
* If the current post is protected by a password and the visitor has not yet
* entered the password we will return early without loading the comments.
*/
if ( post_password_required() )
return;
?>
<div id="comments" class="comments-area">
<?php if ( have_comments() ) : ?>
<h2 class="comments-title">
<?php
printf( _nx( 'One thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', get_comments_number(), 'comments title', 'ivanhoe' ),
number_format_i18n( get_comments_number() ), '<span>' . get_the_title() . '</span>' );
?>
</h2>
<ol class="commentlist">
<?php
wp_list_comments( array(
'style' => 'ol',
'short_ping' => true,
'avatar_size' => 74,
) );
?>
</ol><!-- .comment-list -->
<?php
// Are there comments to navigate through?
if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) :
?>
<nav class="navigation comment-navigation" role="navigation">
<h1 class="screen-reader-text section-heading"><?php _e( 'Comment navigation', 'ivanhoe' ); ?></h1>
<div class="nav-previous"><?php previous_comments_link( __( '&larr; Older Comments', 'ivanhoe' ) ); ?></div>
<div class="nav-next"><?php next_comments_link( __( 'Newer Comments &rarr;', 'ivanhoe' ) ); ?></div>
</nav><!-- .comment-navigation -->
<?php endif; // Check for comment navigation ?>
<?php if ( ! comments_open() && get_comments_number() ) : ?>
<p class="no-comments"><?php _e( 'Comments are closed.' , 'ivanhoe' ); ?></p>
<?php endif; ?>
<?php endif; // have_comments() ?>
<?php comment_form(); ?>
</div><!-- #comments -->






php wordpress woocommerce






share|improve this question









New contributor




jackma is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




jackma is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited 2 days ago





















New contributor




jackma is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 2 days ago









jackma

134




134




New contributor




jackma is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





jackma is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






jackma is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












  • As the error message says: the theme you are using is missing the comments.php template file. Please ask the theme provider to include this template or create the comments template file on your own.
    – chris.ribal
    2 days ago












  • I am the designer of this theme myself also i add comments.php file in my theme and template but i have this notice in single-product.php woocommerce file but i dont have this notice in single-post.php file
    – jackma
    2 days ago










  • can you post your comments.php file?
    – Vel
    2 days ago










  • and are you using this function comments_template() anywhere any plugins and theme? check in all plugins
    – Vel
    2 days ago












  • woocommerce 3.5.1 and wordpress 4.9.8, yes i used comments_template in single-post.php
    – jackma
    2 days ago


















  • As the error message says: the theme you are using is missing the comments.php template file. Please ask the theme provider to include this template or create the comments template file on your own.
    – chris.ribal
    2 days ago












  • I am the designer of this theme myself also i add comments.php file in my theme and template but i have this notice in single-product.php woocommerce file but i dont have this notice in single-post.php file
    – jackma
    2 days ago










  • can you post your comments.php file?
    – Vel
    2 days ago










  • and are you using this function comments_template() anywhere any plugins and theme? check in all plugins
    – Vel
    2 days ago












  • woocommerce 3.5.1 and wordpress 4.9.8, yes i used comments_template in single-post.php
    – jackma
    2 days ago
















As the error message says: the theme you are using is missing the comments.php template file. Please ask the theme provider to include this template or create the comments template file on your own.
– chris.ribal
2 days ago






As the error message says: the theme you are using is missing the comments.php template file. Please ask the theme provider to include this template or create the comments template file on your own.
– chris.ribal
2 days ago














I am the designer of this theme myself also i add comments.php file in my theme and template but i have this notice in single-product.php woocommerce file but i dont have this notice in single-post.php file
– jackma
2 days ago




I am the designer of this theme myself also i add comments.php file in my theme and template but i have this notice in single-product.php woocommerce file but i dont have this notice in single-post.php file
– jackma
2 days ago












can you post your comments.php file?
– Vel
2 days ago




can you post your comments.php file?
– Vel
2 days ago












and are you using this function comments_template() anywhere any plugins and theme? check in all plugins
– Vel
2 days ago






and are you using this function comments_template() anywhere any plugins and theme? check in all plugins
– Vel
2 days ago














woocommerce 3.5.1 and wordpress 4.9.8, yes i used comments_template in single-post.php
– jackma
2 days ago




woocommerce 3.5.1 and wordpress 4.9.8, yes i used comments_template in single-post.php
– jackma
2 days ago












1 Answer
1






active

oldest

votes

















up vote
1
down vote



accepted










Add this code in functions.php file



add_theme_support('woocommerce');





share|improve this answer





















  • thanks a lot Vel it is working fine
    – jackma
    2 days ago











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});






jackma is a new contributor. Be nice, and check out our Code of Conduct.










 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53373793%2fthere-is-a-notice-in-the-single-product-php-woocommerce-the-photo-is-in-the-des%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
1
down vote



accepted










Add this code in functions.php file



add_theme_support('woocommerce');





share|improve this answer





















  • thanks a lot Vel it is working fine
    – jackma
    2 days ago















up vote
1
down vote



accepted










Add this code in functions.php file



add_theme_support('woocommerce');





share|improve this answer





















  • thanks a lot Vel it is working fine
    – jackma
    2 days ago













up vote
1
down vote



accepted







up vote
1
down vote



accepted






Add this code in functions.php file



add_theme_support('woocommerce');





share|improve this answer












Add this code in functions.php file



add_theme_support('woocommerce');






share|improve this answer












share|improve this answer



share|improve this answer










answered 2 days ago









Vel

5,98041843




5,98041843












  • thanks a lot Vel it is working fine
    – jackma
    2 days ago


















  • thanks a lot Vel it is working fine
    – jackma
    2 days ago
















thanks a lot Vel it is working fine
– jackma
2 days ago




thanks a lot Vel it is working fine
– jackma
2 days ago










jackma is a new contributor. Be nice, and check out our Code of Conduct.










 

draft saved


draft discarded


















jackma is a new contributor. Be nice, and check out our Code of Conduct.













jackma is a new contributor. Be nice, and check out our Code of Conduct.












jackma is a new contributor. Be nice, and check out our Code of Conduct.















 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53373793%2fthere-is-a-notice-in-the-single-product-php-woocommerce-the-photo-is-in-the-des%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

MongoDB - Not Authorized To Execute Command

How to fix TextFormField cause rebuild widget in Flutter

in spring boot 2.1 many test slices are not allowed anymore due to multiple @BootstrapWith