Autor Tema: [Ayuda] Fallo en mi cutenews  (Leído 959 veces)

Desconectado masterdato

  • PHPerit@
  • *
  • Mensajes: 12
  • Karma: 0
  • Nuev@ PHPer@
    • Ver Perfil
[Ayuda] Fallo en mi cutenews
« en: 30 de Mayo de 2010, 12:20:53 pm »
Hola a todos. Hoy, he instalado mi cutenews y puesto el codigo para insertarlo en mi web, entonces, en donde lo he insertado me sale esto:

Citar
Warning: include() [function.include]: URL file-access is disabled in the server configuration in /var/www/vhost/asdasdasd.es/home/html/index.php on line 34

Warning: include(http://cutenews.adadsasd.es/show_news.php) [function.include]: failed to open stream: no suitable wrapper could be found in /var/www/vhost/asdsad.es/home/html/index.php on line 34

Warning: include() [function.include]: Failed opening 'http://cutenews.adsadasd.es/show_news.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/vhost/adasdasd.es/home/html/index.php on line 34


Por cierto, donde he puesto  ''adsasda'' es mi web, pero lo he cambiado por privacidad...

Comunidad PHPeros

[Ayuda] Fallo en mi cutenews
« en: 30 de Mayo de 2010, 12:20:53 pm »

Desconectado chihue

  • PHPero Master
  • ******
  • Mensajes: 1.118
  • Karma: 43
  • Sexo: Masculino
  • 8 dias
    • Ver Perfil
    • Minichat con todo incluido
Re:[Ayuda] Fallo en mi cutenews
« Respuesta #1 en: 30 de Mayo de 2010, 12:41:59 pm »
Que hosting gastas (Pagado o que te lo han dado (jovnes en red aqui))

Desconectado Siquillote

  • PHPero Master
  • ******
  • Mensajes: 4.229
  • Karma: 179
  • Sexo: Masculino
    • Ver Perfil
Re:[Ayuda] Fallo en mi cutenews
« Respuesta #2 en: 30 de Mayo de 2010, 12:46:26 pm »
Que hosting gastas (Pagado o que te lo han dado (jovnes en red aqui))

¿Que **** tiene que ver eso? -.-

Para hacer eso, simplemente usa un iframe.

<iframe name="cutenews" width="X" height="Y" src="URL/cutenews/"></iframe>

#Fdo. Physlet

Desconectado chihue

  • PHPero Master
  • ******
  • Mensajes: 1.118
  • Karma: 43
  • Sexo: Masculino
  • 8 dias
    • Ver Perfil
    • Minichat con todo incluido
Re:[Ayuda] Fallo en mi cutenews
« Respuesta #3 en: 30 de Mayo de 2010, 12:49:12 pm »
no es eso se refiee que en el Show_news le sale mal tine 1 error no es nada del iframe

Desconectado masterdato

  • PHPerit@
  • *
  • Mensajes: 12
  • Karma: 0
  • Nuev@ PHPer@
    • Ver Perfil
Re:[Ayuda] Fallo en mi cutenews
« Respuesta #4 en: 30 de Mayo de 2010, 13:20:56 pm »
¿Entonces que hago para arreglarlo?
Ahh, y uso arsys (pagado)

Desconectado Siquillote

  • PHPero Master
  • ******
  • Mensajes: 4.229
  • Karma: 179
  • Sexo: Masculino
    • Ver Perfil
Re:[Ayuda] Fallo en mi cutenews
« Respuesta #5 en: 30 de Mayo de 2010, 13:21:44 pm »

Usa el iframe ¬¬

#Fdo. Physlet

Desconectado masterdato

  • PHPerit@
  • *
  • Mensajes: 12
  • Karma: 0
  • Nuev@ PHPer@
    • Ver Perfil
Re:[Ayuda] Fallo en mi cutenews
« Respuesta #6 en: 30 de Mayo de 2010, 13:54:56 pm »
Usé tu iframe, y aún me sale el mismo fallo...

Desconectado Mixvice

  • PHPero Experto
  • *****
  • Mensajes: 687
  • Karma: 32
  • Sexo: Masculino
  • ¡Y Tu Papá Tambien!
    • Ver Perfil
    • Tuhabbo
Re:[Ayuda] Fallo en mi cutenews
« Respuesta #7 en: 30 de Mayo de 2010, 14:31:10 pm »
cual es la linea 34 de tu index ?

Desconectado masterdato

  • PHPerit@
  • *
  • Mensajes: 12
  • Karma: 0
  • Nuev@ PHPer@
    • Ver Perfil
Re:[Ayuda] Fallo en mi cutenews
« Respuesta #8 en: 30 de Mayo de 2010, 14:36:10 pm »

Desconectado chihue

  • PHPero Master
  • ******
  • Mensajes: 1.118
  • Karma: 43
  • Sexo: Masculino
  • 8 dias
    • Ver Perfil
    • Minichat con todo incluido
Re:[Ayuda] Fallo en mi cutenews
« Respuesta #9 en: 30 de Mayo de 2010, 17:46:12 pm »
Usa el iframe ¬¬

Ya te decia que era por el iframe


include("http://cutenews.adaadsada.es/show_news.php");
le da error en el show_news
Publica tu show_news todo el code.

Desconectado masterdato

  • PHPerit@
  • *
  • Mensajes: 12
  • Karma: 0
  • Nuev@ PHPer@
    • Ver Perfil
Re:[Ayuda] Fallo en mi cutenews
« Respuesta #10 en: 31 de Mayo de 2010, 11:03:03 am »
Citar
<?PHP

error_reporting (E_ALL ^ E_NOTICE);

$cutepath =  __FILE__;
$cutepath = preg_replace( "'\\\show_news\.php'", "", $cutepath);
$cutepath = preg_replace( "'/show_news\.php'", "", $cutepath);

require_once("$cutepath/inc/functions.inc.php");
require_once("$cutepath/data/config.php");

// If we are showing RSS, include some need variables.
if($template == 'rss'){
   include("$cutepath/data/rss_config.php");
}

//----------------------------------
// Check if we are included by PATH
//----------------------------------
if($_SERVER["HTTP_ACCEPT"] or $_SERVER["HTTP_ACCEPT_CHARSET"] or $_SERVER["HTTP_ACCEPT_ENCODING"] or $_SERVER["HTTP_CONNECTION"]){ /* do nothing */ }
elseif(eregi("show_news.php", $PHP_SELF)){
die("<h4>CuteNews ha detectado que estás incluyendo <b>show_news.php</b> usando la URL a este archivo.<br>
Esto es incorrecto. Debes incluirlo usando la RUTA a show_news.php</h4><br>Ejemplo:<br>
esto es <font color=red>INCORRECTO</font> :&nbsp;&nbsp; &lt;?PHP include(\"http://yoursite.com/cutenews/show_news.php\"); ?&gt;<br>
esto es <font color=green>CORRECTO</font>:&nbsp;&nbsp; &lt;?PHP include(\"cutenews/show_news.php\"); ?&gt;<br>
<br><BR>// <font size=2>si piensas que este mensaje no debe ser mostrado, abre show_news.php y borra este mensaje</font>");
}
//----------------------------------
// End of the check
//----------------------------------

if(!isset($subaction) or $subaction == ""){ $subaction = $POST["subaction"]; }

if(!isset($template) or $template == "" or strtolower($template) == "default"){ require_once("$cutepath/data/Default.tpl"); }
else{
        if(file_exists("$cutepath/data/${template}.tpl")){ require("$cutepath/data/${template}.tpl"); }
    else{ die("Error!<br>el tema (skin) <b>".htmlspecialchars($template)."</b> no existe.<br> NOTA: Los temas son 'sensibles' a mayúsculas y minúsculas por lo que debes escribir el nombra tal y como es"); }
}

// Prepare requested categories
if(eregi("[a-z]", $category)){
        die("<b>Error</b>!<br>CuteNews ha detectado que usas \$category = \"".htmlspecialchars($category)."\"; pero solo puedes llamar a las categorías con sus números de <b>ID</b> y no con nombres<br>
    ejemplo:<br><blockquote>&lt;?PHP<br>\$category = \"1\";<br>include(\"path/to/show_news.php\");<br>?&gt;</blockquote>");
}
$category = preg_replace("/ /", "", $category);
$tmp_cats_arr = explode(",", $category);
foreach($tmp_cats_arr as $key=>$value){
    if($value != ""){ $requested_cats[$value] = TRUE; }
}

if($archive == ""){
        $news_file = "$cutepath/data/news.txt";
        $comm_file = "$cutepath/data/comments.txt";
}else{
        $news_file = "$cutepath/data/archives/$archive.news.arch";
        $comm_file = "$cutepath/data/archives/$archive.comments.arch";
}

$allow_add_comment                        = FALSE;
$allow_full_story                        = FALSE;
$allow_active_news                         = FALSE;
$allow_comments                         = FALSE;



//<<<------------ Detarime what user want to do
if( $CN_HALT != TRUE and $static != TRUE and ($subaction == "showcomments" or $subaction == "showfull" or $subaction == "addcomment") and ((!isset($category) or $category == "") or ($requested_cats[$ucat] == TRUE )  ) ){
    if($subaction == "addcomment"){  $allow_add_comment        = TRUE; $allow_comments = TRUE; }
    if($subaction == "showcomments"){ $allow_comments = TRUE; }
    if(($subaction == "showcomments" or $allow_comments == TRUE) and $config_show_full_with_comments == "yes"){$allow_full_story = TRUE; }
    if($subaction == "showfull") $allow_full_story = TRUE;
    if($subaction == "showfull" and $config_show_comments_with_full == "yes") $allow_comments = TRUE;

}
else{
    if($config_reverse_active == "yes"){ $reverse = TRUE; }
        $allow_active_news = TRUE;
}
//----------->>> Detarime what user want to do

require("$cutepath/inc/shows.inc.php");
    if($_GET['archive'] and $_GET['archive'] != ''){ $archive = $_GET['archive']; } // stupid fix ?
unset($static, $template, $requested_cats, $category, $catid, $cat,$reverse, $in_use, $archives_arr, $number, $no_prev, $no_next, $i, $showed, $prev, $used_archives);
?>
<!-- News Powered by CuteNews: http://cutephp.com/ -->

Ese es el codigo entero del show news...

Desconectado Daniel Ciccone

  • PHPerit@
  • *
  • Mensajes: 20
  • Karma: 0
  • Sexo: Masculino
  • Nuevo en Phperos
    • Ver Perfil
Re:[Ayuda] Fallo en mi cutenews
« Respuesta #11 en: 28 de Junio de 2010, 21:59:17 pm »
 Yo antes siempre usaba Cutenews... y varias veces me pasó eso y siempre era por el Hosting o algun archivo dañado. Y según los comentarios de este tema, el frame se le pone al show_news.php , en ese archivo se muestran las noticias.