Forums

Warning: Cannot modify header information ...headers already sentt by../themes/. (3 posts)

  1. halillea
    Member
    Posted 1 year ago #

    each time i switch from one theme to another, i got this error

    "Warning: Cannot modify header information - headers already sent by (output started at /home/scoutles/public_html/wp-content/themes/Prestij/functions.php:1) in /home/scoutles/public_html/wp-includes/pluggable.php on line 890"

    what's the problem is there any authorization to fix or any file to update

    For informations, i have a French WordPress while i want to use some themes that have some good features, but are mostly in English

    appreaciate any help
    Hal

  2. Rev. Voodoo
    Volunteer Moderator
    Posted 1 year ago #

    Looks like you have a blank line at the top of your functions.php file, or a blank space

    <?php

    needs to be the very first thing in that file

  3. halillea
    Member
    Posted 1 year ago #

    here is the start of the file (this is the original french file downloaded from wordpress site

    i reuploaded and no change so far

    ----------------stsrt of the functions.php head of the file
    <?php
    /**
    * Main WordPress API
    *
    * @package WordPress
    */

    /**
    * Converts MySQL DATETIME field to user specified date format.
    *
    * If $dateformatstring has 'G' value, then gmmktime() function will be used to
    * make the time. If $dateformatstring is set to 'U', then mktime() function
    * will be used to make the time.
    *
    * The $translate will only be used, if it is set to true and it is by default
    * and if the $wp_locale object has the month and weekday set.
    *
    * @since 0.71
    *
    * @param string $dateformatstring Either 'G', 'U', or php date format.
    * @param string $mysqlstring Time from mysql DATETIME field.
    * @param bool $translate Optional. Default is true. Will switch format to locale.
    * @return string Date formated by $dateformatstring or locale (if available).
    */
    function mysql2date( $dateformatstring, $mysqlstring, $translate = true ) {
    $m = $mysqlstring;
    if ( empty( $m ) )
    return false;

    ----------------end of the head of the file

Topic Closed

This topic has been closed to new replies.

About this Topic