• First of all, thanks for great program.

    I am using wp and it sort of works.
    However, In some cases, this error occurs.

    ****************************************************
    Warning: Cannot modify header information – headers already sent by (output started at /home/hosting_users/khp/www/wp/wp-content/plugins/wp-gallery2/g2embed.php:443) in /home/hosting_users/khp/www/gallery2/modules/core/classes/GalleryPhpVm.class on line 124
    ****************************************************

    This happens
    1. When I click display mode:admin/guest at the right-bottom side.
    2. When I click structural category at the left-top.(Under Daniel Park) -> For example, let’s suppose it is like this, Gallery>gallery>landscape>img5908. If I click any of these, that error happens.
    3. Site admin, if I click save or reset after some changes, same things happen.
    You can visit ‘photo’ in my menu.
    (This is my webpage. https://khp.cafe24.com/wp)

    and this is 443 of my g2embed.php
    (After $wp_siteurl = get_settings(‘home’).’/’;
    the first ‘echo’ line is the line 443)

    //——————————————————————————————————-
    // Function: WordPress Image Frames
    // Parameters: None
    // Returns: None
    //——————————————————————————————————-

    function g2_imageframes() {
    global $g2_option;

    $wp_siteurl = get_settings(‘home’).’/’;

    echo ‘<link rel=”stylesheet” href=”‘.$wp_siteurl.$g2_option[‘g2_path’].’main.php?g2_controller=imageblock.ExternalCSS&g2_frames=’.$g2_option[‘g2_sidebarblockimageFrame’].'”/>’;
    echo ‘<link rel=”stylesheet” href=”‘.$wp_siteurl.$g2_option[‘g2_path’].’main.php?g2_controller=imageblock.ExternalCSS&g2_frames=’.$g2_option[‘g2_sidebarblockalbumFrame’].'”/>’;
    echo ‘<link rel=”stylesheet” href=”‘.$wp_siteurl.$g2_option[‘g2_path’].’main.php?g2_controller=imageblock.ExternalCSS&g2_frames=’.$g2_option[‘g2_postalbumFrame’].'”/>’;
    echo ‘<link rel=”stylesheet” href=”‘.$wp_siteurl.$g2_option[‘g2_path’].’main.php?g2_controller=imageblock.ExternalCSS&g2_frames=’.$g2_option[‘g2_postimageFrame’].'”/>’;

    }

    //——————————————————————————————————-

    I read this article,
    https://gallery.menalto.com/trip_search?keys=header+already+sent+tids%3A63
    but [i]I couldn’t find the answer.

    Please help. Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • I was going to suggest to take this over to the WPG2 plugin forum, but I see you already did (https://wpg2.ozgreg.com/forums/viewtopic.php?p=6152#6152)

    It happened to me when a plugin called for the sidebar (get_sidebar) when I was calling for it somewhere else. Basically, some plugins or themes assume you follow a typical structure, if one theme is abnormal, then there could be a conflict. Have you also posted in the Gallery2 forums?

    I’m thinking your WP theme and G2 theme are in conflict.

    Thread Starter jesusson

    (@jesusson)

    Thank you for answer.

    I am useing k2 theme in wp and PG theme in gallery2.

    However, I see this site uses same themes with me and it works.

    Would you look at this?

    https://082net.cafe24.com

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[help!] header already sent error in WordPress-gallery2 integration’ is closed to new replies.