Page 1 of 1

suddenly: parse error

Posted: Thu Jan 05, 2012 3:46 am
by denisw
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 &copy; <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.

Re: suddenly: parse error

Posted: Thu Jan 05, 2012 10:24 am
by pickle
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?