Ir para conteúdo
  • Cadastre-se

(Resolvido)Problema Latestnews.php


Ir para solução Resolvido por isac001,

Posts Recomendados

Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\pages\latestnews.php on line 32

Fatal error: Uncaught Error: Call to a member function fetch() on boolean in C:\xampp\htdocs\pages\latestnews.php:64 Stack trace: #0 C:\xampp\htdocs\system\load.page.php(7): include() #1 C:\xampp\htdocs\index.php(37): include_once('C:\\xampp\\htdocs...') #2 {main} thrown in C:\xampp\htdocs\pages\latestnews.php on line 64

 

Não sei como arrumar esse erro, se tive como me ajudar, Desde já agradeço. <3

Link para o post
Compartilhar em outros sites
Link para o post
Compartilhar em outros sites
52 minutos atrás, isac001 disse:

Pronto ver se pega!

latestnews.php 33 kB · 0 downloads

 

Parse error: syntax error, unexpected '}', expecting end of file in C:\xampp\htdocs\pages\latestnews.php on line 176

56 minutos atrás, isac001 disse:

Pronto ver se pega!

latestnews.php 33 kB · 0 downloads

 


Fatal error: Uncaught Error: Call to a member function fetch() on bool in C:\xampp\htdocs\pages\latestnews.php:63 Stack trace: #0 C:\xampp\htdocs\system\load.page.php(7): include() #1 C:\xampp\htdocs\index.php(37): include_once('C:\\xampp\\htdocs...') #2 {main} thrown in C:\xampp\htdocs\pages\latestnews.php on line 63

acho q o outro la eu mexi agora deu esse 

 

$vTick = $SQL->query("SELECT " .$SQL->fieldName('date'). " FROM " .$SQL->tableName('z_news_tickers'). " WHERE " .$SQL->fieldName('hide_ticker'). " = '0'")->fetch();
$news_content .= '
    <div id="NewsTicker" class="Box">
        <div class="Corner-tl" style="background-image: url('.$layout_name.'/images/content/corner-tl.gif);"></div>
        <div class="Corner-tr" style="background-image: url('.$layout_name.'/images/content/corner-tr.gif);"></div>
        <div class="Border_1" style="background-image: url('.$layout_name.'/images/content/border-1.gif);"></div>
        <div class="BorderTitleText" style="background-image: url('.$layout_name.'/images/content/title-background-green.gif);"></div>
        <img class="Title" src="'.$layout_name.'/images/header/headline-newsticker.gif" alt="Contentbox headline" />
            <div class="Border_2">
                  <div class="Border_3">
                    <div class="BoxContent" style="background-image: url('.$layout_name.'/images/content/scroll.gif);">';
                    //##################### ADD NEW TICKER #####################
                    if($action == "newticker") {
                        if($group_id_of_acc_logged >= $config['site']['access_tickers']) {
                            $ticker_text = stripslashes(trim($_POST['new_ticker']));
                            $ticker_icon = (int) $_POST['icon_id'];
                            if(empty($ticker_text)) {
                                $news_content .= 'You can\'t add empty ticker.';
                            }
                            else
                            {
                            if(empty($ticker_icon)) {
                                $news_icon = 0;
                            }
                    $SQL->query('INSERT INTO '.$SQL->tableName('z_news_tickers').' (date, author, image_id, text, hide_ticker) VALUES ('.$SQL->quote($time).', '.$account_logged->getId().', '.$ticker_icon.', '.$SQL->quote($ticker_text).', 0)');
                    $news_content .= '
                        <center>
                            <h2>
                                <font color="red">Added new ticker:</font>
                            </h2>
                        </center>
                        <hr/>
                        <div id="newsticker" class="Box">
                            <div id="TickerEntry-1" class="Row" onclick=\'TickerAction("TickerEntry-1")\'>
                                  <div class="Odd">
                                    <div class="NewsTickerIcon" style="background-image: url('.$layout_name.'/images/news/icon_'.$ticker['image_id'].'.gif);"></div>
                                    <div id="TickerEntry-1-Button" class="NewsTickerExtend" style="background-image: url('.$layout_name.'/images/general/plus.gif);"></div>
                                    <div class="NewsTickerText">
                                              <span class="NewsTickerDate">'.date("d/m/Y", $time).' -</span> 
                                              <div id="TickerEntry-1-ShortText" class="NewsTickerShortText">';
                    $news_content .= '
                        <a href="?subtopic=latestnews&action=deleteticker&id='.$time.'">
                            <img src="'.$layout_name.'/images/news/delete.png" border="0">
                        </a>';
                    $news_content .= short_text($ticker_text, 60).'</div>
                          <div id="TickerEntry-1-FullText" class="NewsTickerFullText">';
                    $news_content .= '<a href="?subtopic=latestnews&action=deleteticker&id='.$time.'"><img src="'.$layout_name.'/images/news/delete.png" border="0"></a>';
                    $news_content .= $ticker_text.'
                        </div>
                    </div>
                  </div>
            </div>
        </div>
    <hr/>';
    }
}
else

Link para o post
Compartilhar em outros sites
1 minuto atrás, isac001 disse:

ok pera usa esse lastnews.php 

latestnews.php 35 kB · 0 downloads

 

Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\pages\latestnews.php on line 56

Fatal error: Uncaught Error: Call to a member function fetch() on bool in C:\xampp\htdocs\pages\latestnews.php:84 Stack trace: #0 C:\xampp\htdocs\system\load.page.php(7): include() #1 C:\xampp\htdocs\index.php(37): include_once('C:\\xampp\\htdocs...') #2 {main} thrown in C:\xampp\htdocs\pages\latestnews.php on line 84

Link para o post
Compartilhar em outros sites
1 minuto atrás, SonGean disse:

não tenho a menor ideia do q seja isso ehuehe

 

cara faz assim baixa esse gesior e tenta! 

 

https://github.com/gesior/Gesior2012

Link para o post
Compartilhar em outros sites
  • Solução
1 hora atrás, SonGean disse:

image.png.10f2bdeba5285240d47bf2e48569ec57.png

 

tem 2 formas, 1 vc apaga o install do htdocs; e a outra forma é vc colocar seu ip! dentro do install.

 

se nao me engano é install.txt ou install.php

 

 

SE EU AJUDEI COLOCA COMO MELHOR RESPOSTA E REP ++ Obrigado!

 

Editado por isac001 (veja o histórico de edições)
Link para o post
Compartilhar em outros sites
  • 4 years later...

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emojis são permitidos.

×   Seu link foi automaticamente incorporado.   Mostrar como link

×   Seu conteúdo anterior foi restaurado.   Limpar o editor

×   Não é possível colar imagens diretamente. Carregar ou inserir imagens do URL.

×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo