Title: Get Cannot modify header with new shortcode
Last modified: August 21, 2016

---

# Get Cannot modify header with new shortcode

 *  Resolved [SiKth](https://wordpress.org/support/users/sikth/)
 * (@sikth)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/get-cannot-modify-header-with-new-shortcode/)
 * 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?
 * [http://wordpress.org/plugins/starbox/](http://wordpress.org/plugins/starbox/)

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

 *  Plugin Author [SEO Squirrly](https://wordpress.org/support/users/cifi/)
 * (@cifi)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/get-cannot-modify-header-with-new-shortcode/#post-4239287)
 * 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](https://wordpress.org/support/users/sikth/)
 * (@sikth)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/get-cannot-modify-header-with-new-shortcode/#post-4239293)
 * 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](https://wordpress.org/support/users/cifi/)
 * (@cifi)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/get-cannot-modify-header-with-new-shortcode/#post-4239345)
 * Hey,
 * Please try to reinstall it now …
 * Thanks
    Calin
 *  Thread Starter [SiKth](https://wordpress.org/support/users/sikth/)
 * (@sikth)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/get-cannot-modify-header-with-new-shortcode/#post-4239414)
 * 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](https://wordpress.org/support/users/cifi/)
 * (@cifi)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/get-cannot-modify-header-with-new-shortcode/#post-4239415)
 * 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](https://wordpress.org/support/users/sikth/)
 * (@sikth)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/get-cannot-modify-header-with-new-shortcode/#post-4239460)
 * The login_name works! And thats good enough for me 🙂 Thank you very much!
    5
   star coming..
 * Here is the link: [http://mroffshore.se/om-2/](http://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.

 * ![](https://ps.w.org/starbox/assets/icon-256x256.png?rev=1974206)
 * [Starbox - the Author Box for Humans](https://wordpress.org/plugins/starbox/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/starbox/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/starbox/)
 * [Active Topics](https://wordpress.org/support/plugin/starbox/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/starbox/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/starbox/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [SiKth](https://wordpress.org/support/users/sikth/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/get-cannot-modify-header-with-new-shortcode/#post-4239460)
 * Status: resolved