Forums

Parse error on index.php but not on single.php (4 posts)

  1. greenmouse
    Member
    Posted 4 months ago #

    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

  2. esmi
    Theme Diva & Forum Moderator
    Posted 4 months ago #

    As this is a commercial theme, you need to seek support from the theme's vendors.
    http://www.elegantthemes.com/forum/

  3. greenmouse
    Member
    Posted 4 months ago #

    This is theme I use and it´s for sure non commercial.

    Anyway, thanks for your reply.

  4. Chip Bennett
    Member
    Posted 4 months ago #

    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.

Reply

You must log in to post.

About this Topic

Tags