Page 1 of 1

ERROR 500 Undefined offset: 2

PostPosted: 28 Jul 2015, 19:13
by yadicep
I want to modify my Listings and the page give me this error:

Error 500

Undefined offset: 2


Please, i need your help. Thank you for your attention.

Best regards.

NEWS IN HOME PAGE

PostPosted: 28 Jul 2015, 19:15
by yadicep
I want to remove de NEWS in the Home Page. Where i can to do that?

Thank you for your atenttion.

Best Regards.

Re: ERROR 500 Undefined offset: 2

PostPosted: 29 Jul 2015, 10:55
by andipas
The file - themes/classic/views/site/index.php

Delete the code
Code: Select all

<?php if (isset($newsIndex) && $newsIndex) : ?>
    <div class="clear"></div>
    <div class="last-news-index">
        <p class="title"><?php echo tt('News''news');?></p>
        <?php foreach($newsIndex as $news) : ?>
            <div class="last-news-item">
                <div class="last-news-date">
                    <p class="ns-label">
                        <?php echo $news->dateCreatedLong;?>
                    </p>
                </div>
                <div class="last-news-title">
                    <?php echo CHtml::link(truncateText($news->getStrByLang('title'), 8), $news->getUrl());?>
                </div>
            </div>
        <?php endforeach;?>
    </div>
    <div class="clear"></div>
<?php endif;?>