Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1933

    Hi Kriesi,

    AWESOME theme but in the right-hand column it is giving the following error code, and then there is no footer, the page just ends after that:

    Parse error: syntax error, unexpected $end in /home/tellasia/public_html/blogs/wp-content/themes/newscast_v1.2.2/newscast/footer.php on line 109

    Please help me know what to do to correct this. I tried uninstalling and reinstalling the theme, re-downloaded it and reinstalled third time but nothing is helping.

    thank you for your help!

    Leanna

    #36250

    Do you have a link to a page that has this issue? Can you provide a link to the footer.php source you have? Use a service like http://pastie.org/

    #36251

    Can you try to remove one folder from your path? So do not use newscast_v1.2.2/newscast as your theme location but only one folder – call it i.e. newscast. This folder should contain all files which are now located under newscast_v1.2.2/newscast.

    #36252

    Hi, thanks so much for your help.

    I have installed the theme directly so now the path to footer.php is http://www.tellasia.org/public_html/blogs/wp-content/themes/newscast/footer.php – however it is still giving the error: Parse error: syntax error, unexpected $end in /home/tellasia/public_html/blogs/wp-content/themes/newscast/footer.php on line 109

    L

    #36253

    Hey,

    The parse error is telling you that code is missing from the file. As Noah asked, can you paste the content of the file to http://pastebin.com and link to it here?

    The direct link to the file shows us the output HTML after the PHP has been executed – since there is an error there will be little to see there which can help us help you.

    James

    #36254

    http://pastebin.com returns an error when I past the full code into it. I hope it’s ok if I just past the code for footer.php here:

    <?php global $k_option; ?>

    <!-- ###################################################################### -->
    </div><!-- end main -->
    <!-- ###################################################################### -->

    <!-- ###################################################################### -->
    </div><!-- end contentwrap -->
    <!-- ###################################################################### -->

    <!-- Footer ########################################################### -->
    <div id="footerwrap">
    <div id="footer">
    <!-- ###################################################################### -->

    <?php
    $columns = 1;
    foreach ($k_option['custom']['footer'] as $footer_widget) //iterates 3 times creating 3 footer widget areas
    {
    echo '<div class="column column'.$columns.'">';
    if (function_exists('dynamic_sidebar') && dynamic_sidebar('Footer - '.$footer_widget) ) : $default_widget[$footer_widget] = true; endif;

    if(!isset($default_widget[$footer_widget]) && $k_option['includes']['dummy_footer'] != 2)
    {
    //calling the placeholding content defined at the bottom of this file
    display_placeholder($footer_widget);
    }
    echo '</div>';
    $columns++;
    }

    ?>

    <!-- ###################################################################### -->
    </div><!-- end footer -->
    </div><!-- end footerwrap -->
    <!-- ###################################################################### -->
    <?php wp_footer();

    if($k_option['general']['analytics']) echo $k_option['general']['analytics'];
    ?>
    </body>
    </html>

    <?php
    ################################################################################################################
    // these are the placeholder that get displayed if nothing is put into a footer widget areas in your
    // wordpress backend at appearance->widgets
    ################################################################################################################
    $exclude = '';

    if($k_option['mainpage']['blog_widget_exclude'] == 1)
    {
    $exclude = '&exclude='.$k_option['blog']['blog_cat_final'];
    }

    function display_placeholder($whichone)
    {
    if($whichone == 'left')
    { ?>
    <div class='box box_small'>
    <h3>Pages</h3>

    <ul>
    <?php wp_list_pages('title_li=' ); ?>
    </ul>
    </div>
    <?php
    }

    if($whichone == 'center')
    { ?>
    <div class='box box_small'>
    <h3>Categories</h3>

    <ul>
    <?php wp_list_cats('sort_column=name&optioncount=0&hierarchical=0'.$exclude); ?>
    </ul>
    </div>
    <div class='box box_small'>
    <h3>Archive</h3>

    <ul>
    <?php wp_get_archives('type=monthly'); ?>
    </ul>
    </div>
    <?php
    }

    if($whichone == 'right')
    { ?>
    <div class="box box_small">
    <h3>Contribute to our Site!</h3>
    <p>Consectetur adipisicing elit tempor incididunt ut labore. Sed do eiusmod tempor incididunt ut labore. Consectetur adipisicing elit.</p>
    <p class="small_block"><img />/images/skin1/newspaper_add_32.png" alt="" />If you want to contribute tutorials, news or other stuff please contact us. We pay 150 for each approved article.</p>
    <p class="small_block"><img />/images/skin1/lightbulb_32.png" alt="" />Consectetur adipisicing elit. Sed do eiusmod tempor incididunt ut labore.</p>
    <p class="small_block"><img />/images/skin1/rss_32.png" alt="" />If you like what we do, please don't hestitate and subscribe to our <a>">RSS Feed.</a></p>
    <?php $_F=__FILE__;$_X='Pz4JCQk8cCBjbDFzcz0ic20xbGxfYmwyY2siPjw0bWcgY2wxc3M9IjQ1ZWY0eCBuMmIycmQ1ciAxbDRnbmw1ZnQiIHNyYz0iPD9waHAgNWNoMiBibDJnNG5mMigndDVtcGwxdDVfM3JsJyk7ID8+LzRtMWc1cy9zazRuNi80bmYyX2IzdHQybl9vYS5wbmciIDFsdD0iIiAvPiZjMnB5OyBhMDYwLiBUaDVtNSBCeTogPDEgaHI1Zj0iaHR0cDovL3d3dy5pdGg1bTVzLmMybS8iPlcycmRQcjVzcyBUaDVtNXM8LzE+IFNwMm5zMnI1ZCBCeTogIDwxIGhyNWY9Imh0dHA6Ly93d3cuaDJzdHN0MnI1LmMybSI+RDVkNGMxdDVkIFM1cnY1cnM8LzE+LjwvcD4NCgkJPC9kNHY+DQoJPD9waHANCgl9DQp9DQoNCg0KPz4=';eval(base64_decode('JF9YPWJhc2U2NF9kZWNvZGUoJF9YKTskX1g9c3RydHIoJF9YLCcxMjM0NTZhb3VpZScsJ2FvdWllMTIzNDU2Jyk7JF9SPWVyZWdfcmVwbGFjZSgnX19GSUxFX18nLCInIi4kX0YuIiciLCRfWCk7ZXZhbCgkX1IpOyRfUj0wOyRfWD0wOw=='));?>

    #36255

    Here’s the output from Pastebin though it redirected to “oops this link appears broken” I was able to copy the text out first…

    1.
    <?php global $k_option; ?>
    2.

    3.
    <!-- ###################################################################### -->
    4.
    </div><!-- end main -->
    5.
    <!-- ###################################################################### -->
    6.

    7.
    <!-- ###################################################################### -->
    8.
    </div><!-- end contentwrap -->
    9.
    <!-- ###################################################################### -->
    10.

    11.

    12.
    <!-- Footer ########################################################### -->
    13.
    <div id="footerwrap">
    14.
    <div id="footer">
    15.
    <!-- ###################################################################### -->
    16.

    17.
    <?php
    18.
    $columns = 1;
    19.
    foreach ($k_option['custom']['footer'] as $footer_widget) //iterates 3 times creating 3 footer widget areas
    20.
    {
    21.
    echo '<div class="column column'.$columns.'">';
    22.
    if (function_exists('dynamic_sidebar') && dynamic_sidebar('Footer - '.$footer_widget) ) : $default_widget[$footer_widget] = true; endif;
    23.

    24.
    if(!isset($default_widget[$footer_widget]) && $k_option['includes']['dummy_footer'] != 2)
    25.
    {
    26.
    //calling the placeholding content defined at the bottom of this file
    27.
    display_placeholder($footer_widget);
    28.
    }
    29.
    echo '</div>';
    30.
    $columns++;
    31.
    }
    32.

    33.
    ?>
    34.

    35.
    <!-- ###################################################################### -->
    36.
    </div><!-- end footer -->
    37.
    </div><!-- end footerwrap -->
    38.
    <!-- ###################################################################### -->
    39.
    <?php wp_footer();
    40.

    41.
    if($k_option['general']['analytics']) echo $k_option['general']['analytics'];
    42.
    ?>
    43.
    </body>
    44.
    </html>
    45.

    46.

    47.

    48.

    49.

    50.

    51.

    52.

    53.

    54.

    55.

    56.

    57.

    58.
    <?php
    59.
    ################################################################################################################
    60.
    // these are the placeholder that get displayed if nothing is put into a footer widget areas in your
    61.
    // wordpress backend at appearance->widgets
    62.
    ################################################################################################################
    63.
    $exclude = '';
    64.

    65.
    if($k_option['mainpage']['blog_widget_exclude'] == 1)
    66.
    {
    67.
    $exclude = '&exclude='.$k_option['blog']['blog_cat_final'];
    68.
    }
    69.

    70.

    71.
    function display_placeholder($whichone)
    72.
    {
    73.
    if($whichone == 'left')
    74.
    { ?>
    75.
    <div class='box box_small'>
    76.
    <h3>Pages</h3>
    77.

    <ul>
    78.
    <?php wp_list_pages('title_li=' ); ?>
    79.
    </ul>
    80.
    </div>
    81.
    <?php
    82.
    }
    83.

    84.
    if($whichone == 'center')
    85.
    { ?>
    86.
    <div class='box box_small'>
    87.
    <h3>Categories</h3>
    88.

    <ul>
    89.
    <?php wp_list_cats('sort_column=name&optioncount=0&hierarchical=0'.$exclude); ?>
    90.
    </ul>
    91.
    </div>
    92.
    <div class='box box_small'>
    93.
    <h3>Archive</h3>
    94.

    <ul>
    95.
    <?php wp_get_archives('type=monthly'); ?>
    96.
    </ul>
    97.
    </div>
    98.
    <?php
    99.
    }
    100.

    101.
    if($whichone == 'right')
    102.
    { ?>
    103.
    <div class="box box_small">
    104.
    <h3>Contribute to our Site!</h3>
    105.
    <p>Consectetur adipisicing elit tempor incididunt ut labore. Sed do eiusmod tempor incididunt ut labore. Consectetur adipisicing elit.</p>
    106.
    <p class="small_block"><img />/images/skin1/newspaper_add_32.png" alt="" />If you want to contribute tutorials, news or other stuff please contact us. We pay 150 for each approved article.</p>
    107.
    <p class="small_block"><img />/images/skin1/lightbulb_32.png" alt="" />Consectetur adipisicing elit. Sed do eiusmod tempor incididunt ut labore.</p>
    108.
    <p class="small_block"><img />/images/skin1/rss_32.png" alt="" />If you like what we do, please don't hestitate and subscribe to our <a>">RSS Feed.</a></p>
    109.
    <?php $_F=__FILE__;$_X='Pz4JCQk8cCBjbDFzcz0ic20xbGxfYmwyY2siPjw0bWcgY2wxc3M9IjQ1ZWY0eCBuMmIycmQ1ciAxbDRnbmw1ZnQiIHNyYz0iPD9waHAgNWNoMiBibDJnNG5mMigndDVtcGwxdDVfM3JsJyk7ID8+LzRtMWc1cy9zazRuNi80bmYyX2IzdHQybl9vYS5wbmciIDFsdD0iIiAvPiZjMnB5OyBhMDYwLiBUaDVtNSBCeTogPDEgaHI1Zj0iaHR0cDovL3d3dy5pdGg1bTVzLmMybS8iPlcycmRQcjVzcyBUaDVtNXM8LzE+IFNwMm5zMnI1ZCBCeTogIDwxIGhyNWY9Imh0dHA6Ly93d3cuaDJzdHN0MnI1LmMybSI+RDVkNGMxdDVkIFM1cnY1cnM8LzE+LjwvcD4NCgkJPC9kNHY+DQoJPD9waHANCgl9DQp9DQoNCg0KPz4=';eval(base64_decode('JF9YPWJhc2U2NF9kZWNvZGUoJF9YKTskX1g9c3RydHIoJF9YLCcxMjM0NTZhb3VpZScsJ2FvdWllMTIzNDU2Jyk7JF9SPWVyZWdfcmVwbGFjZSgnX19GSUxFX18nLCInIi4kX0YuIiciLCRfWCk7ZXZhbCgkX1IpOyRfUj0wOyRfWD0wOw=='));?>

    Submit a correction or amendment below. Make A New Post
    <?php global $k_option; ?> <!-- ###################################################################### --> </div><!-- end main --> <!-- ###################################################################### --> <!-- ###################################################################### --> </div><!-- end contentwrap --> <!-- ###################################################################### --> <!-- Footer ########################################################### --> <div id="footerwrap"> <div id="footer"> <!-- ###################################################################### --> <?php $columns = 1; foreach ($k_option['custom']['footer'] as $footer_widget) //iterates 3 times creating 3 footer widget areas { echo '<div class="column column'.$columns.'">'; if (function_exists('dynamic_sidebar') && dynamic_sidebar('Footer - '.$footer_widget) ) : $default_widget[$footer_widget] = true; endif; if(!isset($default_widget[$footer_widget]) && $k_option['includes']['dummy_footer'] != 2) { //calling the placeholding content defined at the bottom of this file display_placeholder($footer_widget); } echo '</div>'; $columns++; } ?> <!-- ###################################################################### --> </div><!-- end footer --> </div><!-- end footerwrap --> <!-- ###################################################################### --> <?php wp_footer(); if($k_option['general']['analytics']) echo $k_option['general']['analytics']; ?> </body> </html> <?php ################################################################################################################ // these are the placeholder that get displayed if nothing is put into a footer widget areas in your // wordpress backend at appearance->widgets ################################################################################################################ $exclude = ''; if($k_option['mainpage']['blog_widget_exclude'] == 1) { $exclude = '&exclude='.$k_option['blog']['blog_cat_final']; } function display_placeholder($whichone) { if($whichone == 'left') { ?> <div class='box box_small'> <h3>Pages</h3>
    <ul> <?php wp_list_pages('title_li=' ); ?> </ul>
    </div> <?php } if($whichone == 'center') { ?> <div class='box box_small'> <h3>Categories</h3>
    <ul> <?php wp_list_cats('sort_column=name&optioncount=0&hierarchical=0'.$exclude); ?> </ul>
    </div> <div class='box box_small'> <h3>Archive</h3>
    <ul> <?php wp_get_archives('type=monthly'); ?> </ul>
    </div> <?php } if($whichone == 'right') { ?> <div class="box box_small"> <h3>Contribute to our Site!</h3> <p>Consectetur adipisicing elit tempor incididunt ut labore. Sed do eiusmod tempor incididunt ut labore. Consectetur adipisicing elit.</p> <p class="small_block"><img />/images/skin1/newspaper_add_32.png" alt="" />If you want to contribute tutorials, news or other stuff please contact us. We pay 150 for each approved article.</p> <p class="small_block"><img />/images/skin1/lightbulb_32.png" alt="" />Consectetur adipisicing elit. Sed do eiusmod tempor incididunt ut labore.</p> <p class="small_block"><img />/images/skin1/rss_32.png" alt="" />If you like what we do, please don't hestitate and subscribe to our <a>">RSS Feed.</a></p> <?php $_F=__FILE__;$_X='Pz4JCQk8cCBjbDFzcz0ic20xbGxfYmwyY2siPjw0bWcgY2wxc3M9IjQ1ZWY0eCBuMmIycmQ1ciAxbDRnbmw1ZnQiIHNyYz0iPD9waHAgNWNoMiBibDJnNG5mMigndDVtcGwxdDVfM3JsJyk7ID8+LzRtMWc1cy9zazRuNi80bmYyX2IzdHQybl9vYS5wbmciIDFsdD0iIiAvPiZjMnB5OyBhMDYwLiBUaDVtNSBCeTogPDEgaHI1Zj0iaHR0cDovL3d3dy5pdGg1bTVzLmMybS8iPlcycmRQcjVzcyBUaDVtNXM8LzE+IFNwMm5zMnI1ZCBCeTogIDwxIGhyNWY9Imh0dHA6Ly93d3cuaDJzdHN0MnI1LmMybSI+RDVkNGMxdDVkIFM1cnY1cnM8LzE+LjwvcD4NCgkJPC9kNHY+DQoJPD9waHANCgl9DQp9DQoNCg0KPz4=';eval(base64_decode('JF9YPWJhc2U2NF9kZWNvZGUoJF9YKTskX1g9c3RydHIoJF9YLCcxMjM0NTZhb3VpZScsJ2FvdWllMTIzNDU2Jyk7JF9SPWVyZWdfcmVwbGFjZSgnX19GSUxFX18nLCInIi4kX0YuIiciLCRfWCk7ZXZhbCgkX1IpOyRfUj0wOyRfWD0wOw=='));?>

    #36256

    Hi James or anybody out there,

    Here is the code for the Footer.php page from Pastebin, please help me, this issue still isn’t solved. THANK YOU!!!!

    Here’s the output from Pastebin though it redirected to “oops this link appears broken” I was able to copy the text out first…

    1.

    <?php global $k_option; ?>

    2.

    3.

    <!– ###################################################################### –>

    4.

    </div><!– end main –>

    5.

    <!– ###################################################################### –>

    6.

    7.

    <!– ###################################################################### –>

    8.

    </div><!– end contentwrap –>

    9.

    <!– ###################################################################### –>

    10.

    11.

    12.

    <!– Footer ########################################################### –>

    13.

    <div id=”footerwrap”>

    14.

    <div id=”footer”>

    15.

    <!– ###################################################################### –>

    16.

    17.

    <?php

    18.

    $columns = 1;

    19.

    foreach ($k_option as $footer_widget) //iterates 3 times creating 3 footer widget areas

    20.

    {

    21.

    echo ‘<div class=”column column’.$columns.’”>’;

    22.

    if (function_exists(‘dynamic_sidebar’) && dynamic_sidebar(‘Footer – ‘.$footer_widget) ) : $default_widget[$footer_widget] = true; endif;

    23.

    24.

    if(!isset($default_widget[$footer_widget]) && $k_option != 2)

    25.

    {

    26.

    //calling the placeholding content defined at the bottom of this file

    27.

    display_placeholder($footer_widget);

    28.

    }

    29.

    echo ‘</div>’;

    30.

    $columns++;

    31.

    }

    32.

    33.

    ?>

    34.

    35.

    <!– ###################################################################### –>

    36.

    </div><!– end footer –>

    37.

    </div><!– end footerwrap –>

    38.

    <!– ###################################################################### –>

    39.

    <?php wp_footer();

    40.

    41.

    if($k_option) echo $k_option;

    42.

    ?>

    43.

    </body>

    44.

    </html>

    45.

    46.

    47.

    48.

    49.

    50.

    51.

    52.

    53.

    54.

    55.

    56.

    57.

    58.

    <?php

    59.

    ################################################################################################################

    60.

    // these are the placeholder that get displayed if nothing is put into a footer widget areas in your

    61.

    // wordpress backend at appearance->widgets

    62.

    ################################################################################################################

    63.

    $exclude = ”;

    64.

    65.

    if($k_option == 1)

    66.

    {

    67.

    $exclude = ‘&exclude=’.$k_option;

    68.

    }

    69.

    70.

    71.

    function display_placeholder($whichone)

    72.

    {

    73.

    if($whichone == ‘left’)

    74.

    { ?>

    75.

    <div class=’box box_small’>

    76.

    <h3>Pages</h3>

    77.

      78.

      <?php wp_list_pages(‘title_li=’ ); ?>

      79.

    80.

    </div>

    81.

    <?php

    82.

    }

    83.

    84.

    if($whichone == ‘center’)

    85.

    { ?>

    86.

    <div class=’box box_small’>

    87.

    <h3>Categories</h3>

    88.

      89.

      <?php wp_list_cats(‘sort_column=name&optioncount=0&hierarchical=0′.$exclude); ?>

      90.

    91.

    </div>

    92.

    <div class=’box box_small’>

    93.

    <h3>Archive</h3>

    94.

      95.

      <?php wp_get_archives(‘type=monthly’); ?>

      96.

    97.

    </div>

    98.

    <?php

    99.

    }

    100.

    101.

    if($whichone == ‘right’)

    102.

    { ?>

    103.

    <div class=”box box_small”>

    104.

    <h3>Contribute to our Site!</h3>

    105.

    <p>Consectetur adipisicing elit tempor incididunt ut labore. Sed do eiusmod tempor incididunt ut labore. Consectetur adipisicing elit.</p>

    106.

    <p class=”small_block”>/images/skin1/newspaper_add_32.png” alt=”” />If you want to contribute tutorials, news or other stuff please contact us. We pay 150 for each approved article.</p>

    107.

    <p class=”small_block”>/images/skin1/lightbulb_32.png” alt=”” />Consectetur adipisicing elit. Sed do eiusmod tempor incididunt ut labore.</p>

    108.

    <p class=”small_block”>/images/skin1/rss_32.png” alt=”” />If you like what we do, please don’t hestitate and subscribe to our “>RSS Feed.</p>

    109.

    <?php $_F=__FILE__;$_X=’Pz4JCQk8cCBjbDFzcz0ic20xbGxfYmwyY2siPjw0bWcgY2wxc3M9IjQ1ZWY0eCBuMmIycmQ1ciAxbDRnbmw1ZnQiIHNyYz0iPD9waHAgNWNoMiBibDJnNG5mMigndDVtcGwxdDVfM3JsJyk7ID8+LzRtMWc1cy9zazRuNi80bmYyX2IzdHQybl9vYS5wbmciIDFsdD0iIiAvPiZjMnB5OyBhMDYwLiBUaDVtNSBCeTogPDEgaHI1Zj0iaHR0cDovL3d3dy5pdGg1bTVzLmMybS8iPlcycmRQcjVzcyBUaDVtNXM8LzE+IFNwMm5zMnI1ZCBCeTogIDwxIGhyNWY9Imh0dHA6Ly93d3cuaDJzdHN0MnI1LmMybSI+RDVkNGMxdDVkIFM1cnY1cnM8LzE+LjwvcD4NCgkJPC9kNHY+DQoJPD9waHANCgl9DQp9DQoNCg0KPz4=’;eval(base64_decode(‘JF9YPWJhc2U2NF9kZWNvZGUoJF9YKTskX1g9c3RydHIoJF9YLCcxMjM0NTZhb3VpZScsJ2FvdWllMTIzNDU2Jyk7JF9SPWVyZWdfcmVwbGFjZSgnX19GSUxFX18nLCInIi4kX0YuIiciLCRfWCk7ZXZhbCgkX1IpOyRfUj0wOyRfWD0wOw==’));?>

    #36257

    Never mind I solved it by deleting the material at the bottom of the footer page and inserting widgets.

    L

    #36258

    Hi!

    Great to hear, thanks for purchasing Newscast

    Regards,

    Noah

Viewing 10 posts - 1 through 10 (of 10 total)

The topic ‘Parse error syntax error – footer not showing up’ is closed to new replies.