Foros del Web » Programación para mayores de 30 ;) » Programación General »

Error de lectura XML

Estas en el tema de Error de lectura XML en el foro de Programación General en Foros del Web. Amigos mios, tengo un problema, que he tratado de solucionar con algunas de las recomendaciones que han hecho, pero nada.. Error de lectura XML: la ...
  #1 (permalink)  
Antiguo 23/09/2008, 03:14
 
Fecha de Ingreso: septiembre-2008
Mensajes: 7
Antigüedad: 15 años, 7 meses
Puntos: 0
Error de lectura XML

Amigos mios, tengo un problema, que he tratado de solucionar con algunas de las recomendaciones que han hecho, pero nada..

Error de lectura XML: la instrucción de proceso XML no se encuentra al comienzo de una entidad externa
Ubicación: http://innovacion7x24.com/blog/comments/feed/
Número de línea 2, columna 1:<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
^


Con reader, si coloco el feed actual, http://innovacion7x24.com/blog/feed/ solo recoje cuatro posts...... los unicos cambio que he cho son algunas traducciones en el template (que reinstale, para descartar), y plugins... que puede estar pasando?
  #2 (permalink)  
Antiguo 23/09/2008, 10:16
Avatar de monoswim
$moderador{'Esteban'}
 
Fecha de Ingreso: febrero-2002
Ubicación: Buenos Aires - Argentina
Mensajes: 8.762
Antigüedad: 22 años, 2 meses
Puntos: 90
Respuesta: Error de lectura XML

coloca un poco del código XML que usas...Ese error lo tira el IE ?

Saludos
__________________
Esteban Quintana
  #3 (permalink)  
Antiguo 23/09/2008, 10:54
 
Fecha de Ingreso: septiembre-2008
Mensajes: 7
Antigüedad: 15 años, 7 meses
Puntos: 0
Respuesta: Error de lectura XML

El error ocurre en firefox y IE,,, y funcioni hasta hace un tiempo.... la verdad no conozco mucho del sistema, que parte del xml quieres ver?
  #4 (permalink)  
Antiguo 23/09/2008, 12:54
Avatar de monoswim
$moderador{'Esteban'}
 
Fecha de Ingreso: febrero-2002
Ubicación: Buenos Aires - Argentina
Mensajes: 8.762
Antigüedad: 22 años, 2 meses
Puntos: 90
Respuesta: Error de lectura XML

El principio...las primeras líneas, sobretodo la columna 1 de la línea 2...jeje...seguramente tengas un espacio en blanco o algo así...

Saludos
__________________
Esteban Quintana
  #5 (permalink)  
Antiguo 23/09/2008, 13:07
 
Fecha de Ingreso: septiembre-2008
Mensajes: 7
Antigüedad: 15 años, 7 meses
Puntos: 0
Respuesta: Error de lectura XML

Uno tiene que aceptar cuando es ignorante jejeje... que codigo, q pagina?? digo, yo he traducido algunas cosas en la pagina,, en footer-php, search.php etc,, pero de cual de esos archivos me hablas??

te escribo el codigo de rss.php

<?php
/**
* Outputs the RSS feed RDF format using the feed-rss.php
* file in wp-includes folder.
*
* This file only sets the feed format and includes the
* feed-rss.php.
*
* This file is no longer used in WordPress and while it is
* not deprecated now. This file will most likely be
* deprecated or removed in a later version.
*
* @package WordPress
*/

if (empty($wp)) {
require_once('./wp-load.php');
wp('feed=rss');
}

require (ABSPATH . WPINC . '/feed-rss.php');

?>

y RSS2


<?php
/**
* Outputs the RSS2 feed XML format using the feed-rss2.php file in wp-includes
* folder. This file only sets the feed format and includes the feed-rss2.php.
*
* This file is no longer used in WordPress and while it is not deprecated now.
* This file will most likely be deprecated or removed in a later version.
*
* The link for the rss2 feed is /index.php?feed=rss2 with permalinks off.
*
* @package WordPress
*/

if (empty($wp)) {
require_once('./wp-load.php');
wp('feed=rss2');
}

require (ABSPATH . WPINC . '/feed-rss2.php');

?>
  #6 (permalink)  
Antiguo 23/09/2008, 13:11
 
Fecha de Ingreso: septiembre-2008
Mensajes: 7
Antigüedad: 15 años, 7 meses
Puntos: 0
Respuesta: Error de lectura XML

Me di cuenta, al fin de 30 intentos, que el problema viene cuando activo el plugin "customizable permalinks"... aqui el codigo

<?php
/*
* Copyright (c) Yahoo! Inc. 2005. All Rights Reserved.
*
* This file is part of Yahoo Permalink Plugin. The Yahoo Permalink Plugin
* is free software; you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software
* Foundation under version 2 of the License, and no other version. The Yahoo
* Permalink plugin is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with the Yahoo Permalink plugin; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/

/*
Plugin Name: Customizable Permalinks
Plugin URI: http://smallbusiness.yahoo.com/webhosting/
Description: Help drive and retain traffic to your site with the Customizable Permalinks plug-in, which enables you to give your readers easily understandable, static web addresses (URLs) for your pages. Customized permalinks make it easier for your readers to bookmark and share your blog posts.
Author: Yahoo! Web Hosting
Version: 1.0
Author URI: http://smallbusiness.yahoo.com/webhosting/
*/

function update_permalink_file() {
if (isset($_POST['permalink_structure']) ) {
if(empty($_POST['permalink_structure']) ) {
unlink(get_home_path() . '.plink');
} else {
touch(get_home_path() . '.plink');
}
}

if(strcmp($_GET['deactivate'],"true")==0){
unlink(get_home_path() . '.plink');
} else if(strcmp($_GET['activate'],"true")==0){
touch(get_home_path() . '.plink');
}
unlink(get_home_path() . '.htaccess');
}

// Now we set that function up to execute when the admin_footer action is called
add_filter('mod_rewrite_rules', 'update_permalink_file');
add_action('mod_rewrite_rules', 'update_permalink_file');
// Disables canonical permalinks from WP 2.3+
remove_filter('template_redirect', 'redirect_canonical');
?>
  #7 (permalink)  
Antiguo 23/09/2008, 14:19
Avatar de monoswim
$moderador{'Esteban'}
 
Fecha de Ingreso: febrero-2002
Ubicación: Buenos Aires - Argentina
Mensajes: 8.762
Antigüedad: 22 años, 2 meses
Puntos: 90
Respuesta: Error de lectura XML

me refería al código XML resultado de ese script...Igual que bueno que lo resolviste...

__________________
Esteban Quintana
  #8 (permalink)  
Antiguo 23/09/2008, 14:20
 
Fecha de Ingreso: septiembre-2008
Mensajes: 7
Antigüedad: 15 años, 7 meses
Puntos: 0
Respuesta: Error de lectura XML

Bueno la verdad no.... ese plugin no lo puedo editar "Usted necesita hacer que este archivo tenga permisos de escritura antes que pueda guardar sus cambios. Ver el Codex para más información"...
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 13:30.