• Resuelto mosiplay

    (@mosiplay)


    Buenas tardes, tengo un problema con el tema de mi pagina. Intentando ingresar los cookies edite mi header.php y al meter esas lineas dejo de funcionar mi pagina. Las borre y realice un respaldo y el error persiste. Os pego el código y el error que me dice a ver si me podéis ayudar. Gracias!
    Your PHP code changes were rolled back due to an error on line 455 of file wp-content/plugins/qtranslate/qtranslate_core.php. Please fix and try saving again.

    Object of class WP_Post could not be converted to string

    <!DOCTYPE html>
    <!–[if lt IE 7 ]><html class=»ie ie6″ <?php language_attributes();?>> <![endif]–>
    <!–[if IE 7 ]><html class=»ie ie7″ <?php language_attributes();?>> <![endif]–>
    <!–[if IE 8 ]><html class=»ie ie8″ <?php language_attributes();?>> <![endif]–>
    <!–[if IE 9 ]><html class=»ie ie9″ <?php language_attributes();?>> <![endif]–>
    <!–[if (gt IE 9)|!(IE)]><!–><html <?php language_attributes();?>> <!–<![endif]–>
    <head>
    <title><?php if ( is_category() ) {
    echo __(‘Category Archive for "’, ‘theme1562’); single_cat_title(); echo __(‘" | ‘, ‘theme1562’); bloginfo( ‘name’ );
    } elseif ( is_tag() ) {
    echo __(‘Tag Archive for "’, ‘theme1562’); single_tag_title(); echo __(‘" | ‘, ‘theme1562’); bloginfo( ‘name’ );
    } elseif ( is_archive() ) {
    wp_title(»); echo __(‘ Archive | ‘, ‘theme1562’); bloginfo( ‘name’ );
    } elseif ( is_search() ) {
    echo __(‘Search for "’, ‘theme1562’).wp_specialchars($s).__(‘" | ‘, ‘theme1562’); bloginfo( ‘name’ );
    } elseif ( is_home() || is_front_page()) {
    bloginfo( ‘name’ ); echo ‘ | ‘; bloginfo( ‘description’ );
    } elseif ( is_404() ) {
    echo __(‘Error 404 Not Found | ‘, ‘theme1562’); bloginfo( ‘name’ );
    } elseif ( is_single() ) {
    wp_title(»);
    } else {
    echo wp_title( ‘ | ‘, false, right ); bloginfo( ‘name’ );
    } ?></title>
    <meta name=»description» content=»<?php wp_title(); echo ‘ | ‘; bloginfo( ‘description’ ); ?>» />
    <meta charset=»<?php bloginfo( ‘charset’ ); ?>» />
    <meta name=»viewport» content=»width=device-width,initial-scale=1.0″>
    <link rel=»profile» href=»http://gmpg.org/xfn/11″ />
    <link rel=»icon» href=»<?php bloginfo( ‘template_url’ ); ?>/favicon.ico» type=»image/x-icon» />
    <link rel=»pingback» href=»<?php bloginfo( ‘pingback_url’ ); ?>» />
    <link rel=»alternate» type=»application/rss+xml» title=»<?php bloginfo( ‘name’ ); ?>» href=»<?php bloginfo( ‘rss2_url’ ); ?>» />
    <link rel=»alternate» type=»application/atom+xml» title=»<?php bloginfo( ‘name’ ); ?>» href=»<?php bloginfo( ‘atom_url’ ); ?>» />
    <?php /* The HTML5 Shim is required for older browsers, mainly older versions IE */ ?>
    <!–[if lt IE 8]>
    <div style=’ clear: both; text-align:center; position: relative;’>

    </div>
    <![endif]–>
    <link rel=»stylesheet» type=»text/css» media=»all» href=»<?php bloginfo( ‘template_url’ ); ?>/css/normalize.css» />
    <link rel=»stylesheet» type=»text/css» media=»all» href=»<?php bloginfo( ‘stylesheet_url’ ); ?>» />
    <link rel=»stylesheet» type=»text/css» media=»all» href=»<?php bloginfo( ‘template_url’ ); ?>/css/prettyPhoto.css» />
    <link rel=»stylesheet» type=»text/css» media=»all» href=»<?php bloginfo( ‘template_url’ ); ?>/css/flexslider.css» />
    <link rel=»stylesheet» type=»text/css» media=»all» href=»<?php bloginfo( ‘template_url’ ); ?>/css/skeleton.css» />
    <link rel=»stylesheet» type=»text/css» media=»all» href=»<?php bloginfo( ‘template_url’ ); ?>/css/320.css» />
    <link rel=»stylesheet» type=»text/css» media=»all» href=»<?php bloginfo( ‘template_url’ ); ?>/css/480.css» />
    <link rel=»stylesheet» type=»text/css» media=»all» href=»<?php bloginfo( ‘template_url’ ); ?>/css/768.css» />
    <link href=’http://fonts.googleapis.com/css?family=Oswald&#8217; rel=’stylesheet’ type=’text/css’>
    <?php
    /* We add some JavaScript to pages with the comment form
    * to support sites with threaded comments (when in use).
    */
    if ( is_singular() && get_option( ‘thread_comments’ ) )
    wp_enqueue_script( ‘comment-reply’ );

    /* Always have wp_head() just before the closing </head>
    * tag of your theme, or you will break many plugins, which
    * generally use this hook to add elements to <head> such
    * as styles, scripts, and meta tags.
    */
    wp_head();
    ?>
    <!–[if lt IE 9]>
    <style type=»text/css»>
    .border, .button {
    behavior:url(<?php bloginfo(‘stylesheet_directory’); ?>/PIE.php)
    }
    </style>
    <![endif]–>

    <script type=»text/javascript»>
    // initialise plugins
    jQuery(function(){
    // main navigation init
    jQuery(‘ul.sf-menu’).superfish({
    delay: <?php echo of_get_option(‘sf_delay’); ?>, // one second delay on mouseout
    animation: {opacity:'<?php echo of_get_option(‘sf_f_animation’); ?>’,height:'<?php echo of_get_option(‘sf_sl_animation’); ?>’}, // fade-in and slide-down animation
    speed: ‘<?php echo of_get_option(‘sf_speed’); ?>’, // faster animation speed
    autoArrows: <?php echo of_get_option(‘sf_arrows’); ?>, // generation of arrow mark-up (for submenu)
    dropShadows: <?php echo of_get_option(‘sf_shadows’); ?> // drop shadows (for submenu)
    });

    // prettyphoto init
    var $window = $(window);
    if (($window.width() < 500) == false) {
    $(«a[rel^=’prettyPhoto’]»).prettyPhoto({autoplay_slideshow:false,social_tools:false,animation_speed:’normal’});
    };

    });

    // Init for audiojs
    audiojs.events.ready(function() {
    var as = audiojs.createAll();
    });
    </script>

    <!–[if (gt IE 9)|!(IE)]><!–>
    <script type=»text/javascript»>
    jQuery(function(){
    jQuery(‘.sf-menu’).mobileMenu({
    combine: false,
    switchWidth:768,
    prependTo: ‘nav.primary’
    });
    })
    </script>
    <!–<![endif]–>

    <!– Custom CSS –>
    <?php if(of_get_option(‘custom_css’) != »){?>
    <style type=»text/css»>
    <?php echo of_get_option(‘custom_css’ ) ?>
    </style>
    <?php }?>

    <style type=»text/css»>
    /* Body styling options */
    <?php $background = of_get_option(‘body_background’);
    if ($background != ») {
    if ($background[‘image’] != ») {
    echo ‘body { background-image:url(‘.$background[‘image’]. ‘); background-repeat:’.$background[‘repeat’].’; background-position:’.$background[‘position’].’; background-attachment:’.$background[‘attachment’].’; }’;
    }
    if($background[‘color’] != ») {
    echo ‘body { background-color:’.$background[‘color’]. ‘}’;
    }
    };
    ?>

    /* Header styling options */
    <?php $header_styling = of_get_option(‘header_color’);
    if($header_styling != ») {
    echo ‘#header {background-color:’.$header_styling.’}’;
    }
    ?>

    /* Links and buttons color */
    <?php $links_styling = of_get_option(‘links_color’);
    if($links_styling) {
    echo ‘a{color:’.$links_styling.’}’;
    echo ‘.button {background:’.$links_styling.’}’;
    }
    ?>

    /* Body typography */
    <?php $body_typography = of_get_option(‘body_typography’);
    if($body_typography) {
    echo ‘body {font-family:’.$body_typography[‘face’].’; color:’.$body_typography[‘color’].’}’;
    echo ‘#main {font-size:’.$body_typography[‘size’].’; font-style:’.$body_typography[‘style’].’;}’;
    }
    ?>
    </style>
    </head>

    <body <?php body_class(); ?>>

    <div id=»main»><!– this encompasses the entire Web site –>
    <header id=»header» class=»container»>
    <div id=»widget-header»>
    <?php if ( ! dynamic_sidebar( ‘Header’ ) ) : ?><!– Wigitized Header –><?php endif ?>
    </div><!–#widget-header–>
    <div class=»logo»>
    <?php if(of_get_option(‘logo_type’) == ‘text_logo’){?>
    <?php if( is_front_page() || is_home() || is_404() ) { ?>
    <h1>/» title=»<?php bloginfo(‘description’); ?>»><?php bloginfo(‘name’); ?></h1>
    <?php } else { ?>
    <h2>/» title=»<?php bloginfo(‘description’); ?>»><?php bloginfo(‘name’); ?></h2>
    <?php } ?>
    <?php } else { ?>
    <?php if(of_get_option(‘logo_url’) != »){ ?>
    /» id=»logo»>» alt=»<?php bloginfo(‘name’); ?>» title=»<?php bloginfo(‘description’); ?>»>
    <?php } else { ?>
    /» id=»logo»>/images/logo.png» alt=»<?php bloginfo(‘name’); ?>» title=»<?php bloginfo(‘description’); ?>»>
    <?php } ?>
    <?php }?>
    </div>
    <div id=»top-header»>
    <nav class=»primary»>
    <?php wp_nav_menu( array(
    ‘container’ => ‘ul’,
    ‘menu_class’ => ‘sf-menu’,
    ‘menu_id’ => ‘topnav’,
    ‘depth’ => 0,
    ‘theme_location’ => ‘header_menu’
    ));
    ?>
    </nav><!–.primary–>
    </div>
    <?php if ( of_get_option(‘g_search_box_id’) == ‘yes’) { ?>
    <!–<div id=»top-search»>
    <form method=»get» action=»<?php echo get_option(‘home’); ?>/»>
    <input type=»text» name=»s» class=»input-search»/><input type=»submit» value=»<?php _e(‘GO’, ‘theme1562’); ?>» id=»submit»>
    </form>
    </div> –>
    <?php } ?>
    <div class=»clear»></div>
    </header>
    <?php if( is_front_page() ) { ?>
    <section id=»slider-wrapper» class=»container»>
    <?php include_once(TEMPLATEPATH . ‘/slider.php’); ?>
    </section><!–#slider–>
    <?php } ?>
    <div class=»primary_content_wrap container»>
    <div class=»container_12 clearfix»>

    La página con la que necesito ayuda: [accede para ver el enlace]

Viendo 1 respuesta (de 1 total)
  • Moderador LGrusin

    (@lgrusin)

    ¿Lo has solucionado? No se ve ningún error en el enlace que has puesto.

    Un saludo

Viendo 1 respuesta (de 1 total)
  • El debate ‘header.php’ está cerrado a nuevas respuestas.