Title: Parse error on index.php but not on single.php
Last modified: August 20, 2016

---

# Parse error on index.php but not on single.php

 *  [greenmouse](https://wordpress.org/support/users/greenmouse/)
 * (@greenmouse)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/parse-error-on-indexphp-but-not-on-singlephp/)
 * Hello, I´m using theme from elegantwpthemes.com but I got strange error. I made
   simple article template (with custom fields, php include and get_post_meta). 
   I still have parse error on home page (index.php) but article itself is displaying
   correctly (single.php) which is sort of strange. Does anybody same experience
   with php code parsing in wordpress?
 * Here´s error message:
 * > Parse error: syntax error, unexpected ‘?’ in /home/free/ic.cz/w/www-hodinky-
   > guess/root/www/wp-content/plugins/exec-php/includes/runtime.php(42) : eval()’
   > d code on line 3
 * And here´s part of my article template:
 *     ```
       <div class="head-vlevo">
       <img class="uvodni" title="<?php echo get_post_meta(get_the_ID(), "komplet", true); ?>" src="<?php echo get_post_meta(get_the_ID(), "imgurl", true); ?><?php include (ABSPATH . "php/str_komplet.php"); ?>.jpg" height="250px" alt="<?php echo get_post_meta(get_the_ID(), "komplet", true); ?>" />
       </div>
       ```
   
 * I will be happy for any idea how to solve this issue.
    Thanks Michal

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

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/parse-error-on-indexphp-but-not-on-singlephp/#post-2504847)
 * As this is a commercial theme, you need to seek support from the theme’s vendors.
   
   [http://www.elegantthemes.com/forum/](http://www.elegantthemes.com/forum/)
 *  Thread Starter [greenmouse](https://wordpress.org/support/users/greenmouse/)
 * (@greenmouse)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/parse-error-on-indexphp-but-not-on-singlephp/#post-2504866)
 * [This](http://www.elegantwpthemes.com/elegant-watches-another-free-wp-theme/)
   is theme I use and it´s for sure non commercial.
 * Anyway, thanks for your reply.
 *  [Chip Bennett](https://wordpress.org/support/users/chipbennett/)
 * (@chipbennett)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/parse-error-on-indexphp-but-not-on-singlephp/#post-2504891)
 * Regardless, Elegant Themes provides support options for their Themes. If the 
   volunteers who help in these forums provided support for such Themes – even free
   Themes – from commercial Theme shops, then the volunteers essentially become 
   unpaid support staff for that commercial Theme shop.

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

The topic ‘Parse error on index.php but not on single.php’ is closed to new replies.

 * 3 replies
 * 3 participants
 * Last reply from: [Chip Bennett](https://wordpress.org/support/users/chipbennett/)
 * Last activity: [14 years, 4 months ago](https://wordpress.org/support/topic/parse-error-on-indexphp-but-not-on-singlephp/#post-2504891)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
