14 Mar 2015

How to eliminate CSRF fatal error with Zebra Forms

I kept getting this error:

Warning: Cannot modify header information - headers already sent by (output started at /home/maryland/public_html/groups/index.php:54) in /home/maryland/public_html/groups/Zebra_Form.php on line 4052
Fatal error: The library tried to store the CSRF token in a cookie but was unable to do so because there was output already sent to the browser. You should either start a session prior to instantiating the library (recommended), have no output (including and tags, as well as any whitespace) sent to the browser prior to instantiating the library, or turn output buffering on in php.ini. in /home/maryland/public_html/groups/Zebra_Form.php on line 4052

To turn on output buffering, create a .htaccess file in the same directory as the Zebra Forms files and include this line:

php_flag output_buffering On

One Response to How to eliminate CSRF fatal error with Zebra Forms

  1. Many time I go through with this problem

Leave a Reply