(PHP error) Parse error: syntax error, unexpected $end

Discussion in 'PHP' started by Mafia Penguin, Jun 1, 2010.

  1. #1
    Hi there!

    I was editing my code and, i don't know how, but i got this error.

    "Parse error: syntax error, unexpected $end in /home/content/97/5692197/html/wp-content/themes/filmhammer_freshly3/homepage.php on line 49"

    Her is the PHP...

    <?php
    /*
    Template Name: HomePage
    */
    ?><?php get_header(); ?>
    <div class="art-contentLayout">
    <div class="art-content">
    <php aka_show_articles(); ?>
    <?php if (have_posts()) : while (have_posts()) : the_post(); $our_custom_field_variable = get_post_meta($post->ID, 'trailer', true);?> 
    <div class="art-Post-inner art-article">
    <div class="art-homePost">
    <div class="art-Post-body">
    
    <div class="art-PostContent">
    
    <div class="art-pollBox">
    <div class="art-pollBoxHeader">The Featured Poll</div>
    <?php get_poll(4); ?>
    </div>
    <div class="art-columnDivide">
    </div>
    <div class="art-welcomeBox">
    <div class="art-welcomeBoxHeader">
    Welcome!
    </div>
    <div class="art-welcomeBoxTitleText">
    ...film fans, lovers, creators and bored internet users to filmhammer.com!
    </div>
    <div class="art-welcomeBoxText">
    Read reviews, watch trailers, post comments, vote in polls and rate the films you have seen depending on what you thought of it all within an easy to use, simple enviroment.
    </div>
    <div class="art-welcomeBoxTextEnjoy">...Enjoy!</div>
    </div>
    
    <div class="art-randomButton"></div>
    
    <?php if (is_search()) the_excerpt(); else the_content(__('Read the rest of this entry &raquo;', 'kubrick')); ?> 
    <?php if (is_page() or is_single()) wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
    
            
    </div>
    <div class="cleared"></div>
    <?php ob_start(); ?>
    <?php $icons = array(); ?>
    <?php if (!is_page()): ?><?php ob_start(); ?><?php printf(__('Posted in %s', 'kubrick'), get_the_category_list(', ')); ?>
    <?php $icons[] = ob_get_clean(); ?><?php endif; ?><?php if (!is_page() && get_the_tags()): ?><?php ob_start(); ?><img src="<?php bloginfo('template_url'); ?>/images/PostTagIcon.png" width="18" height="18" alt="" />
    <?php the_tags(__('Tags:', 'kubrick') . ' ', ', ', ' '); ?>
    <?php $icons[] = ob_get_clean(); ?><?php endif; ?><?php if (!is_page() && !is_single()): ?><?php ob_start(); ?><img src="<?php bloginfo('template_url'); ?>/images/PostCommentsIcon.png" width="17" height="15" alt="" />
    <?php comments_popup_link(__('No Comments »', 'kubrick'), __('1 Comment »', 'kubrick'), __('% Comments »', 'kubrick'), '', __('Comments Closed', 'kubrick'
    PHP:
    If you could help me solve this problem, that would be spectacular!

    Thanks for your time.
     
    Mafia Penguin, Jun 1, 2010 IP
  2. MyVodaFone

    MyVodaFone Well-Known Member

    Messages:
    1,048
    Likes Received:
    42
    Best Answers:
    10
    Trophy Points:
    195
    #2
    From what you have posted, this is not the full code, for example the last line has no closing php tag ?> and your missing a few )) brackets
     
    MyVodaFone, Jun 1, 2010 IP
  3. Mafia Penguin

    Mafia Penguin Peon

    Messages:
    64
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    My bad, i stupidly, without realising, deleted the entire end to my code.

    Never mind :p Its fixed now.

    Thankyou :)
     
    Mafia Penguin, Jun 1, 2010 IP
  4. roopajyothi

    roopajyothi Active Member

    Messages:
    1,302
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    80
    #4

    Hey where is the end code for this script??
     
    roopajyothi, Jun 1, 2010 IP
  5. Mafia Penguin

    Mafia Penguin Peon

    Messages:
    64
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Yeah, i don't know how it happened but i deleted it. Thats what gave me the error.

    I didn't realise, but it's fixed now, sorry for bothering you. :)
     
    Mafia Penguin, Jun 1, 2010 IP