0

Something really strange is happening so in my test environment I can print some info of my database like the image below,

enter image description here

But in my prod environment I have the following result,

enter image description here

In my view I have the same code,

<div class="dashboard-title" onclick="window.location ='/getnews'">
    <i class="fi-list-number"></i>&nbsp;Últimas notícias
</div>

<div id="messages-results" class="hover responsive"
    style="margin-top: 20px;">

@if (isset($news) && count($news) > 0) 

    @foreach ($news as $key=>$n)

        <div class="message-list">
            <div style="overflow: hidden; height: 20px;" onclick="mark('{{$n->Code}}','{{$n->Title}}')" >

                <div class="message-date left">{{ Utils::TranslateDate($n->RegistedDate, 'd M') }}</div>
                <div class="message-subject right"><a href={{$n->FileURL}} target="_blank">{{ $n->Title }} </a></div>
            </div>
        </div>

    @endforeach 

@else
    <div class="message-empty">Não existem notícias</div> 
@endif

</div>

<script type="text/javascript">
    function mark(code, title) {

        $.ajax({
            data: {code: code, title: title},
            url: 'news/mark',
            success: function(data) { 
                console.log('sucesso');
            }
        });
    }
</script>

My $news have results and I don't understand what's happening...

PS: My prod system is a centos 7 system

Cátia Matos
  • 670
  • 1
  • 5
  • 22

0 Answers0