Title: Shortcode function causing white screen of death
Last modified: August 21, 2016

---

# Shortcode function causing white screen of death

 *  ResolvedPlugin Contributor [max_Q](https://wordpress.org/support/users/max_q/)
 * (@max_q)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/shortcode-function-causing-white-screen-of-death/)
 * Hi James,
 * When saving the page that the Vegas Slider shortcode is on I get a white screen
   with “Warning: Cannot modify header information – headers already sent by (output
   started at mysite/public/wp-content/plugins/vegas-fullscreen-background-slider/
   index.php:226).
 * I believe this is a result of echoing output in your vegasslider() shortcode 
   function. According to the codex, you should never generate output in your function,
   but rather return it.
 * I rewrote vegasslider() using return for myself and it cured the error. You’re
   welcome to it if you want it.
 * Regards
 * [http://wordpress.org/extend/plugins/vegas-fullscreen-background-slider/](http://wordpress.org/extend/plugins/vegas-fullscreen-background-slider/)

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

 *  Plugin Author [jamesdbruner](https://wordpress.org/support/users/jamesdbruner/)
 * (@jamesdbruner)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/shortcode-function-causing-white-screen-of-death/#post-3900452)
 * Would you mind sharing your solution with me? My email is [jamesdbruner@gmail.com](https://wordpress.org/support/topic/shortcode-function-causing-white-screen-of-death/jamesdbruner@gmail.com?output_format=md)
 *  Plugin Contributor [max_Q](https://wordpress.org/support/users/max_q/)
 * (@max_q)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/shortcode-function-causing-white-screen-of-death/#post-3900453)
 * Sure, it’s on it’s way.

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

The topic ‘Shortcode function causing white screen of death’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/vegas-fullscreen-background-slider_4d4d4d.
   svg)
 * [WP Vegas](https://wordpress.org/plugins/vegas-fullscreen-background-slider/)
 * [Support Threads](https://wordpress.org/support/plugin/vegas-fullscreen-background-slider/)
 * [Active Topics](https://wordpress.org/support/plugin/vegas-fullscreen-background-slider/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/vegas-fullscreen-background-slider/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/vegas-fullscreen-background-slider/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [max_Q](https://wordpress.org/support/users/max_q/)
 * Last activity: [12 years, 9 months ago](https://wordpress.org/support/topic/shortcode-function-causing-white-screen-of-death/#post-3900453)
 * Status: resolved