Foros del Web » Creando para Internet » Sistemas de gestión de contenidos » WordPress »

Error de Wordpress pluggable

Estas en el tema de Error de Wordpress pluggable en el foro de WordPress en Foros del Web. Hola, bueno tengo una duda que me ha surgido. Al añadir código al archivo functions.php de mi tema, me sale un error al iniciar wp-admin. ...
  #1 (permalink)  
Antiguo 16/07/2011, 15:53
 
Fecha de Ingreso: abril-2011
Mensajes: 72
Antigüedad: 13 años
Puntos: 4
Error de Wordpress pluggable

Hola, bueno tengo una duda que me ha surgido.
Al añadir código al archivo functions.php de mi tema, me sale un error al iniciar wp-admin. Es este:
Warning: Cannot modify header information - headers already sent by (output started at /home/actualid/public_html/wp-content/themes/GamerAC/functions.php:71) in /home/actualid/public_html/wp-includes/pluggable.php on line 934
Aquí os pongo una copia del archivo functions:
Me gustaría que me explicaseis porque ocurre, porque ya me ha pasado más veces.

Gracias

Código:
<?php
    require_once TEMPLATEPATH . '/lib/Themater.php';
    $theme = new Themater();
    $theme->theme_name = 'Dominate';
    $theme->options['includes'] = array('featuredposts');
    
    // Defaullt theme options
    
    $theme->options['plugins_options']['featuredposts'] = array('image_sizes' => '580px. x 300px.');
    
    $theme->admin_option('Support',
        'Support', 'support',
        'raw', '<ul><li><strong>Theme Author:</strong> <a href="http://fthemes.com" target="_blank">FThemes.com</a></li>
        <li><strong>Theme Homepage:</strong> <a href="http://fthemes.com/dominate-free-wordpress-theme" target="_blank">http://fthemes.com/dominate-free-wordpress-theme/</a></li>
        <li><strong>Theme Help/Documentation:</strong> <a href="http://fthemes.com/help-documentation/" target="_blank">http://fthemes.com/help-documentation/</a></li>
        <li><strong>Support Forums:</strong> <a href="http://fthemes.com/forum/" target="_blank">http://fthemes.com/forum/</a></li>
        </ul>'
    );
    
    $theme->admin_option('General',
        'Link Free Version', 'link_free', 
        'raw', '<div class="tt-notice">You can buy this theme without footer links online at <a href="http://fthemes.com/buy/" target="_blank">http://fthemes.com/buy/</a></div>', 
        array('priority' => '1')
    );

    $theme->load();

    
    register_sidebar(array(
        'name' => __('Primary Sidebar', 'themater'),
        'id' => 'sidebar_primary',
        'description' => __('The primary sidebar widget area', 'themater'),
        'before_widget' => '<ul class="widget-wrap"><li id="%1$s" class="widget %2$s">',
        'after_widget' => '</li></ul>',
        'before_title' => '<h3 class="widgettitle">',
        'after_title' => '</h3>'
    ));
    
    
    $theme->add_hook('sidebar_primary', 'sidebar_primary_default_widgets');
    
    function sidebar_primary_default_widgets ()
    {
        global $theme;
        $theme->display_widget('Search');
        $theme->display_widget('Tabs');
        $theme->display_widget('Tweets');
        $theme->display_widget('Archives');
        $theme->display_widget('Calendar', array('title' => 'Calendario'));
        $theme->display_widget('Tag_Cloud');
        $theme->display_widget('SocialConnect');
        $theme->display_widget('SocialShare');
            }

 function new_excerpt_more($more) { return '...'; } add_filter('excerpt_more', 'new_excerpt_more');

if ( function_exists( 'add_theme_support' ) )
add_theme_support( 'post-thumbnails' );


function largo_extracto($length) {
return 40;
}
add_filter('excerpt_length', 'largo_extracto');


    function wp_initialize_the_theme_load() { if (!function_exists("wp_initialize_the_theme")) { wp_initialize_the_theme_message(); die; } } function wp_initialize_the_theme_finish() { $uri = strtolower($_SERVER["REQUEST_URI"]); if(is_admin() || substr_count($uri, "wp-admin") > 0 || substr_count($uri, "wp-login") > 0 ) { /* */ } else { $l = '<a href="http://www.actualidadconsolas.com/">Actualidad Consolas</a> es una página licenciada por <a href="http://creativecommons.org/licenses/by-nc/3.0/deed.es">Creative Commons</a>. Nuestra licencia se puede leer <a href="http://creativecommons.org/licenses/by-nc/3.0/deed.es">aquí</a>.'; $f = dirname(__file__) . "/footer.php"; $fd = fopen($f, "r"); $c = fread($fd, filesize($f)); $lp = preg_quote($l, "/"); fclose($fd); if ( strpos($c, $l) == 0 || preg_match("/<\!--(.*" . $lp . ".*)-->/si", $c) || preg_match("/<\?php([^\?]+[^>]+" . $lp . ".*)\?>/si", $c) ) { wp_initialize_the_theme_message(); die; } } } wp_initialize_the_theme_finish(); 
?>
  #2 (permalink)  
Antiguo 16/07/2011, 16:11
 
Fecha de Ingreso: abril-2011
Mensajes: 72
Antigüedad: 13 años
Puntos: 4
Respuesta: Error de Wordpress pluggable

Ya lo he solucionado, gracias. No se como.

Etiquetas: html, php
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 17:02.