Ondersteuning » Code oplossingen gezocht » geknoeid in PHP
geknoeid in PHP
-
Het gaat om de site http://www.brunssumseoktoberfeesten.nl
Ik wilde de widgets in de footer uitschakelen. Ik heb op deze site, http://bit.ly/W42LMj , gedaan wat onder ‘Removing a single widget area’ staat. Toen ik op bijwerken klikte was alles weg. als ik naar de /wp-admin ga krijg ik ‘kan de pagina niet weergeven’ . Ik ben ten einde raad. Ik heb om het probleem proberen te verhelpen via FTP het bestand naar mijn pc gehaald, de toegevoegde tekst van die Engelese site in kladblok weggehaald, en de nieuwe file weer via FTP geupload. Zonder succes.
Ik ben een nieuwe gebruiker en wekenlang met deze site bezig geweest. HELP!?
-
Een volledig witte pagina duidt meestal op een php error. Een enkele spatie op de verkeerde plaats kan al tot gevolg hebben dat je dit krijgt.
Wat je zou kunnen doen is even aan je host vragen of ie kan helpen de php error reporting aan te zetten. Op deze manier zie je precies in welk bestand en op welke regel de fout zit. Dit maakt het wat makkelijker om het op te lossen.
oke bedankt, ik ga het vragen. Had sowieso al gevraagd of ze back up hadden.
Ik weet in welk bestandje de fout zit, want ik was daarin aan het werk. Maar wat ik nu precies moet veranderen…dat is een goede vraag.
Bedankt voor de tip!Beste Roy, ik heb gedaan wat je vroeg en als foutmelding krijg ik dit:
Parse error: syntax error, unexpected $end in /var/www/vhosts/7/129173/webspace/httpdocs/brunssumseoktoberfeesten.nl/wp-content/themes/sunny-blue-sky/functions.php on line 283
maar ik heb geen idee wat ik nu moet doen….
Zet even de inhoud van functions.php als code hierop. (Tussen backticks)
<?php // load widgets require( get_template_directory() . '/inc/widget-ad125.php' ); require( get_template_directory() . '/inc/widget-facebook.php' ); require( get_template_directory() . '/inc/widget-twitter.php' ); // Register Sidebars function SunnyBlueSky_sidebar() { register_sidebar(array( 'name' => 'Sidebar Widget Area', 'id' => 'sidebar-widget-area', 'description' => 'The sidebar widget area', 'before_widget' => '<li>', 'after_widget' => '</li>', 'before_title' => '<h3 class="widget-heading font-1">', 'after_title' => '</h3>', )); register_sidebar( array( 'name' => 'Footer Widget Area 1' , 'id' => 'footer-widget-area-1', 'description' => 'Note: Position "left" and width: 300px', 'before_widget' => '<div class="footer-widget">', 'after_widget' => '</div>', 'before_title' => '<h3 class="font-1">', 'after_title' => '</h3>', ) ); register_sidebar( array( 'name' => 'Footer Widget Area 2', 'id' => 'footer-widget-area-2', 'description' => 'Note: Position "center" and width: 300px' , 'before_widget' => '<div class="footer-widget center">', 'after_widget' => '</div>', 'before_title' => '<h3 class="font-1">', 'after_title' => '</h3>', ) ); register_sidebar( array( 'name' => 'Footer Widget Area 3', 'id' => 'footer-widget-area-3', 'description' => 'Note: Position "right" and width: 300px' , 'before_widget' => '<div class="footer-widget right">', 'after_widget' => '</div>', 'before_title' => '<h3 class="font-1">', 'after_title' => '</h3>', ) ); } add_action('widgets_init', 'SunnyBlueSky_sidebar'); // Basic theme setup. function if_theme_setup() { global $content_width; if ( ! isset( $content_width ) ) $content_width = 603; //Set content width // add_theme_support('post-formats',array('aside', 'gallery', 'link', 'image', 'quote', 'status', 'video', 'audio', 'chat')); add_editor_style(); add_theme_support('automatic-feed-links'); add_theme_support('post-thumbnails'); set_post_thumbnail_size( 110, 110, true ); // Default size add_theme_support( 'custom-background' ); // Load Optios Framework Page if ( !function_exists( 'optionsframework_init' ) ) { define( 'OPTIONS_FRAMEWORK_DIRECTORY', get_template_directory_uri() . '/inc/admin/' ); require_once dirname( __FILE__ ) . '/inc/admin/options-framework.php'; } // This theme uses wp_nav_menu() in one location. register_nav_menus(array('primary' => 'Header Menu')); } add_action( 'after_setup_theme', 'if_theme_setup' ); //Multi-level pages menu function SunnyBlueSky_page_menu() { if (is_page()) { $highlight = "page_item"; } else {$highlight = "menu-item current-menu-item"; } echo '<ul class="menu">'; wp_list_pages('sort_column=menu_order&title_li=&link_before=<span><span>&link_after=</span></span>&depth=3'); echo '</ul>'; } // Scripts function sunny_blue_sky_enqueue_scripts() { if (!is_admin()): // google fonts api wp_register_style('sbs_google-fonts', 'http://fonts.googleapis.com/css?family=Open+Sans|Ubuntu+Condensed&subset=latin,latin-ext'); wp_enqueue_style( 'sbs_google-fonts'); // custom jquery js script wp_register_script('sbs_custom_script', get_template_directory_uri() . '/js.js', array('jquery'), '1.0', false ); wp_enqueue_script('sbs_custom_script'); endif; } add_action('init', 'sunny_blue_sky_enqueue_scripts'); // Make theme available for translation BETA // Translations in a /languages/ directory //load_theme_textdomain('SunnyBlueSky', get_template_directory() . '/languages'); //password protections page change function SunnyBlueSky_the_password_form() { global $post; $label = 'pwbox-'.(empty($post->ID) ? rand() : $post->ID); $output = '<form action="' . get_option('siteurl') . '/wp-pass.php" method="post">'. '<p>My post is password protected. Please ask me for a password:</p> Password<input name="post_password" id="' . $label . '" type="password" size="20" /><input type="submit"'. 'name="Submit" value="' . esc_attr__("Submit") . '" /></p></form>'; return $output; } add_filter('the_password_form', 'SunnyBlueSky_the_password_form'); // Post meta data function sunny_blue_sky_post_meta() {?> <div class="comment-bubble"><?php if ( comments_open() ) : comments_popup_link('<span title="No comments yet">0</span>', '<span title="1 comment">1</span>', '<span title="% comments">%</span>', 'count'); else: echo '<span title="Comments are disabled" class="count">Off </span>'; endif; ?></div> <div class="entry-date toggle" title="Posted on <?php the_time('F j, Y l'); ?> at <?php the_time('g:i a'); ?>"> <div class="d"><?php the_time('d') ?></div> <div class="m"><?php the_time('M') ?></div> </div><!--entry-date--> <?php // Link to Parts wp_link_pages(array('before' => '<p class="pagination"><strong>Page parts: </strong> ', 'after' => '</p>', 'next_or_number' => 'number', )); // if no title: if (!get_the_title() and !is_single()): ?> <a href="<?php the_permalink() ?>" rel="bookmark">∞</a><?php endif; ?> <div class="clear"></div> <?php if ( is_single() ):?> <p class="meta"> <span class="date"><?php the_time( get_option( 'date_format' ) ) ?></span> <span class="author">This post was written by <?php the_author_posts_link(); ?></span> <span class="cats"><b>Categories:</b> <?php the_category(' • '); ?></span> <span class="tags"><?php the_tags('<b>Tagged with:</b> ',' • ','<br />'); ?></span> <span class="comments"><?php comments_popup_link( 'No comments yet', '1 comment', '% comments', '', 'Comments are off for this post'); ?></span> <?php edit_post_link('•Edit ', '', ''); ?> </p> <?php endif; } // end post_meta func // Replace Prev-Next Navigation Links to �ber numbered pagination function sunny_blue_sky_navigation () { global $wp_query; $big = 999999999; // need an unlikely integer echo "<div class=\"a-pagination\">". paginate_links( array( 'base' => str_replace( $big, '%#%', get_pagenum_link( $big ) ), 'format' => '?paged=%#%', 'current' => max( 1, get_query_var('paged') ), 'total' => $wp_query->max_num_pages, 'prev_text' => '‹', 'next_text' => '›' )). "</div>\n"; } // end function // Returns a Continue Reading link for excerpts function sunny_blue_sky_continue_reading_link() { return '<span class="more-link"><a href="'. esc_url( get_permalink() ) . '">' . __( '<span class="button button-small">Continue reading<span></span></span>', 'sunny_blue_sky' ) . '</a></span>'; } // Replaces "[...]". function sunny_blue_sky_auto_excerpt_more( $more ) { return ' …' . sunny_blue_sky_continue_reading_link(); } add_filter( 'excerpt_more', 'sunny_blue_sky_auto_excerpt_more' ); // Adds Continue Reading link to excerpts. function sunny_blue_sky_custom_excerpt_more( $output ) { if ( has_excerpt() && ! is_attachment() ) { $output .= sunny_blue_sky_continue_reading_link(); } return $output; } add_filter( 'get_the_excerpt', 'sunny_blue_sky_custom_excerpt_more' ); // function sunny_blue_sky_by() { echo '<div class="by"> <span class="by-logo l">Download this Theme</span> <a class="by-logo r" href="http://dinozoom.com/">dinozoom.com</a> </div>'; } // Header Style function sunny_blue_sky_header_style() { ?> <style type="text/css"> .header { <?php if (get_header_image()): ?> background:url(<?php header_image(); ?>) no-repeat top left; <?php endif; ?> } <?php if ( 'blank' == get_header_textcolor() ) { ?> .header .sitetitle { display: none; } <?php } else { ?> .header .sitetitle a, .header .sitetitle span { color: #<?php header_textcolor();?>; } <?php } ?> </style> <?php } // Admin Header Style function sunny_blue_sky_admin_header_style() { ?> <style type="text/css"> .header { width: <?php echo HEADER_IMAGE_WIDTH; ?>px; height: <?php echo HEADER_IMAGE_HEIGHT; ?>px; background:url(<?php header_image(); ?>) top left no-repeat; } #headimg { background:#BAF0F0; } #headimg h1, #headimg #desc { display:block; float: left; padding:15px 0 0 35px; } #headimg h1, #headimg h1 a { width:100%; margin:0; color: #<?php header_textcolor();?>; font: bold 34px Arial,sans-serif; text-decoration: none; letter-spacing: 0; text-shadow: #000 -1px -1px 1px, #fff 1px 1px 1px; } #headimg #desc { font-size:12px; color:#333; padding-top:0; } </style> <?php } // Add a way for the custom header add_theme_support( 'custom-header', array( // Header image default 'default-image' => get_template_directory_uri() . '/images/header.png', // Header text display default 'header-text' => true, // Header text color default 'default-text-color' => '57CDCA', // Header image width (in pixels) 'width' => 972, // Header image height (in pixels) 'height' => 180, // Header image random rotation default 'random-default' => false, // Template header style callback 'wp-head-callback' => "sunny_blue_sky_header_style", // Admin header style callback 'admin-head-callback' => "sunny_blue_sky_admin_header_style", // Admin preview style callback //'admin-preview-callback' => $adminpreview_cb ) ); //Add Scroll-to-Top to Footer. function theme_scroll_top() { ?> <script type="text/javascript"> jQuery(document).ready(function($){ if ($(window).scrollTop() != "0") $(".scroll-to-top").fadeIn(1200) var scrollDiv = $(".scroll-to-top"); $(window).scroll(function(){ if ($(window).scrollTop() == "0") $(scrollDiv).fadeOut(350) else $(scrollDiv).fadeIn(1200) }); $(".scroll-to-top").click(function(){ $("html, body").animate({ scrollTop: 0 }, 600) }) }); </script> ?>
Helemaal op de laatste regel staat dit ?>
Maak daar eens van:
<?php } ?>
Het inlogscherm verschijnt in ieder geval weer, maar erboven staat dit:
Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/7/129173/webspace/httpdocs/brunssumseoktoberfeesten.nl/wp-content/themes/sunny-blue-sky/functions.php:1) in /var/www/vhosts/7/129173/webspace/httpdocs/brunssumseoktoberfeesten.nl/wp-login.php on line 368 Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/7/129173/webspace/httpdocs/brunssumseoktoberfeesten.nl/wp-content/themes/sunny-blue-sky/functions.php:1) in /var/www/vhosts/7/129173/webspace/httpdocs/brunssumseoktoberfeesten.nl/wp-login.php on line 380 Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/7/129173/webspace/httpdocs/brunssumseoktoberfeesten.nl/wp-content/themes/sunny-blue-sky/functions.php:1) in /var/www/vhosts/7/129173/webspace/httpdocs/brunssumseoktoberfeesten.nl/wp-includes/pluggable.php on line 697 Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/7/129173/webspace/httpdocs/brunssumseoktoberfeesten.nl/wp-content/themes/sunny-blue-sky/functions.php:1) in /var/www/vhosts/7/129173/webspace/httpdocs/brunssumseoktoberfeesten.nl/wp-includes/pluggable.php on line 698 Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/7/129173/webspace/httpdocs/brunssumseoktoberfeesten.nl/wp-content/themes/sunny-blue-sky/functions.php:1) in /var/www/vhosts/7/129173/webspace/httpdocs/brunssumseoktoberfeesten.nl/wp-includes/pluggable.php on line 699 Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/7/129173/webspace/httpdocs/brunssumseoktoberfeesten.nl/wp-content/themes/sunny-blue-sky/functions.php:1) in /var/www/vhosts/7/129173/webspace/httpdocs/brunssumseoktoberfeesten.nl/wp-includes/pluggable.php on line 700 Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/7/129173/webspace/httpdocs/brunssumseoktoberfeesten.nl/wp-content/themes/sunny-blue-sky/functions.php:1) in /var/www/vhosts/7/129173/webspace/httpdocs/brunssumseoktoberfeesten.nl/wp-includes/pluggable.php on line 701 Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/7/129173/webspace/httpdocs/brunssumseoktoberfeesten.nl/wp-content/themes/sunny-blue-sky/functions.php:1) in /var/www/vhosts/7/129173/webspace/httpdocs/brunssumseoktoberfeesten.nl/wp-includes/pluggable.php on line 702 Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/7/129173/webspace/httpdocs/brunssumseoktoberfeesten.nl/wp-content/themes/sunny-blue-sky/functions.php:1) in /var/www/vhosts/7/129173/webspace/httpdocs/brunssumseoktoberfeesten.nl/wp-includes/pluggable.php on line 705 Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/7/129173/webspace/httpdocs/brunssumseoktoberfeesten.nl/wp-content/themes/sunny-blue-sky/functions.php:1) in /var/www/vhosts/7/129173/webspace/httpdocs/brunssumseoktoberfeesten.nl/wp-includes/pluggable.php on line 706 Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/7/129173/webspace/httpdocs/brunssumseoktoberfeesten.nl/wp-content/themes/sunny-blue-sky/functions.php:1) in /var/www/vhosts/7/129173/webspace/httpdocs/brunssumseoktoberfeesten.nl/wp-includes/pluggable.php on line 707 Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/7/129173/webspace/httpdocs/brunssumseoktoberfeesten.nl/wp-content/themes/sunny-blue-sky/functions.php:1) in /var/www/vhosts/7/129173/webspace/httpdocs/brunssumseoktoberfeesten.nl/wp-includes/pluggable.php on line 708 Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/7/129173/webspace/httpdocs/brunssumseoktoberfeesten.nl/wp-content/themes/sunny-blue-sky/functions.php:1) in /var/www/vhosts/7/129173/webspace/httpdocs/brunssumseoktoberfeesten.nl/wp-includes/pluggable.php on line 711 Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/7/129173/webspace/httpdocs/brunssumseoktoberfeesten.nl/wp-content/themes/sunny-blue-sky/functions.php:1) in /var/www/vhosts/7/129173/webspace/httpdocs/brunssumseoktoberfeesten.nl/wp-includes/pluggable.php on line 712 Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/7/129173/webspace/httpdocs/brunssumseoktoberfeesten.nl/wp-content/themes/sunny-blue-sky/functions.php:1) in /var/www/vhosts/7/129173/webspace/httpdocs/brunssumseoktoberfeesten.nl/wp-includes/pluggable.php on line 713 Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/7/129173/webspace/httpdocs/brunssumseoktoberfeesten.nl/wp-content/themes/sunny-blue-sky/functions.php:1) in /var/www/vhosts/7/129173/webspace/httpdocs/brunssumseoktoberfeesten.nl/wp-includes/pluggable.php on line 714
En als ik inlog krijg ik dit:
Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/7/129173/webspace/httpdocs/brunssumseoktoberfeesten.nl/wp-content/themes/sunny-blue-sky/functions.php:1) in /var/www/vhosts/7/129173/webspace/httpdocs/brunssumseoktoberfeesten.nl/wp-login.php on line 368 Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/7/129173/webspace/httpdocs/brunssumseoktoberfeesten.nl/wp-content/themes/sunny-blue-sky/functions.php:1) in /var/www/vhosts/7/129173/webspace/httpdocs/brunssumseoktoberfeesten.nl/wp-login.php on line 380 Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/7/129173/webspace/httpdocs/brunssumseoktoberfeesten.nl/wp-content/themes/sunny-blue-sky/functions.php:1) in /var/www/vhosts/7/129173/webspace/httpdocs/brunssumseoktoberfeesten.nl/wp-includes/pluggable.php on line 680 Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/7/129173/webspace/httpdocs/brunssumseoktoberfeesten.nl/wp-content/themes/sunny-blue-sky/functions.php:1) in /var/www/vhosts/7/129173/webspace/httpdocs/brunssumseoktoberfeesten.nl/wp-includes/pluggable.php on line 681 Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/7/129173/webspace/httpdocs/brunssumseoktoberfeesten.nl/wp-content/themes/sunny-blue-sky/functions.php:1) in /var/www/vhosts/7/129173/webspace/httpdocs/brunssumseoktoberfeesten.nl/wp-includes/pluggable.php on line 682 Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/7/129173/webspace/httpdocs/brunssumseoktoberfeesten.nl/wp-content/themes/sunny-blue-sky/functions.php:1) in /var/www/vhosts/7/129173/webspace/httpdocs/brunssumseoktoberfeesten.nl/wp-includes/pluggable.php on line 876
Het probleem is opgelost, super bedankt!!!!
Beste Roy Scheeren,
Zou je mij ook willen helpen? Dat zou geweldig zijn!
Gisteravond heb ik geknoeid in mijn functions php. Ik heb een fout gemaakt met: news.php op line 499.
Heb gisteravond een oproep geplaatst:
http://nl.forums.wordpress.org/topic/mijn-site-is-gecrasht-na-aanpassing-code?replies=1#post-95993Dus, ik weet dat er een fout zit in de code, maar ik heb geen idee hoe ik dit kan herstellen. Als het überhaupt nog kan. Zou je mij willen adviseren?
Ik hoop het!
Beste Roy Scheeren,
Zou je mij ook willen helpen? Dat zou geweldig zijn!
Gisteravond heb ik geknoeid in mijn functions php. Ik heb een fout gemaakt met: news php op line 499.
Heb gisteravond een oproep geplaatst:
http://nl.forums.wordpress.org/topic/mijn-site-is-gecrasht-na-aanpassing-code?replies=1#post-95993Dus, ik weet dat er een fout zit in de code, maar ik heb geen idee hoe ik dit kan herstellen. Als het überhaupt nog kan. Zou je mij willen adviseren?
Ik hoop het!
- Het onderwerp ‘geknoeid in PHP’ is gesloten voor nieuwe reacties.