• Hi,

    I’m getting the following error after updating my functions.php

    “Parse error: syntax error, unexpected ‘<‘ in /home/user/lavinmirchandani.com/wordpress/wp-content/themes/monotone/functions.php on line 31”

    I However there is no ‘<‘ on line 31 when I see this code on dreamweaver. I have pasted lines 30 -35 below; line 31 has been boldfaced.

    The error persists even after I replaced the functions.php file with the original file from the theme.

    Please help!
    Thanks.

    <?php
    		while ( have_posts() ) : the_post();
    			// ececute the specific stylesheet
    			print_stylesheet();
    			// determine if an image is vertical or not
    			if(is_vertical(the_image_url(true))) { $vertical = true; }
     		endwhile; rewind_posts(); ?>
    		</style>
    	<?php endif;
    }
    <strong>
    // remove image tag from post_content for display</strong>
    function image_scrape($entry) {
    	// don't scrape the image for the feed
    	if (is_feed()) { return $entry; }
Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter pseudonormicks

    (@pseudonormicks)

    P.S.: the ‘ ‘ is not a part of my code – just placed for convenience of spotting line 31

    Thread Starter pseudonormicks

    (@pseudonormicks)

    Issue sorted!
    The admin frontend editor was showing a wrong code- there was actually an extra ‘<‘ in the file- it seems the file did not get updated properly.

    Issue closed.

    Thanks.

    I’m having exactly the same problem with a brand new installation of WordPress 2.91, although mine is in a different location.

    Parse error: syntax error, unexpected ‘<‘ in /home/inyourwildes/www/www/wp-includes/default-filters.php on line 229

    When I review the file with my ftp editor, there is no unexpected ‘<‘ that I can see.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Parse error: syntax error, unexpected ‘<‘’ is closed to new replies.