ERROR 500 Undefined offset: 2

Write about issues that you have found.

Moderators: Koduc, Xpycm

Forum rules
Pay attention! Forum is not a means for guaranteed support of clients and users. An answer as well as a quick answer is not supposed on the forum. We post messages as soon as possible.

The message limit on the forum is 3 messages per day.
If you want to say "thank you" then use the function "Give good reputation point", which is a green icon "plus" under the nickname of the person, who answered the message.

ERROR 500 Undefined offset: 2

Postby yadicep » 28 Jul 2015, 19:13

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.
yadicep
Stranger
 
Posts: 5
Joined: 04 May 2015, 21:55
Reputation point: 0

NEWS IN HOME PAGE

Postby yadicep » 28 Jul 2015, 19:15

I want to remove de NEWS in the Home Page. Where i can to do that?

Thank you for your atenttion.

Best Regards.
yadicep
Stranger
 
Posts: 5
Joined: 04 May 2015, 21:55
Reputation point: 0

Re: ERROR 500 Undefined offset: 2

Postby andipas » 29 Jul 2015, 10:55

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;?>
andipas
Web Developer
Web Developer
 
Posts: 156
Joined: 28 Dec 2011, 22:37
Reputation point: 1


Return to Issues

Who is online

Users browsing this forum: No registered users and 3 guests