WordPress.org

Forums

What Do I do About a Parse Error in My Theme (4 posts)

  1. satyre08
    Member
    Posted 4 years ago #

    I have a message on the front page of my blog that says:
    Parse error: syntax error, unexpected ',', expecting ')' in /home/myusername/public_html/wp-content/themes/less-is-less/footer.php on line 11.
    Here is that line:
    <p id="lessisless"><?php echo _e(, "mandm"); ?></p>
    I don't understand what I need to do to make the message on the front page of my blog go away.
    What should I do?

  2. jrav001
    Member
    Posted 4 years ago #

    That comma after the ( and before "mandm" is probably causing the problem. Try commenting that line out and see what happens.

  3. satyre08
    Member
    Posted 4 years ago #

    Yep, that comma was the problem! Thanks a lot!

  4. Jeremy Pry
    Member
    Posted 4 years ago #

    The problem is that the function _e() takes two arguments, but you only supplied one. Check out the codex for exactly how to use that function: http://codex.wordpress.org/Function_Reference/_e

Topic Closed

This topic has been closed to new replies.

About this Topic