Forums

Travel Blogger Theme custom-header.php error (3 posts)

  1. jalalrf
    Member
    Posted 6 months ago #

    I am receiving the following error on custom-header.php
    Warning: Wrong parameter count for _() in /home/sloki/user/my_userid/sites/losaribeach.info/www/wp-content/themes/travel-blogger/lib/classes/custom-header.php on line 138
    and
    Warning: Wrong parameter count for _() in /home/sloki/user/my_userid/sites/losaribeach.info/www/wp-content/themes/travel-blogger/lib/classes/custom-header.php on line 162

    my pages menu on my blog not appear..

  2. peredur
    Member
    Posted 6 months ago #

    What's on lines 138 and 162 of your custom-header.php file? Clearly it's a call to __(), but what does that call look like?

    Details of the __() function can be checked in this Codex article, and in more detail in this article.

    Basically, __() has one mandatory and one optional argument, so if the call your theme is making has something other than this, that's what's causing the warning.

    You may need to contact the theme's developer to get this permanently fixed.

    Cheers

    PAE

  3. jalalrf
    Member
    Posted 6 months ago #

    lines 138
    <th scope="row"><?php _( 'Upload Image' , 'travelblogger' ); ?></th>

    lines 162
    <th scope="row"><?php _( 'Uploaded Images' , 'travelblogger' ); ?></th>

Reply

You must log in to post.

About this Topic