Results 1 to 2 of 2

Thread: anyone can help me to fix this wordpress errors?

  1. #1
    Join Date
    May 2015
    Posts
    10

    Default anyone can help me to fix this wordpress errors?

    I just transferred a new WordPress site from my old server to Hostforlife.eu hosting account. The site works fine on my old server. No errors or anything. Once I copied all files to the Hostforlife hosting account though, the homepage displays but with the following errors above it:

    Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/content/85/10284985/html/wp-content/themes/hcdla/functions.php:1) in /home/content/85/10284985/html/wp-content/plugins/business-directory-plugin/wpbusdirman.php on line 706

    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/content/85/10284985/html/wp-content/themes/hcdla/functions.php:1) in /home/content/85/10284985/html/wp-content/plugins/business-directory-plugin/wpbusdirman.php on line 706
    When I try to access the admin panel, nothing displays and I get these errors:

    Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/content/85/10284985/html/wp-content/themes/hcdla/functions.php:1) in /home/content/85/10284985/html/wp-content/plugins/business-directory-plugin/wpbusdirman.php on line 706

    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/content/85/10284985/html/wp-content/themes/hcdla/functions.php:1) in /home/content/85/10284985/html/wp-content/plugins/business-directory-plugin/wpbusdirman.php on line 706

    Warning: Cannot modify header information - headers already sent by (output started at /home/content/85/10284985/html/wp-content/themes/hcdla/functions.php:1) in /home/content/85/10284985/html/wp-includes/pluggable.php on line 876
    I've opened my functions.php file and there are no blank spaces before or after the php. Here is the code though, just in case I am missing something:

    PHP Code:
    <?php
    // Define Menu //
    function register_my_menus() {
    register_nav_menus(
    array(
    'top-menu' => __( 'Top Menu' ),
    'footer-menu' => __( 'Footer Menu' )
    )
    );
    }
    add_action( 'init', 'register_my_menus' );

    // Define Sidebars //
    if ( function_exists('register_sidebar') )
    register_sidebar(array('name'=>'Sidebar One',
    'before_widget' => '<div class="widget-col2">',
    'after_widget' => '</div>',
    'before_title' => '<h2>',
    'after_title' => '</h2>',
    ));

    // Force Editor to Use Style.css //
    add_editor_style();

    // Removes empty paragraphs //
    add_filter('the_content', 'remove_empty_p', 20, 1);
    function remove_empty_p($content){
    $content = force_balance_tags($content);
    return preg_replace('#<p>\s*+(<br\s*/*>)?\s*</p>#i', '', $content);
    }
    ?>
    Your help is appreciated Thank you!

  2. #2

    Default

    No i think only a expert can help you in this.

Similar Threads

  1. What is Wordpress?
    By stuartspindlow in forum Web Design Solutions
    Replies: 23
    Last Post: 03-27-2017, 12:31 PM
  2. Wordpress
    By Queenmary in forum Business Tools
    Replies: 4
    Last Post: 09-19-2015, 04:15 PM
  3. Get 25% Discount on eUKhost Wordpress Hosting << £3.99/pm - Free Wordpress Essentials
    By Asher ross in forum Web Hosting and Related Offers Forum
    Replies: 0
    Last Post: 12-08-2014, 08:57 AM
  4. eUKhost Premium Wordpress Hosting << £3.99/pm << Free Wordpress Essentials
    By Asher ross in forum Web Hosting and Related Offers Forum
    Replies: 0
    Last Post: 11-28-2014, 06:53 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •