Update: So ich komme jetzt gar nicht mehr in mein Dahboard und das obwohl ich, außer den Veränderungen aus dem Forum nichts gemacht habe. Wenn ich also ins Dashboard will muss ich jetzt jedesmal vorher die functions.php löschen... dann kann ich mich einloggen, die functions.php wieder hochladen und dann funktionierts bis ich mich wieder auslogge.
Beiträge von sciphi87
-
-
Leider auch nichts. Langsam echt frustrierend... ich habe mir überlegt dass die einzigen beiden Dateien die mit fehlerhaftem Code der functions.php verbunden sind die header.php (background und custom-header) und die comments.php sind.
header.php:PHP
Alles anzeigen<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//DE" "http://www.w3.org/TR/xhtml1/DTD/xhtml1- transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="de"> <head profile="http://gmpg.org/xfn/11"> <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo ('charset'); ?>" /> <title><?php wp_title(' - ', true, 'right'); ?> <?php bloginfo('name'); ?></title> <link rel="stylesheet" type="text/css" href="reset.css" media="screen" /> <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" /> <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" /> <?php wp_head(); ?> </head> <body> <div id="background"> <img src="<?php echo background_image()?>"> </div> <div id="content"> <div id="wrapper"><!--Content--> <div id="header"><!--header--> <div id="menu"><!--Menu--> <?php if(!function_exists('dynamic_sidebar') || dynamic_sidebar('Menu')):?> <?php endif;?> </div> <!-- End Menu --> </div> <!--End Header--> <div id="Titles"> <img src="http://wp10615414.wp267.webpack.hosteurope.de/wp-content/uploads/2012/12/Header-Logo.jpg"> </div><!--End Title--> <div id="banner"><!--Image--> <a href="<?php bloginfo('url');?>"><img src="<?php echo header_image();?>"alt="Fotografie von Philipp Hanke"</a> </div><!--EndImage-->
comments.php:PHP
Alles anzeigen<div id="comments"> <?php if ( post_password_required() ) : ?> <p class= nopassword >Bitte geben Sie das Passwort ein, um Kommentare zu lesen.</p> </div> <?php return; endif; ?> <div id="content-form"> <?php $fields = array( 'author' => '<p class="comment-form-author"> <label for="author">Ihr Name <em></em></label> <input id="author" name="author" type="text" value="' . esc_attr( $commenter['comment_author'] ) . '" size="30"' . $aria_req . ' /></p>', ); comment_form( array( 'fields' => apply_filters( 'comment_form_default_fields', $fields ), 'label_submit' => 'Kommentar abschicken', 'title_reply' => '<h6>Kommentieren</h6>', 'comment_notes_before' => '', 'comment_notes_after' => '' ) ); ?> </div> <?php if ( have_comments() ) : ?> <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : ?> <div class= navigation> <div class= nav-previous ><?php previous_comments_link( '« √§ltere Kommentare' ); ?></div> <div class= nav-next ><?php next_comments_link( 'Neuere Kommentare »' ); ?></div> </div> <?php endif; ?> <div id= "content-comments" > <h6>Alle Kommentare</h6> <ul> <div id class= commentlist ><?php wp_list_comments('type=all&callback=callback_comment'); ?></div> </ul> </div> <?php if ( ! comments_open() ) : ?> <p class= nocomments >Die Kommentarfunktion ist leider deaktiviert.</p> <?php endif; ?> <?php endif; ?> </div>Vielleicht findet sich ja auch hier was. Danke nochmal für eure Mühen, is echt Super.
-
Domino5702 Hallo. Danke für deine Version. Hab's ausprobiert, kunktioniert aber leider auch ned. Als Editor nutze ich Eclipse mit nem PHP Plugin. Webocton kenne ich, damit habe ich früher meine HTML/CSS Seiten gemacht. Ist ein tolles Programm, sitze aber leider jetzt vor nem Mac, da gibt's das soweit ich weiß ned...
-
Hab jetzt ein bisschen rumprobiert und habe herausgefunden, dass nur dieser Teil der functions.php funktioniert:
PHP<?php /*Sidebar + Menus*/ if ( function_exists('register_sidebar') ) register_sidebar(array('name'=>'Sidebar', )); register_sidebar(array('name'=> 'Menu', )); register_sidebar(array('name'=> 'footer-menu', )); ?>sobald ich irgendeinen anderen dieser Codeblocks hinzufüge (egal in welcher Kombination) dann gehts nimma:
PHP
Alles anzeigen<?php /*Header Bilder*/ add_theme_support( 'custom-header', array( 'height' => 200, 'width' => 1000, 'flex-height' => false, 'default-image' => '%s/images/headers/banner.jpg' ) ); ?> <?php /*background*/ add_custom_background('custom-background', array( )); ?> <?php /*comments*/ function callback_comment($comment,$args,$depth){ $GLOBALS['comment']=$comment;?> <div class= commentbl> <li <?php comment_class();?> id= li-comment-<?php comment_ID()?>"> <p class= comment-author><?php echo get_comment_author_link();?></p> <p> <div class= commentmeta ><?php echo get_comment_date("d.m.y");?>, <?php echo get_comment_time();?> Uhr </p></div> <?php echo get_avatar($comment, $size='64');?> <div class= commenttext> <?php comment_text();?> </div> </div> <div class= clear ></div> <?php } ?> -
ok anscheinend hing die functions.php noch irgendwo als ichs probiert habe. Chrome und FF zeigen wie vorher nix an auch wenn ich mooselse's Änderungen übernehme
-
Danke, Danke, Danke an alle... :razz: Nachdem ich die functions.php gelöscht habe konnte ich wp-admin auf allen Browsern ganz normal aufrufen. Damit weiß ich jetzt zumindest mal wo der Fehler liegt! Nachdem ich dann die Änderungen die mooselse vorgeschlagen hat, probiert habe gings zwar auf Safari wieder nicht aber dafür auf Chrome und Firefox ganz normal. Wisst ihr vllt. was noch geändert werden muss, so dass es dann auch im Safari funktioniert? (is aber eh ned so wichtig)
Aber ich kann ja jetzt auch wieder selbst auf Fehlersuche gehen jetzt wo ich weiß wo ich suchen muss... -
Guten Morgen, hier der Code der functions.php. Ich habe nur Funktionen eingebaut die ich auch wirklich für meine Seite brauche (vorerst):
PHP
Alles anzeigen<?php /*Sidebar + Menus*/ if ( function_exists('register_sidebar') ) register_sidebar(array('name'=>'Sidebar', )); register_sidebar(array('name'=> 'Menu', )); register_sidebar(array('name'=> 'footer-menu', )); ?> <?php /*Header Bilder*/ add_theme_support( 'custom-header', array( 'height' => 200, 'width' => 1000, 'flex-height' => false, 'default-image' => '%s/images/headers/banner.jpg' ) ); ?> <?php /*background*/ add_custom_background('custom-background', array( )); ?> <?php /*comments*/ function callback_comment($comment,$args,$depth){ $GLOBALS['comment']=$comment;?> <div class="commentbl"> <li <?php comment_class();?> id="li-comment-<?php comment_ID()?>"> <p class="comment-author"><?php echo get_comment_author_link();?></p> <p> <div class="commentmeta"> <?php echo get_comment_date("d.m.y");?>, <?php echo get_comment_time();?> Uhr </p></div> <?php echo get_avatar($comment, $size='64');?> <div class="commenttext"> <?php comment_text();?> </div> </div> <div class="clear"></div> <?php } ?> -
Den Code in der fuctions.php werd ich morgen reinstellen, vielleicht findet sich ja was...
-
Laut Hosteurope hat jedes webpack (ich habe ein webpack L) 128M, bin grad unterwegs und kann erst morgen wieder in meinen administrationsbereich vom webspace aber ich denke doch dass ich dann auch 128 habe...
-
Jap sind alle deaktiviert. Ich war natürlich auch schon auf Fehlersuche in meinen Dateien, habe aber nichts gefunden. Das Fehlerlog oben zeigt ja einige Punkte, für mich sehen die aber alle nicht nach einer Ursache für mein Problem aus. Bin allerdings natürlich auch noch relativ unerfahren. Ich hoffe halt das hier irgendjemand einen Anhaltspunkt oder das gleiche schon selbst erlebt hat. Vielleicht fehlt ja auch nur eine wichtige Funktion in meinem Theme...
-
Danke.. ich war da auch schon mal drauf. Die Lösung zeigt einem zwar wie man sein Dashboard wieder erreicht und dann das Theme wieder abschalten kann... ich möchte mein Theme aber ja gar nicht abschalten. Ich müsste wissen wo im Theme der Fehler für das Problem mit der Weiterleitung ins Dashboard liegen könnte. Wenn ihr Codeschnipsel braucht einfach sagen. Die Seite findet ihr hier.
p.s.: Natürlich sind noch keine Gallerien und Posts vorhanden da ich ja eventuell eh alles wieder neu aufsetzen muss. -
Ach ja.... der Umweg funktioniert auch nur im Firefox. Chrome und Safari zeigen nur Weiß, die Seite selbst funktioniert aber auch dort.
-
Ja wie gesagt sobald ich ein anderes Theme aktiviert habe, kann ich mich ganz normal über /wp-admin einloggen. Der Fehler liegt also wahrscheinlich im Theme;). Ich weiß bloß nicht wo der Fehler liegen könnte, da dass ganze ja nicht nur weiße Seiten produziert, die Seite funktioniert bis dato normal und das Dashboard auch (wenn ich über den beschriebenen Umweg gehe). Nur die Weiterleitung in das Dashboard funktioniert nicht.
-
Hallo zusammen,
ich bin ganz neu hier im Forum, ich hoffe es ist nicht die falsche Kategorie oder so. Ich schraube seit einiger Zeit an meinem eigenen Theme rum und bei Xampp daheim hat auch alles gut funktioniert. Jetzt habe ich das Theme auf meinen Webspace (Hosteurope) hochgeladen, vorher habe ich natürlich Wordpress 3.4.2 (dann upgedatet auf 3.5) über das Hosteurope eigene Skript installiert. Erstmal hat auch alles gut funktioniert, solange bis ich mich aus dem admin Bereich auslogge und den Browser schließe. Dann kann ich nämlich nicht mehr über /wp-admin/ oder /login.php das Dashboard erreichen (ich bekomme eine weiße Seite, bei login.php kommt die weiße Seite nach dem einloggen) sondern nur noch (das habe ich durch Zufall herausgefunden nachdem ich die Seite etwa 6-mal neu aufgesetzt habe) indem ich mich in der login.php einlogge, auf die weiße Seite weitergeleitet werde und dann manuell meine Website aufrufe. Dort habe ich dann den Administrationsbalken am oberen Seitenrand und kann dann auf das Dashboard zugreifen indem ich ihn anklicke. Oben bei der Url steht dann ganz normal /wp-admin. Wenn ich dieselbe Adresse manuell in die Adressleiste eingebe bekomme ich wieder eine weiße Seite. Das ganze tritt nur bei meinem eigenen Theme auf, welches sonst (viel zum Testen bin ich natürlich noch nicht gekommen) gut funktioniert. Google habe ich durch und auch schon einige Tipps probiert. Der Fehlerlog über das Plugin Theme Check sieht so aus:
- WARNING: No screenshot detected! Please include a screenshot.png.
- REQUIRED:License URI: is missing from your style.css header.
- REQUIRED:.wp-caption css class is needed in your theme css.
- REQUIRED:.wp-caption-text css class is needed in your theme css.
- REQUIRED:.sticky css class is needed in your theme css.
- REQUIRED:.gallery-caption css class is needed in your theme css.
- REQUIRED:.bypostauthor css class is needed in your theme css.
- REQUIRED:.alignright css class is needed in your theme css.
- REQUIRED:.alignleft css class is needed in your theme css.
- REQUIRED:.aligncenter css class is needed in your theme css.
- REQUIRED: This theme doesn't seem to display tags. Modify it to display tags in appropriate locations.
- REQUIRED: No content width has been defined. Example:
if ( ! isset( $content_width ) ) $content_width = 900; - RECOMMENDED: No reference to post-thumbnails was found in the theme. If the theme has a thumbnail like functionality, it should be implemented with add_theme_support( 'post-thumbnails' )in the functions.php file.
- RECOMMENDED: No reference to nav_menu's was found in the theme. Note that if your theme has a menu bar, it is required to use the WordPress nav_menu functionality for it.
- RECOMMENDED: No reference to the_post_thumbnail() was found in the theme. It is recommended that the theme implement this functionality instead of using custom fields for thumbnails.
- RECOMMENDED: No reference to add_theme_support( 'custom-background', $args ) was found in the theme. If the theme uses background images or solid colors for the background, then it is recommended that the theme implement this functionality.
- RECOMMENDED: No reference to add_editor_style() was found in the theme. It is recommended that the theme implement editor styling, so as to make the editor content match the resulting post output in the theme, for a better user experience.
- RECOMMENDED: Tags: is either empty or missing in style.css header.
- REQUIRED: Could not find the comment-reply script enqueued. See: Migrating Plugins and Themes to 2.7/Enhanced Comment Display
<?php if ( is_singular() ) wp_enqueue_script( "comment-reply" ); ?> - REQUIRED: Could not find wp_link_pages. See: wp_link_pages
<?php wp_link_pages( $args ); ?> - REQUIRED: Could not find post_class. See: post_class
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> - REQUIRED: Could not find language_attributes. See: language_attributes
<html <?php language_attributes(); ?> - REQUIRED: Could not find body_class call in body tag. See: body_class
<?php body_class( $class ); ?> - REQUIRED: Could not find add_theme_support( 'automatic-feed-links' ). See: add_theme_support
<?php add_theme_support( $feature ); ?> - RECOMMENDED: could not find the file readme.txt in the theme. Please see Theme_Documentation for more information.
- RECOMMENDED: bloginfo(url) was found in the file sidebar.php. Use echo home_url() instead.
- RECOMMENDED: bloginfo(url) was found in the file header.php. Use echo home_url() instead.
- RECOMMENDED: add_custom_background found in the file functions.php. Deprecated since version 3.4. Use add_theme_support( 'custom-background', $args ) instead.
Line 21: add_custom_background('custom-background', array( - INFO: Non-printable characters were found in the comments.php file. You may want to check this file for errors.
Line 15: <label for='email'>Ihre E-Mail-Adresse <em>(erforderlich, wird aber nicht ver��ffentlicht)</em></label>
Line 38: <div class='nav-previous'><?php previous_comments_link( '« ��ltere Kommentare' ); ?></div>
Seht ihr vielleicht einen kritischen Fehler im Theme der zu der beschriebenen Problematik führen kann?
Ich würde mich sehr darüber freuen wenn einer von euch einen Hinweis hätte wo das Problem liegen könnte. Vielen Dank im Voraus!