Footer.php file generates a Parse Error
-
I’ve setup a local installation for testing my site and it works perfectly fine, without any errors. But if I upload it (all the files) to a hosting service, it generates this error on the site:
Parse error: syntax error, unexpected $end in /home/mc7xdp1h6n52dwjt/******.***/wp-content/themes/******_***/footer.php on line 13
Unfortunately, Line 13 says: </html>, and if I get rid of that, the next line up is </body>, and that generates the same error, with line number changing to 12.
Here’s the full file:
<div id="foot"> <p> <?php bloginfo('name'); ?> powered by <a href="https://www.ads-software.com/">WordPress</a> <?php if (!is_page()) : ?> <!-- <?php echo get_num_queries(); ?> queries. <?php timer_stop(1); ?> seconds. --> </p> </div> </div> <?php wp_footer(); ?> </body> </html>
Any ideas on how to get rid of this error?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Footer.php file generates a Parse Error’ is closed to new replies.