Warning: PHP Startup: Too few arguments in
-
Hello. I have the warning on my site:
?Warning: PHP Startup: Too few arguments in /wp-content/themes/travel-master/comments.php on line 47″
Line 47:
get_the_title()
I don’t know how to fix it.<div id="comments" class="comments-area"> <?php // You can start editing here -- including this comment! if ( have_comments() ) : ?> <h2 class="comments-title"> <?php $comments_number = get_comments_number(); if ( '1' === $comments_number ) { /* translators: %s: post title */ printf( _x( 'One Reply to “%s”', 'comments title', 'travel-master' ), esc_html( get_the_title() ) ); } else { printf( /* translators: 1: number of comments, 2: post title */ esc_html( _nx( '%1$s Reply to “%2$s”', '%1$s Replies to “%2$s”', $comments_number, 'comments title', 'travel-master' ), number_format_i18n( $comments_number ), get_the_title() ) ); } ?> </h2>
The page I need help with: [log in to see the link]
- The topic ‘Warning: PHP Startup: Too few arguments in’ is closed to new replies.