Unexpected T_CONSTANT_ENCAPSED_STRING on single.php
-
Hello. I’m trying to test my blog, but run into problems when viewing individual test posts or trying to post test comments. On single.php, I get this error:
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/indulgealunatic/indulgealunatic.org/wp-content/themes/one/single.php on line 25
Line 25 is simply this:
<?php previous_post_link('%link') ?> <?php next_post_link('%link') ?>
I’ve removed some superfluous things from the line to reduce it down to this, and I’ve checked the line multiple times, but I continue to receive this error. I looked the error up on Google and it said it often comes from not having semicolons closing a piece of code, so I tried putting in semicolons after the closing parenthesis but I got the same error. I’ve tried everything I can think of in terms of playing with small things in the line, and I don’t know what else to do.
The site is indulgealunatic.org and you can see the error when you click on the post title links or the “no comments” links.
- The topic ‘Unexpected T_CONSTANT_ENCAPSED_STRING on single.php’ is closed to new replies.