• Resolved SiKth

    (@sikth)


    The new shortcode is exactly what i needed! I’m sure I will get it to work, but now I get this, no matter if its [starbox] or [starbox=ID].

    Warning: Cannot modify header information - headers already sent by (output started at /customers/e/8/0/*******/httpd.www/wp-content/plugins/starbox/classes/DisplayController.php:51) in /customers/e/8/0/*******/httpd.www/wp-admin/post.php on line 222 Warning: Cannot modify header information - headers already sent by (output started at /customers/e/8/0/********/httpd.www/wp-content/plugins/starbox/classes/DisplayController.php:51) in /customers/e/8/0/********/httpd.www/wp-includes/pluggable.php on line 875

    I have uninstalled the plugin and reinstalled it.
    Any thoughts?

    https://www.ads-software.com/plugins/starbox/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author SEO Squirrly

    (@cifi)

    Hey,

    I think I got the issue. Please reinstall the plugin now and see if you still get the same error.

    Thank you so much for your feedback.

    Calin

    Thread Starter SiKth

    (@sikth)

    Hi, sorry, same error.
    I get it when I update the page. If I remove the plugin, save the page with the shortcode, activate the plugin and show the page everything is there but totally without css.

    EDIT: Off course I get the same error when I’m reload the page frontend.

    Thank you!

    Plugin Author SEO Squirrly

    (@cifi)

    Hey,

    Please try to reinstall it now …

    Thanks
    Calin

    Thread Starter SiKth

    (@sikth)

    Well, its getting better ??

    Now the [starbox] work as expected. But not the [starbox id=X]. No error message, just looks strange, listed, like its without CSS. Tell me if you want a screenshot.

    From earlier post, the PHP solution with <?php echo starBoxShow( X ); ?> works, and if i put the code (Listed below for reference) in my functions.php file and then <?php echo starBoxShow( <ANY NUMBER> ); ?> in a page template, then the [starbox id=X] works on the page with this template.
    Tried to put 0 in the php, then the pageauthor shows and all the [starbox id=X] works great.

    I am very thankful for this support! Fantastic! ??

    add_action('init','starBoxCustom');
    
    function starBoxCustom(){
            if (!class_exists('ABH_Controllers_Frontend'))
                return;
    
            ABH_Classes_ObjController::getController('ABH_Controllers_Frontend')->custom = true;
    }
    
    function starBoxShow($user_id) {
            if (!class_exists('ABH_Controllers_Frontend'))
                return;
    
            ABH_Classes_ObjController::getController('ABH_Classes_Tools');
    
            $theme = ABH_Classes_Tools::getOption('abh_theme');
    
            $str = '';
            $str .= '<script type="text/javascript" src="' . _ABH_ALL_THEMES_URL_ . $theme . '/js/frontend.js?ver=' . ABH_VERSION . '"></script>';
            $str .= '<link rel="stylesheet"  href="' . _ABH_ALL_THEMES_URL_ . $theme . '/css/frontend.css?ver=' . ABH_VERSION . '" type="text/css" media="all" />';
            $str .= ABH_Classes_ObjController::getController('ABH_Controllers_Frontend')->showBox($user_id);
    
            return $str;
        }
    Plugin Author SEO Squirrly

    (@cifi)

    It should work in 1.0.6.

    Please send me the URL so I can see the html code.

    [starbox id=ID] or [starbox id=login_name]

    Kind regards
    Calin

    Thread Starter SiKth

    (@sikth)

    The login_name works! And thats good enough for me ?? Thank you very much!
    5 star coming..

    Here is the link: https://mroffshore.se/om-2/

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Get Cannot modify header with new shortcode’ is closed to new replies.