Hi All,
I have 2 wordpress sites, hosted on the same hosting.
So far everything is running well, until few days ago I found a little php error msg appear on the both sites.
The error messages:
Parse error: syntax error, unexpected ';', expecting T_STRING or T_VARIABLE or '$' in /home/bhaguzco/public_html/wp-content/themes/Invoke/footer.php on line 2
The suspected error line contains:
<div id="footer">Copyright © <a href="<?php bloginfo('home'); ?>"><strong><?php bloginfo('name'); ?></strong></a> - <?php bloginfo('description'); ?></div>
I'm sure there is no any alteration on the original file.
Need advice. Thanks.
suddenly: parse error
Moderator: General Moderators
Re: suddenly: parse error
Put the separate <?php ... ?> sections on separate lines & see what changes (if anything). There's also a chance the error exists before this line. Can you post the entire top of the file?
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.