suddenly: parse error

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
denisw
Forum Newbie
Posts: 14
Joined: Mon Jul 24, 2006 11:21 pm

suddenly: parse error

Post 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.
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: suddenly: parse error

Post 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?
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Post Reply