• I installed a popup extenion for a newsletter plugin. FSCF stays in conflict with it and I get following error messages in popup window even if it works in the rest of functions. But it looks a little bit ugly and I like to get it away. May someone could advice me how to fix that issue? The error message is:

    Warning: Cannot modify header information – headers already sent by (output started at /home/megajob/public_html/wp-content/extensions/newsletter/popup/iframe.php:1) in /home/megajob/public_html/wp-content/extensions/newsletter/popup/iframe.php on line 3

    Warning: session_start() [function.session-start]: Cannot send session cache limiter – headers already sent (output started at /home/megajob/public_html/wp-content/extensions/newsletter/popup/iframe.php:1) in /home/megajob/public_html/wp-content/plugins/si-contact-form/si-contact-form.php on line 1947

    I would be glad if someone could help me …

    http://ww.wp.xz.cn/extend/plugins/si-contact-form/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter trude76

    (@trude76)

    Sorry – forgot to send a link to my site:

    My site

    The other plugin is causing the problem.
    popup/iframe.php on line 3 is the problem

    Can you paste the first 10 lines of that code?
    then I might be able to tell you how to fix it

    Thread Starter trude76

    (@trude76)

    My God – you’re really fast in replying ()-:<

    Here’s the whole code of it – it’s not that much:

    <?php
    header('Content-Type: text/html;charset=UTF-8');
    include '../../../../wp-load.php';
    
    $module = NewsletterPopup::instance();
    $theme_options = $module->themes->get_options($module->options['theme']);
    $theme_url = $module->themes->get_theme_url($module->options['theme']);
    
    $form = NewsletterSubscription::instance()->get_subscription_form('popup', WP_CONTENT_URL . '/extensions/newsletter/popup/subscribe.php');
    $message = $module->options['subscription_text'];
    if (empty($message))
        $message = NewsletterSubscription::instance()->options['subscription_text'];
    
    if (strpos($message, '{subscription_form}') !== false)
        $message = str_replace('{subscription_form}', $form, $message);
    else {
        if (strpos($message, '{subscription_form_') === false) {
            $message .= $form;
        }
    }
    
    $message = Newsletter::instance()->replace($message, $user);
    
    //ob_start();
    require $module->themes->get_file_path($module->options['theme'], '/theme.php');
    //$message = ob_get_clean();
    
    //echo $message;

    Already lot of thanks for supporting me.

    try 2 slashes in front of this line
    header('Content-Type: text/html;charset=UTF-8');

    Like this
    //header('Content-Type: text/html;charset=UTF-8');

    See if that works or not

    Thread Starter trude76

    (@trude76)

    Unfortunately not. Of course it’s one warning less because of comment out the. Niow the warnings left are:

    Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/megajob/public_html/wp-content/extensions/newsletter/popup/iframe.php:1) in /home/megajob/public_html/wp-content/plugins/si-contact-form/si-contact-form.php on line 1947
    
    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/megajob/public_html/wp-content/extensions/newsletter/popup/iframe.php:1) in /home/megajob/public_html/wp-content/plugins/si-contact-form/si-contact-form.php on line 1947

    Make sure there is no blank lines or whitespace before the opening <?php

    Thread Starter trude76

    (@trude76)

    I did – there’s no blank or whitespace .. same issue keeps going on

    Version 4.0 is about to come out as a beta test. It will not require PHP sessions.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Conflict with another plugin’ is closed to new replies.