• hi,

    i just created my website https://www.peteryongra.com and i somehow messed up the function.php

    i cannot log in to https://www.peteryongra.com/wp-admin because of this error:
    Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ‘)’ in /home/namu/public_html/wp-content/themes/imbalance2/functions.php on line 169

    i am expecting that the error is due to a missing ‘)’ but i do not know where to place it or how to log in as i am unable to due so.

    i would sincerely appreciate any help and thank anyone for reading my post with any assistance provided.

    kind regards,
    peter

Viewing 2 replies - 1 through 2 (of 2 total)
  • If you can put the entire functions.php file into a pastebin, someone may be able to help.

    Note that you must use ftp or a File Manager from your hosting service to access and correct functions.php.

    Kind of a late reply, but I was Googling this exact error and found the solution. Maybe this will help someone else….

    The solution was to check the line before what is mentioned in the error message (in your case, line 168) for errors. In my case, though I had the exact same error message referring to a missing “)”, all I needed was to add a comma at the end of the previous line. No “)” needed at all.

    Weird, but true.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')'’ is closed to new replies.