• 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)
  • your <?php if (!is_page()) : does not have an endif; .

    Thread Starter fox-mulder

    (@fox-mulder)

    Hmmm…if that’s really the problem, then it should also give me that error on my local installation of it, but it doesn’t. In any case, I’ll get rid of that and see if that solves the problem. If not, I’ll just comment out everything I don’t want.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Footer.php file generates a Parse Error’ is closed to new replies.