HILFE - Parse error: syntax error

  • Hallo,

    ich hoffe, jemand kann mir weiterhelfen. Ich weiß leider nicht, was passiert ist, ich habe im header.php einen Code einfügen wollen. Davor habe ich den kompletten Code gesichert, dann verändert und gemerkt dass es Mist war. Also den gesicherten (ursprünglichen) Code wieder eingefügt, aber jetzt sieht das Ganze so aus: http://www.tortenaufleger-fototorte.eu - und das ist nicht das, was ich haben will.

    Bitte, kann mir jemand weiterhelfen??? DANKE!!!

    • Anzeige

    Hallo!

    Wenn du gerade an deiner Website arbeitest oder dein aktuelles Hosting überdenkst: Wir betreiben mit NetzLiving eine Hosting-Plattform, die speziell auf Performance, Sicherheit und einfache Verwaltung ausgelegt ist.

    • ✔️ Schnelle Ladezeiten (optimiert für WordPress & Co.)
    • ✔️ Deutsche Server & DSGVO-konform
    • ✔️ Persönlicher Support (kein 0815-Ticket-System)

    Mehr erfahren

  • <?php include (TEMPLATEPATH.'/scripts/loop.php'); ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes();?>>
    <head profile="http://gmpg.org/xfn/11">
    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    <?php
    if(isset($_GET['author_name'])) :
    $curauth = get_userdatabylogin($author_name);
    else :
    $curauth = get_userdata(intval($author));
    endif; ?>
    <title>
    <?php if ( is_home() ) { ?><?php bloginfo('name'); ?> | <?php bloginfo('description'); ?><?php } ?>
    <?php if ( is_search() ) { ?><?php the_search_query(); ?> | <?php _e('Search Results'); ?><?php } ?>
    <?php if ( is_author() ) { ?><?php echo $curauth->display_name; ?> | <?php _e('Author Archives'); ?><?php } ?>
    <?php if ( is_single() || is_page() ) { ?><?php wp_title(''); ?> | <?php bloginfo('name'); ?><?php } ?>
    <?php if ( is_category() ) { ?><?php single_cat_title(); ?> | <?php _e('Category'); ?> | <?php bloginfo('name'); ?><?php } ?>
    <?php if ( is_month() ) { ?><?php the_time('F Y'); ?> | <?php _e('Archives'); ?> | <?php bloginfo('name'); ?><?php } ?>
    <?php if (function_exists('is_tag')) { if ( is_tag() ) { ?><?php single_tag_title("", true); ?> | Tag <?php _e('Archives'); ?>&nbsp;|&nbsp;<?php bloginfo('name'); ?>
    <?php } } ?>
    </title>
    <link href="<?php bloginfo('template_directory'); ?>/scripts/960.css" type="text/css" media="screen" charset="utf-8" rel="stylesheet" />
    <link href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" charset="utf-8" rel="stylesheet" />
    <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />
    <link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>" />
    <link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?>" />
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    <?php wp_get_archives('type=monthly&format=link');?>
    <?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
    <?php wp_head(); ?>
    <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/scripts/yetii-min.js"></script>
    <!--[if lt IE 7]> <style type="text/css" media="screen">
    body{behavior:url(<?php bloginfo('template_directory'); ?>/scripts/csshover.htc)}
    .entry img{width:expression(document.body.clientWidth > 500? "500px": "auto" );}
    </style><![endif]-->
    <?php if ($white_hi) { ?>
    <style type="text/css">#header .container_12{
    background: transparent url(<?php echo $white_hi; ?>) no-repeat top left;height:200px;}</style>
    <?php } else { ?>
    <style type="text/css">#header .container_12{
    background: transparent url(img/logo_l.jpg) no-repeat top left;height:200px;}</style>
    <?php } ?>
    </head>
    <body>
    <div id="header">
    <div class="container_12">
    <?php if (is_home()) { ?>
    <?php if ($white_headerimg) { ?>
    <h1><a href="<?php echo get_settings('home'); ?>">
    <img src="<?php echo $white_headerimg; ?>" alt="<?php bloginfo('name'); ?>" /></a></h1>
    <?php } else { ?>
    <h1><a href="<?php echo get_settings('home'); ?>"><?php bloginfo('name'); ?></a></h1>
    <?php } } else { ?>
    <?php if ($white_headerimg) { ?>
    <h2><a href="<?php echo get_settings('home'); ?>">
    <img src="<?php echo $white_headerimg; ?>" alt="<?php bloginfo('name'); ?>" /></a></h2>
    <?php } else { ?>
    <h2><a href="<?php echo get_settings('home'); ?>"><?php bloginfo('name'); ?></a></h2>
    <?php } } ?>

    <div class="clear"></div>
    </div>
    </div>
    <div id="nav" >
    <div class="container_12">
    <ul class=" grid_7">
    <li <?php if (is_home()) { echo "class=\"current_page_item\"";} ?> ><a href="<?php echo get_settings('home'); ?>/" title="<?php _e('Home'); ?>"><?php _e('Home'); ?></a></li>
    <?php wp_list_pages('title_li=&sort_column=menu_order&depth=3'); ?>
    </ul>
    <a class="rss" href="<?php bloginfo('rss2_url'); ?>" title="<?php _e('Syndicate this site using RSS'); ?>">
    <img src="<?php bloginfo('template_directory'); ?>/img/rss.jpg" alt="<?php _e('Syndicate this site using RSS'); ?>" />
    </a>
    <form id="searchform" method="get" action="<?php bloginfo('home'); ?>">
    <p><input type="submit" value="<?php _e('Search'); ?>" />
    <input type="text" name="s" id="s" size="15" /></p>
    </form>
    <div class="clear"></div>
    </div>
    </div>

  • Hmmm... das hab ich da nicht hingeschrieben, zumindest nicht heute, ich bin mir ziemlich sicher, dass das das Original ist.
    Ich verstehe das Ganze eh nicht: ich habe jetzt mit dem DB-manager auf den 5. Feb. zurückgesetzt, aber der Fehler ist immer noch da :sad:

    Muss ich jetzt alles neu machen? :cry:


  • Muss ich jetzt alles neu machen?

    nein Warum?

    Dein Fehler liegt laut Meldung in Zeile 67


    PHP
    <li <?php if (is_home()) { echo "class=\"current_page_item\"";}  ?> ><a href="<?php echo get_settings('home'); ?>/"  title="<?php _e('Home'); ?>"><?php _e('Home');  ?></a></li>

    rein aus dem Bauch

    PHP
    <li <?php if (is_home()) { echo 'class="current_page_item"';}  ?> ><a href="<?php echo get_settings('home'); ?>"  title="<?php _e('Home'); ?>"><?php _e('Home');  ?></a></li>

    Oder einfach einen richtigen Editor verwenden.


    cu

    ralf

    Mit offenen Augen träumen

    Einmal editiert, zuletzt von r23 (15. Februar 2011 um 01:11)

  • Und wenn es das nicht ist, dann besorgst Du Dir das Theme nochmal und lädst die Dateien nochmal neu hoch. Ggf. auch mal alle Plugins deaktivieren.

  • Vielen Dank für Eure Hilfe!!!

    Mit Code ändern ging das nicht, da hat's immer eine Fehlermeldung gegeben. Ich hab das Theme neu installiert, es ist aber jetzt nimmer so schön wie vorher, muss noch einiges dran herumfeilen.

    LG
    frizzipauli

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!