Warning: Cannot modify header information
-
Hallo allemaal,
Wanneer ik in wil loggen in mijn site krijg ik de volgende melding:
Warning: Cannot modify header information – headers already sent by (output started at /home/trudy/domains/trudydeleeuw.nl/public_html/wp-content/themes/wp_businessone5-v1.0/functions.php:84) in /home/trudy/domains/trudydeleeuw.nl/public_html/wp-includes/pluggable.php on line 876
Nu heb ik gelezen om de orginele function.php terug te zetten maar ik hou de zelfde melding. Ik kan dus nu niet inloggen en trek ondertussen bijna m’n haren uit m’n hoofd!
Hopelijk kan iemand mij helpen.Dit is mijn function.php:
<?php
require_once(‘functions/constants.php’);load_theme_textdomain( CI_DOMAIN, TEMPLATEPATH . ‘/lang’ );
// This is the main options array. Can be accessed as a global in order to reduce function calls.
$ci = get_option(THEME_OPTIONS);
$ci_defaults = array();if ( ! isset( $content_width ) ) $content_width = 590;
require_once(‘functions/ci_development.php’);
require_once(‘functions/ci_generic.php’);
require_once(‘functions/ci_widgets.php’);
require_once(‘functions/nav_menus.php’);
require_once(‘functions/comments.php’);
require_once(‘functions/sidebars.php’);
require_once(‘functions/post_types.php’);
require_once(‘functions/sample_content.php’);
require_once(‘ci_panel/ci_panel.php’);//
// Define our various image sizes.
//
add_theme_support( ‘post-thumbnails’ );
set_post_thumbnail_size( 260, 123, true );
add_image_size( ‘homepage_slider’, 960, 378, true);
add_image_size( ‘product_thumb’, 90, 69, true);
add_image_size( ‘product_preview’, 380, ci_setting(‘product_preview_height’), true);
// This size is user defined via the CSSIgniter panel.
add_image_size( ‘ci_featured_single’, ci_setting(‘featured_single_width’), ci_setting(‘featured_single_height’), true);// Handle Feeds.
ci_register_custom_feed();//If just activated, go to our options page.
if ( is_admin() and isset($_GET[‘activated’] ) and $pagenow == “themes.php” )
{
ci_default_options(true);
wp_redirect( ’themes.php?page=ci_panel.php’ );
}add_filter(‘admin_footer_text’, ‘ci_change_admin_footer’);
function ci_change_admin_footer($str) {
echo ‘<p>CSSIgniter – Theme Support</p>’.$str;
}add_filter(’the_content’, ‘prettyphotorel’, 12);
add_filter(‘get_comment_text’, ‘prettyphotorel’);
function prettyphotorel ($content)
{ global $post;
$pattern = “/<a(.*?)href=(‘|\”)([^>]*).(bmp|gif|jpeg|jpg|png)(‘|\”)(.*?)>(.*?)<\/a>/i”;
$replacement = ‘<a$1href=$2$3.$4$5 rel=”prettyPhoto[‘.$post->ID.’]”$6>$7′;
$content = preg_replace($pattern, $replacement, $content);
return $content;
}function excerpt_read_more_link($output) {
global $post;
return $output . ‘ID) . ‘”> Lees meer…‘;
}
add_filter(’the_excerpt’, ‘excerpt_read_more_link’);function remove_more_link($link) {
$offset = strpos($link, ‘#more-‘);
if ($offset) {
$end = strpos($link, ‘”‘,$offset);
}
if ($end) {
$link = substr_replace($link, ”, $offset, $end-$offset);
}
return $link;
}
add_filter(’the_content_more_link’, ‘remove_more_link’);
?>Bedankt alvast!
Bertus.
- Het onderwerp ‘Warning: Cannot modify header information’ is gesloten voor nieuwe reacties.