WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Theme index.php HELP!!! (12 posts)

  1. ju1ie
    Member
    Posted 8 years ago #

    Okay, I desperately need help with my current layout/theme. I'm using the warm and dry theme, and ever since last night, to all day this afternoon, I have been re-editing/editing it out, and I can't figure out why I'm getting this error: Parse error: parse error, unexpected '?' in /home/loveju1/public_html/wp-content/themes/dryandwarm/index.php on line 154

    I don't know why i'm getting this error. It never happend to me before. If anyone can help me immediately, that would be great! I don't know what i'm doing wrong. Please help!!

    Thanks

    Julie

  2. moshu
    Member
    Posted 8 years ago #

    So, what do you have on line 154?

    (and don't yell in the title!)

  3. ju1ie
    Member
    Posted 8 years ago #

    I wasn't yelling. I'm just really desperate to have it fixed; plus, i'm extremely frustrated, because i have been literally trying to fix it all day.. I don't know what you mean.....when you say, what i have online 154. I don't know what that means. I'm sorta new to all of this stuff....

  4. moshu
    Member
    Posted 8 years ago #

    (On the internet using only uppercase = yelling.)

    I understand it's new for you, but if you are editing/re-editing your theme's files I suppose you have some basic knowledge what are you doing. E.g. in every decent editor there is line numbering.
    If you cannot fix your theme I suggest you download it again and upload the fresh version.
    And for the future: before you start editing always make a backup copy, so if anything goes wrong you always have a clean, unmodified file to use.

  5. ju1ie
    Member
    Posted 8 years ago #

    I have done that already...I always have a fresh copy of the index.php with the theme, but i don't understand what the error means. I do know what i'm doing when i'm editing with the editor, but i can't seem to get rid of this error. I have done literally everything I can think of, and don't know what else to do.

  6. skulled
    Member
    Posted 8 years ago #

    Can you post the code from your index.php file here and give the link:

    http://pastebin.com

    That might be more helpful ..

  7. ju1ie
    Member
    Posted 8 years ago #

  8. skulled
    Member
    Posted 8 years ago #

    I think you misunderstood me ..

    We need to see the actual code inside index.php and perhaps even header.php/footer.php, not the error displayed in the browser.

    So open the files up and paste the entire code in the file to the link I gave you, and this will provide you with a link to the code that you posted, which you can post back here, so that we can see the actual code.

    If you have any questions on how to do this post back ..

  9. ju1ie
    Member
    Posted 8 years ago #

  10. skulled
    Member
    Posted 8 years ago #

    Ok here's is what seems to be the problem:

    If you look at the code, around line 149 you see this bit:


    <?php if(function_exists('zc_show_events')) :
    zc_show_events();
    endif;?

    Change this to:


    <?php if(function_exists('zc_show_events')) :
    zc_show_events();
    endif;?>

    That should take out the parse error ..

  11. ju1ie
    Member
    Posted 8 years ago #

    Thanks soo much! I will try that. I will post here again, if I have any more problems with this error. Hopefully, I won't though. :) Thanks, again for the fast responses. :) I really really, REALLY appreciate it! :)

  12. skulled
    Member
    Posted 8 years ago #

    No Problem.

    Glad to be of help. :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.