• 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 &ldquo;%s&rdquo;', '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 &ldquo;%2$s&rdquo;',
    						'%1$s Replies to &ldquo;%2$s&rdquo;',
    						$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.