• Hello,

    I am locked out of my website and i get this error message on a blank white screen:
    Parse error: syntax error, unexpected ‘<‘ in xxxxxxxxxxxxxxx/functions.php on line 102
    I have tried to upload the functions.php file through cpanel, but that file seems to be incorrect as well.

    Please help!

    This is the code below, line 102 seems to be incorrect, i’m not sure if its missing a php tag, i’m afraid I don’t know much about it.

    if ( ! function_exists( ‘material_post_meta’ ) ) {
    function material_post_meta() {
    echo ‘<ul class=”list-inline entry-meta”>’;

    if ( get_post_type() === ‘post’ ) {
    // If the post is sticky, mark it.
    if ( is_sticky() ) {
    echo ‘<li class=”meta-featured-post”><i class=”fa fa-thumb-tack”></i>’;
    }

    // Get the date.
    line 102 printf(
    ‘<li class=”meta-date”>’.__(‘ Posted on ‘,’material’).’%2$s‘,
    esc_url( get_permalink()),
    get_the_date()
    ) ;

    // Get the post author.
    printf(
    ‘<li class=”meta-author”>’.__(‘ by ‘,’material’).’%2$s‘,
    esc_url( get_author_posts_url( get_the_author_meta( ‘ID’ ) ) ),
    get_the_author()
    );

    }
    }
    }

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Parse error: syntax err, unxpctd '’ is closed to new replies.