I was trying to remove the date feature, couldnt find exact location, so just searched in each template for the words “Posted on”, and found it in functions.php,
Carefully remarked out two lines, making sure any matching brackets still existed, but when I clicked button to Update File, I got a white screen that said,
“Parse error: syntax error, unexpected ‘<‘, expecting ‘)’ in /home/content/49/6513249/html/wellness/wp-content/themes/twentyeleven/functions.php on line 567”
Did a backpage to get back to code.
Went to other browser and downloaded original theme, opened functions.php in notepad, copied all, pasted all the same code back in,
clicked Update File, and get the same error, cant go to any other link within Admin area, always get the error msg, what to do?
Pasted the original freshly downloaded code into html editing tool, and found that line 567 was this near the bottom in function
and a few lines below that is line 567, this code:
esc_url( get_author_posts_url( get_the_author_meta( ‘ID’ ) ) ),
but dont see the unexpected < to replace it with a ) so I am still lost.
Have already customised (not code) many features, non of which caused errors, am I up a creek?
- The topic ‘[Theme: Twenty Eleven] Edited functions.php, now error at line 567’ is closed to new replies.