unexpected T_STRING (2 posts)

  1. jakej78
    Posted 7 years ago #

    I keep getting this error:
    Parse error: syntax error, unexpected T_STRING in /home/fof/public_html/staff/tommay/wordpress/wp-content/themes/sandbox/index.php on line 39

    The code, lines 37-41.

    <?php get_footer() ?>?php while ( have_posts() ) : the_post() ?>
    			<div id="post-<?php the_ID() ?>" class="<?php sandbox_post_class() ?">
    				<div style="position: relative;">
        <div style="position: absolute; text-align: left; padding-top: 167px; padding-left: 10px;">
            <div id="news"><a href="<?php the_permalink() ?>" title="<?php printf(__('Permalink to %s', 'sandbox'), wp_specialchars(get_the_title(), 1)) ?>" rel="bookmark"><?php the_title() ?></a></div>

    So yeah, how can I fix it?
    Thanks in advance.

  2. leadandfollow
    Posted 7 years ago #

    A good debugging question to ask yourself is, what code did you add right before you saw this error? Anyway, I see two syntax errors.

    On line 37, you have a php code segment starting with only ?php. The start of php code should be <?php.

    On line 38, you have a php code segment ending with only ?. The end of php code should be ?>.

    I'll let you try to find those.

Topic Closed

This topic has been closed to new replies.

About this Topic