WordPress.org

Forums

Custom Community
Header line error after config.php change (2 posts)

  1. Eutrapelico
    Member
    Posted 3 years ago #

    Hello,

    First, I apologyze for sending the message here, but the http://themekraft.com/join-now/ registration never sent me a confirmation e-mail to finish registering and I am in a hurry with this issue.

    My name is Fabiano Sampaio and today I was configuring a plugin named "Hyper Cache" and it requests a change to be made in the wp-config.php file.

    But, in my ignorance, I changed not the core file at first, but the theme file under "Edit" option within "Appearance" option.

    The plugin message was this:

    "you must add to the file wp-config.php (at its beginning after the <?php) the line of code: define('WP_CACHE', true);"

    What happened then was that my blog now is seen with this message on the header:

    , Change background colour of the right sidebar. Footer height, Enable slideshowUse standard WordPress custom image header settingsbrslug; $i++; } $option_categories = $option; return array( new Group (

    Here is the blog link http://www.eutrapelia.com.br/

    When I try to change the Slideshow settings or other header settings the complete error message that shows up is this:

    , Change background colour of the right sidebar. Footer height, Enable slideshowUse standard WordPress custom image header settingsbrslug; $i++; } $option_categories = $option; return array( new Group (
    Warning: Cannot modify header information - headers already sent by (output started at /home/eutrapel/public_html/wp-content/themes/custom-community/admin/config.php:912) in /home/eutrapel/public_html/wp-includes/pluggable.php on line 866

    I deleted the line from both, the core wp-config.php and from the theme file config.php, yet the line persists and I have an error from a sidebar plugin.

    How can I solve this, please?
    Thank you very much.

    http://wordpress.org/extend/themes/custom-community/

  2. Eutrapelico
    Member
    Posted 3 years ago #

    By the way, here is how you read the config.php file, as it is in the editor section of wordpress dashboard:

    But I am showing much more than the place I did changes at, what is only the first line, under <?php

    <?php
    //
    // CheezCap - Cheezburger Custom Administration Panel
    // (c) 2008 - 2010 Cheezburger Network (Pet Holdings, Inc.)
    // LOL: http://cheezburger.com
    // Source: http://code.google.com/p/cheezcap/
    // Authors: Kyall Barrows, Toby McKes, Stefan Rusek, Scott Porad
    // License: GNU General Public License, version 2 (GPL), http://www.gnu.org/licenses/gpl-2.0.html
    //

    $themename = 'Theme'; // used on the title of the custom admin page
    $req_cap_to_edit = 'edit_theme_options'; // the user capability that is required to access the CheezCap settings page

    function cap_get_options() {
    $pages = get_pages();
    $option = Array();
    $option[0] = "All pages";
    $i = 1;
    foreach ($pages as $pagg) {
    $option[$i] = $pagg->post_title;
    $i++;
    }
    $option_pages = $option;

    $args = array('echo' => '0','hide_empty' => '0');
    $categories = get_categories($args);
    $option = Array();
    $option[0] = Array (
    'name' => 'All categories',
    'slug' => 'all-categories'
    );
    $i = 1;
    foreach($categories as $category) {
    $option[$i]['name'] = $category->name;
    $option[$i]['slug'] = $category->slug;
    $i++;

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic