Support » Theme: Poloray » Warning: _() expects exactly 1 parameter, 2 given in

Viewing 12 replies - 1 through 12 (of 12 total)
  • WPyogi


    You’ll have to contact InkThemes for help. It’s a commercial theme – and not supported here.

    It’s a warning that is new in 3.5. It is because of poor coding.

    Charles, it doesn’t have anything to do with that.

    It’s because the theme author misses a underscore/e in the function name on this line:

    <li class="posted_by"><?php _( 'By', 'poloray' ); ?>&nbsp;&nbsp; <?php the_author_posts_link(); ?></li>

    It should be __() or _e() not _().

    Quite strange how the theme author nor the reviews haven’t noticed that.

    Yes your right. I thought it was the prepare issue without looking at the function.

    Theme Author


    Thanks for listing the issue. I am submitting the update for this issue.


    Theme Author


    I have submitted the update for this. I am marking this topic as resolved.


    Theme Author is already possible to download?
    Download Version 1.0.0 ?

    Thanks Jesper Johansen (Jayjdk)!
    line 41
    <li class=”posted_by”><?php __( ‘By’, ‘poloray’ ); ?>   <?php the_author_posts_link(); ?>

    Hi everybody,

    I have the same problem with the poloray theme. it goes like this when I do the post or when I try to set the static page it is fine but when I change it to your latest post the problem happens . Unfortunately, I can’t set the home as the static front page I don’t see the option of making the home as the static front page:

    Warning: _() expects exactly 1 parameter, 2 given in /home/u517279381/public_html/wp-content/themes/poloray/single.php on line 41

    I try to solve the problem as above mentioned but it didn’t work. I found the code in the editor of the wordpress theme and it is already: <li class=”posted_by”><?php _e as it said it is correct, and then I’ve tried to use the underscore but it still didn’t work.

    Can you figure out what is really going on? And can you tell me how to solve it?

    Thank you.

    Hi all!

    I am a novice-so bear with me. I’m having the same issue but don’t even know under what header in the theme editor I should find this code. A little help please.

    Tx in advance!

    LOL, six months later…

    The file that needs this edit is single.php. It occurs on line 41. Suggest replacing the line entirely.

    Old Code to remove
    <li class="posted_by"><?php _( 'By', 'poloray' ); ?>&nbsp;&nbsp; <?php the_author_posts_link(); ?></li>

    New code to add in its place
    <li class="posted_by"><?php __( 'By', 'poloray' ); ?> <?php the_author_posts_link(); ?>

    I am a TOTAL newb to messing about with code, so thank you SO much for spelling it out that clearly!! It worked. My website is fixed!!

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Warning: _() expects exactly 1 parameter, 2 given in’ is closed to new replies.