• Resolved vfineide

    (@vfineide)


    Great plugin, I really LOVE it! ?? When updating the form from front end, I get this error:

    Warning: Cannot modify header information – headers already sent by (output started at /home/mysite/public_html/wp-content/themes/hello-elementor/header.php:14) in /home/skytfart/public_html/wp-includes/pluggable.php on line 1265

    I tried two browsers, as admin and non-logged-in user, and modal/standard form. Using Elementor PRO. Any tip? Thank you.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Shabti Kaplan

    (@shabti)

    Hi thanks for reporting this bug. May I ask what the form was trying to update?

    Thread Starter vfineide

    (@vfineide)

    Hi, thanks for the reply, I have removed the title and post field, and I am updating ACF fields only. But I don’t even need to change any fields – Just an update without changing fields causes this issue. I am using a custom post type (created with the Custom Post Type UI plugin).

    Plugin Author Shabti Kaplan

    (@shabti)

    Are you using Hello elementor child theme or just Hello?

    Thread Starter vfineide

    (@vfineide)

    I am using a plain child theme of Hello. Tried now to use only Hello theme, and also disabling all plugins (apart from ACF (5.8.7), Custom Post Type UI and Elementor PRO (2.7.3), and the same result. Using WP 5.3

    Plugin Author Shabti Kaplan

    (@shabti)

    According to the error, the problem is in Hello theme’s header.php file. Apparently there is a `?>’ at the end of the file that you must remove. I’m gonna keep looking into whether or not this is related to our plugin and I’ll let you know what I find. Is the form letting you update content though?

    Thread Starter vfineide

    (@vfineide)

    I checked and there is no ‘?>’ at the end of the header.php file.The form is letting me update content through. I also tried with theme TwentyTwenty, same issue. So it might be an issue related with the current version of Elementor..? Now there is a different file causing the sent header issue:

    Warning: Cannot modify header information – headers already sent by (output started at /home/mysite/public_html/wp-content/plugins/elementor/modules/page-templates/templates/canvas.php:10

    Then I change my page template from canvas to standard, then I got the sent headers error here:

    /home/mysite/public_html/wp-content/themes/hello-elementor/header.php:14

    Here are the first 22 lines of the header.php file (not modified, standard from Hello theme)

    <?php
    /**
     * The template for displaying the header
     *
     * This is the template that displays all of the <head> section, opens the <body> tag and adds the site's header.
     *
     * @package HelloElementor
     */
    
    if ( ! defined( 'ABSPATH' ) ) {
    	exit; // Exit if accessed directly.
    }
    ?>
    <!doctype html>
    <html <?php language_attributes(); ?>>
    <head>
    	<meta charset="<?php bloginfo( 'charset' ); ?>">
    	<?php $viewport_content = apply_filters( 'hello_elementor_viewport_content', 'width=device-width, initial-scale=1' ); ?>
    	<meta name="viewport" content="<?php echo esc_attr( $viewport_content ); ?>">
    	<link rel="profile" href="https://gmpg.org/xfn/11">
    	<?php wp_head(); ?>
    </head>
    Plugin Author Shabti Kaplan

    (@shabti)

    Hello, so we think we found the source of the issue. We are updating to 2.1.0 soon and this error should be fixed.

    Thread Starter vfineide

    (@vfineide)

    Awesome! ??

    Plugin Author Shabti Kaplan

    (@shabti)

    Hey, we updated the plugin. The error should be gone! Thanks for the heads up!

    Thread Starter vfineide

    (@vfineide)

    Thanks, I appreciate! ??

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Headers already sent’ is closed to new replies.